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

Message ListMessage List     Post MessagePost Message

  Why I can't add line to chart after drawing?
Posted by rafal_rr on Oct-29-2011 16:48
Attachments:
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
chartdirector_p1.cpp
chartdirector_p1.cpp

2.90 Kb

  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