ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Chart Layers support
Posted by Luis on Sep-04-2015 04:20
Hello

Me again with some issues on my software

I'm programming a Real Time Data Acquisition Software and at this point I can receive data and make the chart in real time (I attach a picture with the chart at the end of the real time acquisition).

This final chart is the one that I can save like image, this is the issue, when I stop the acquisition I have a container whit several check boxes (as you can see on the top left corner of the image I attach), this check boxes are all the variables that I can use to make a chart, what I want to do is now that I have the final chart I can change the variables that I can see on the chart, for example: on the chart of the image I have 3 lines, RED (Gasto 1 + Gasto 2), GREEN (Presion 1) and BLUE (Densidad) so i want to check any other variable of the check boxes and refresh the chart only with the selected variables.... and save the chart next

Can you help me with this problem??? I,m really stuck with this

Thanks a lot

Regards

  Re: Chart Layers support
Posted by Luis on Sep-04-2015 04:22
As an additional note, i have a individual array with all the data acquire on real time in memory until the program closes, and a variable with the amount of positions with data on all the arrays

  Re: Chart Layers support
Posted by Luis on Sep-04-2015 04:25
Attachments:
Sorry i didn't notice that the image was to large... here is the chart image
Chart.png

  Re: Chart Layers support
Posted by Peter Kwan on Sep-05-2015 03:05
Hi Luis,

I think when the checkbox is clicked, in the checkbox event handler, your code can just call
"drawChart" to draw the chart. When new data arrived, your code also call "drawChart".
The "drawChart" is the subroutine to draw the chart based on the state of the checkboxes
using the data in the arrays.

For example, in the "Interactive Financial Chart" sample code, there are checkboxes and
many other controls that can select what to display. All these controls simply called
"drawChart". The "drawChart" method add various lines and layers based on the state of the
user controls.

Regards
Peter Kwan

  Re: Chart Layers support
Posted by Luis on Sep-05-2015 04:22
Thanks Peter

It works very good with your suggestion, I was trying to do other stuff with the code and breaking my brain with ideas and it is really simple