07-28-2023 07:54 AM
So I have an array of elements which I need to plot in a overview chart. But those elements are not coming as seperate values. So I found out the way to do that is by converting them to a cluster. And I did that and ran the program and it worked but with a small problem. So cluster size is more than the array size. Array size was 4 and cluster size was 9. So 5 extra values of 0 was plotted in the graph. So I need to set the cluster size but the problem the array size is not fixed. Because of that I cant set the cluster size as well. And since there is no way to set the cluster size programmatically, then what can I do to get those array elements seperately in the overview chart. Thank you.
Solved! Go to Solution.
07-28-2023 08:30 AM - edited 07-28-2023 08:41 AM
The default Cluster Size is 9, Right click and change the Cluster Size to 4.
Since the array size is dynamic you can build the cluster instead of using the Array to Cluster function.
Share the source code you tried ,so that we can properly suggest on how to do.
07-28-2023 08:32 AM - edited 07-28-2023 08:34 AM
One useful trick with charts and graphs is to open the context help window and over the BD terminal of the chart. This will show you different data types that the chart can take. In the case of a chart, it says that you can use a 2D array to get multiple plots with multiple points. A quick test seems to show that the rows are for the points and columns are for the plots, so for a single point you can build your array with N elements and then wire it to a Build Array to get a 2D array with 1 row.
Edit - yes, if your goal is to always have 4 plots, then the other suggestion is simpler.
07-28-2023 08:40 AM
Thank you. By converting it to 2D array I got it.
07-28-2023 08:41 AM
@Palanivel. Read my post correctly. I cannot set the cluster size to 4 because the array size is fixed. Read it correctly.
07-28-2023 08:42 AM
Sorry I Missed the last point of dynamic array, I was editing my post, good that you got the solution.