##// END OF EJS Templates
Doc: language review of Qt Charts doc...
Doc: language review of Qt Charts doc Change-Id: I6bdf7b64851d1f0e2b98f37cbf9844aeb205bed1 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>

File last commit:

r2610:66fa88d10640
r2610:66fa88d10640
Show More
examples-scatterchart.qdoc
27 lines | 941 B | text/plain | TextLexer
/ doc / src / examples-scatterchart.qdoc
/*!
\example examples/scatterchart
\title ScatterChart Example
\subtitle
The example shows how to create a simple scatter chart.
\image examples_scatterchart.png
To create scatter charts, a QScatterSeries instance is needed. Here we create a scatter series instance, and set the type, color, and width of outline for the scatter points.
\snippet ../examples/scatterchart/chartview.cpp 1
We add the data to be shown. We can use the append() member function or use the stream operator.
\snippet ../examples/scatterchart/chartview.cpp 2
In the end we enable anti-aliasing, set the chart title, and add the scatter series onto the chart. We also disable
drop shadow, because it would not look good on an application with only chart view shown.
\snippet ../examples/scatterchart/chartview.cpp 3
The chart is ready to be shown.
\snippet ../examples/scatterchart/main.cpp 4
*/