@@ -0,0 +1,7 | |||||
|
1 | /*! | |||
|
2 | \example examples/customchart | |||
|
3 | \title Custom chart example | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | This example shows how to customize the appearance of the whole chart. | |||
|
7 | */ |
@@ -0,0 +1,7 | |||||
|
1 | /*! | |||
|
2 | \example examples/ekgchart | |||
|
3 | \title EKG chart Example | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | The example shows how to simulate a EKG chart. | |||
|
7 | */ |
@@ -0,0 +1,7 | |||||
|
1 | /*! | |||
|
2 | \example examples/modeldata | |||
|
3 | \title Model data example | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | This example shows how to use QAbstractItemModel derived model as the data for the series. | |||
|
7 | */ |
@@ -0,0 +1,7 | |||||
|
1 | /*! | |||
|
2 | \example examples/scatterinteractions | |||
|
3 | \title ScatterChart Example | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | The example shows how to create simple scatter chart and how to interact with the chart. | |||
|
7 | */ |
@@ -0,0 +1,7 | |||||
|
1 | /*! | |||
|
2 | \example examples/stackedbarchartdrilldown | |||
|
3 | \title Stacked bar chart drilldown example | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | The example shows how to create stacked bar chart with a drilldown effect. | |||
|
7 | */ |
@@ -0,0 +1,7 | |||||
|
1 | /*! | |||
|
2 | \example examples/zoomlinechart | |||
|
3 | \title Zoom line example | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | The example shows how to create your own custom zooming effect with QRubberBand. | |||
|
7 | */ |
1 | NO CONTENT: file renamed from doc/src/example-splinechart.qdoc to doc/src/examples-splinechart.qdoc |
|
NO CONTENT: file renamed from doc/src/example-splinechart.qdoc to doc/src/examples-splinechart.qdoc |
@@ -15,16 +15,20 | |||||
15 | <ul> |
|
15 | <ul> | |
16 | <li><a href="examples-areachart.html">Area chart example</a></li> |
|
16 | <li><a href="examples-areachart.html">Area chart example</a></li> | |
17 | <li><a href="examples-barchart.html">Bar chart example</a></li> |
|
17 | <li><a href="examples-barchart.html">Bar chart example</a></li> | |
18 |
<li><a href="examples- |
|
18 | <li><a href="examples-customchart.html">Custom chart example</a></li> | |
|
19 | <li><a href="examples-ekgchart.html">EKG chart example</a></li> | |||
|
20 | <li><a href="examples-linechart.html">Bar chart example</a></li> | |||
|
21 | <li><a href="examples-modeldata.html">Model data example</a></li> | |||
19 | <li><a href="examples-percentbarchart.html">Percent bar chart example</a></li> |
|
22 | <li><a href="examples-percentbarchart.html">Percent bar chart example</a></li> | |
20 | <li><a href="examples-piechart.html">Pie chart example</a></li> |
|
23 | <li><a href="examples-piechart.html">Pie chart example</a></li> | |
21 | <li><a href="examples-piechartdrilldown.html">Pie chart drilldown example</a></li> |
|
24 | <li><a href="examples-piechartdrilldown.html">Pie chart drilldown example</a></li> | |
22 | <li><a href="examples-presenterchart.html">Presenter chart example</a></li> |
|
25 | <li><a href="examples-presenterchart.html">Presenter chart example</a></li> | |
23 | <li><a href="examples-scatterchart.html">Scatter chart example</a></li> |
|
26 | <li><a href="examples-scatterchart.html">Scatter chart example</a></li> | |
|
27 | <li><a href="examples-scatterinteractions.html">Scatter interactions example</a></li> | |||
24 | <li><a href="examples-splinechart.html">Spline chart example</a></li> |
|
28 | <li><a href="examples-splinechart.html">Spline chart example</a></li> | |
25 | <li><a href="examples-stackedbarchart.html">Stacked bar chart example</a></li> |
|
29 | <li><a href="examples-stackedbarchart.html">Stacked bar chart example</a></li> | |
26 | <li><a href="examples-stackedbarchartdrilldown.html">Stacked bar chart drilldown example</a></li> |
|
30 | <li><a href="examples-stackedbarchartdrilldown.html">Stacked bar chart drilldown example</a></li> | |
27 |
<li><a href="examples- |
|
31 | <li><a href="examples-zoomlinechart.html">Zoom line example</a></li> | |
28 | </ul> |
|
32 | </ul> | |
29 | </td> |
|
33 | </td> | |
30 | </tr> |
|
34 | </tr> |
@@ -30,12 +30,16 QTCOMMERCIALCHART_USE_NAMESPACE | |||||
30 |
|
30 | |||
31 | int main(int argc, char *argv[]) |
|
31 | int main(int argc, char *argv[]) | |
32 | { |
|
32 | { | |
|
33 | //! [1] | |||
33 | QApplication a(argc, argv); |
|
34 | QApplication a(argc, argv); | |
34 | QMainWindow window; |
|
35 | QMainWindow window; | |
|
36 | //! [1] | |||
35 |
|
37 | |||
|
38 | //! [2] | |||
36 | DrilldownChart* drilldownChart = new DrilldownChart(); |
|
39 | DrilldownChart* drilldownChart = new DrilldownChart(); | |
37 | drilldownChart->setTheme(QChart::ChartThemeBlueIcy); |
|
40 | drilldownChart->setTheme(QChart::ChartThemeBlueIcy); | |
38 | drilldownChart->setAnimationOptions(QChart::SeriesAnimations); |
|
41 | drilldownChart->setAnimationOptions(QChart::SeriesAnimations); | |
|
42 | //! [2] | |||
39 |
|
43 | |||
40 | //! [3] |
|
44 | //! [3] | |
41 | // Define categories |
|
45 | // Define categories |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now