##// END OF EJS Templates
Krazy reported errors...
Krazy reported errors * adding Q_OBJECT macros * spelling corrections * missing consts in foreach loops * missing float convertions * adds better ownership handling

File last commit:

r500:4d73e3f9e3b6
r974:de7be57d3935
Show More
examples-areachart.qdoc
29 lines | 917 B | text/plain | TextLexer
/ doc / src / examples-areachart.qdoc
/*!
\example examples/areachart
\title AreaChart Example
\subtitle
The example shows how to create simple area chart.
\image areachart.png
To create area charts, we need two QLineSeries instances. They are going to define upper and lower boundary of the area.
\snippet ../examples/areachart/main.cpp 1
We add data to both series, we use stream operator.
\snippet ../examples/areachart/main.cpp 2
Now we create QAreaSeries instance using two line series objects. We set the custom gradient fill and width of the outline.
\snippet ../examples/areachart/main.cpp 3
In the end we create QChartView instance, set title, set anti-aliasing and add area series. We also set the specific range for axes.
\snippet ../examples/areachart/main.cpp 4
Chart is ready to be shown.
\snippet ../examples/areachart/main.cpp 5
*/