Changeset 221 in PSPA


Ignore:
Timestamp:
Dec 20, 2012, 11:55:04 AM (12 years ago)
Author:
garnier
Message:

ajout de charts : sans le pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc

    r220 r221  
    770770
    771771  WCartesianChart *chart = new WCartesianChart(toto);
     772
     773  chart->initLayout();
     774
    772775  chart->setModel(model);        // set the model
    773776  chart->setXSeriesColumn(0);    // set the column that holds the X data
     
    782785
    783786  // 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);
    786789  // Add the curves
    787790  WDataSeries s(1, CurveSeries, Y1Axis);
    788791  chart->addSeries(s);
    789792
     793  // chart->setBackground (WBrush(WColor("blue")));
    790794  chart->resize(300, 300); // WPaintedWidget must be given explicit size
    791795
     
    793797 Wt::WRasterImage pngImage("png", 600, 600);
    794798 Wt::WPainter p(&pngImage);
    795  chart->setBackground (WBrush(WColor("white")));
    796799
    797800 chart->paint(p);
Note: See TracChangeset for help on using the changeset viewer.