##// END OF EJS Templates
Spline chart example added
Spline chart example added

File last commit:

r422:d5d550c80366
r434:52aa7c3abf86
Show More
example-areachart.qdoc
29 lines | 911 B | text/plain | TextLexer
/ doc / src / example-areachart.qdoc
Michal Klocek
Adds area chart...
r421 /*!
\example example/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 ../example/areachart/main.cpp 1
We add data to both series, we use stream operator.
\snippet ../example/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 ../example/areachart/main.cpp 3
Michal Klocek
minor. formating
r422 In the end we create QChartView instance, set title, set anti-aliasing and add area series. We also set the specific range for axes.
Michal Klocek
Adds area chart...
r421
\snippet ../example/areachart/main.cpp 4
Chart is ready to be shown.
\snippet ../example/areachart/main.cpp 5
*/