Hi!
I've got a question regarding the CartesianChart, which is probably a
general issue about charts.
I create a CartesianChart, whose model gets updated after the chart
has been painted (or should have been painted...). It seems that the
chart is painted after the following function returns (see below). In
my application I'll have a thread modifying the model and the chart
should reflect the most recent data. Am I doing anything wrong?
WApplication *createApplication(const WEnvironment& env) {
WApplication *app = new WApplication(env);
app->setTitle("Charts example");
app->root()->setPadding(10);
int nColumn = 3;
int nRow = 10;
Wt::WStandardItemModel* model = new Wt::WStandardItemModel(nRow,
nColumn, app->root());
timeSeriesExample(model, app->root()); // add a few point to the
model and create the chart, as it is shown in the Chart example of the
wt distribution.
// why it's not painting the chart now?
sleep(1);
addPoint(model);
return app;
}
I'm using Firefox 3.0b5 on 64-bit KUbuntu 8.04, Intel Dual Core.
Thank you!
Kind regards,
Alessandro
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest