|
Why I can't add line to chart after drawing? |
Posted by rafal_rr on Oct-29-2011 16:48 |
|
I want to make real-time chart application using GTK+. But now I'm trying ChartDirector
features.
I've written simple application: creating chart, drawing sin(x) chart, exporting to file, drawin
g cos(x), exporting to second file.
But I can make only one export. Why? Must I creating new XYChart object everytime I want
to export chart?
my code in attachment
//sorry for my english language skill
|
Re: Why I can't add line to chart after drawing? |
Posted by Peter Kwan on Oct-31-2011 03:23 |
|
Hi rafal_rr,
It is correct that once the chart is drawn (calling makeChart), you cannot add more data to it any more. For your case, you would need to creating a new XYChart object.
Because the CPU resource to set up the chart is very small (95% of the CPU used by ChartDirector is in "makeChart"), so recreating the chart will not reduce performance.
Hope this can help.
Regards
Peter Kwan |
Re: Why I can't add line to chart after drawing? |
Posted by rafal_rr on Oct-31-2011 15:23 |
|
yes
thanks |
|