|
Trend Chart |
Posted by Pandey on Oct-21-2011 17:12 |
|
Peter can we set a 2-D array for X-Y scatter plots
/////
c->addScatterLayer(Xdynamic, Ydynamic);
////
can Xdynamic and Ydynamic above be a 2-D array? If yes how do we plot a particular row |
Re: Trend Chart |
Posted by Peter Kwan on Oct-22-2011 02:35 |
|
Hi Pandey,
The c->addScatterLayer only accepts 1D arrays (a sequence of numbers).
If you have two 2D arrays for Xdynamic and Ydynamic, and you would like to plot a particular row in these two 2D arrays, please copy the numbers in that row to two 1D arrays, then pass the 1D arrays to ChartDirector.
Should you need further information, please feel free to contact me.
Regards
Peter Kwan |
Re: Trend Chart |
Posted by pandey on Nov-27-2011 16:00 |
|
Peter,
I have problems using multichart option for my linelayers. I have 6 linelayers on the same x-axis and I want to split the y-axis of the chart(please see attached *.doc). This chart is going to be dynamic and zoomable ie. I am not dumping the *.png/*.jpg of it. I tried using multi chart example from "dualhbar.cs" but couldn't get through it.
Thanks,
Pandey HN
I am using visual studio C++/CLI
|
Re: Trend Chart |
Posted by Peter Kwan on Nov-29-2011 01:18 |
|
Hi pandey,
Basically, you just need to create two XYChart objects, and put them into the MultiChart object. For the purpose of drag to scroll/zoom, you can optionally create a third dummy XYChart that just contains an invisible plot area, which can be used to suggest to the WinChartViewer the region that will be respond to the mouse drag.
I have attached a very basic example in C# for your reference.
Hope this can help.
Regards
Peter Kwan
|
|