Changeset 221 in PSPA
- Timestamp:
- Dec 20, 2012, 11:55:04 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc
r220 r221 770 770 771 771 WCartesianChart *chart = new WCartesianChart(toto); 772 773 chart->initLayout(); 774 772 775 chart->setModel(model); // set the model 773 776 chart->setXSeriesColumn(0); // set the column that holds the X data … … 782 785 783 786 // Provide space for the X and Y axis and title. 784 chart->setPlotAreaPadding(80, Left);785 chart->setPlotAreaPadding(40, Top | Bottom);787 // chart->setPlotAreaPadding(80, Left); 788 // chart->setPlotAreaPadding(40, Top | Bottom); 786 789 // Add the curves 787 790 WDataSeries s(1, CurveSeries, Y1Axis); 788 791 chart->addSeries(s); 789 792 793 // chart->setBackground (WBrush(WColor("blue"))); 790 794 chart->resize(300, 300); // WPaintedWidget must be given explicit size 791 795 … … 793 797 Wt::WRasterImage pngImage("png", 600, 600); 794 798 Wt::WPainter p(&pngImage); 795 chart->setBackground (WBrush(WColor("white")));796 799 797 800 chart->paint(p);
Note: See TracChangeset
for help on using the changeset viewer.