##// END OF EJS Templates
Updated spline chart example documentation and added some more docs to barseries
Updated spline chart example documentation and added some more docs to barseries

File last commit:

r500:4d73e3f9e3b6
r901:087f347c6433
Show More
examples-linechart.qdoc
25 lines | 739 B | text/plain | TextLexer
/ doc / src / examples-linechart.qdoc
/*!
\example examples/linechart
\title LineChart Example
\subtitle
The example shows how to create simple line chart.
\image linechart.png
To create line charts, QLineSeries instance is needed. Here we create two line series and we set the color and width of line.
\snippet ../examples/linechart/main.cpp 1
We add data to be shown to both series. We can use add() member function or use stream operator.
\snippet ../examples/linechart/main.cpp 2
In the end we create QChartView instance, set title, set anti-aliasing and add both series.
\snippet ../examples/linechart/main.cpp 3
Chart is ready to be shown.
\snippet ../examples/linechart/main.cpp 4
*/