@@ -1,96 +1,97 | |||||
1 | /*! |
|
1 | /*! | |
2 | \page classes.html |
|
2 | \page classes.html | |
3 | \title QtCommercial Charts API |
|
3 | \title QtCommercial Charts API | |
4 | \keyword All Classes |
|
4 | \keyword All Classes | |
5 |
|
5 | |||
6 | Charts API is build on top of Qt Graphics View Framework. Charts can be displayed as QGraphicsWidget using QChart class. However |
|
6 | Charts API is build on top of Qt Graphics View Framework. Charts can be displayed as QGraphicsWidget using QChart class. However | |
7 | there is also convenience class QChartView which is QWidget based. These lets quickly use QCharts as normal Qt widget. |
|
7 | there is also convenience class QChartView which is QWidget based. These lets quickly use QCharts as normal Qt widget. | |
8 |
|
8 | |||
9 | Each chart type is represented by QAbstractSeries derived class. To create given chart type users have to use instance of related series class and add it to QChart instance. |
|
9 | Each chart type is represented by QAbstractSeries derived class. To create given chart type users have to use instance of related series class and add it to QChart instance. | |
10 | \code |
|
10 | \code | |
11 | QLineSeries* series = new QLineSeries(); |
|
11 | QLineSeries* series = new QLineSeries(); | |
12 | series->add(0, 6); |
|
12 | series->add(0, 6); | |
13 | series->add(2, 4); |
|
13 | series->add(2, 4); | |
14 | ... |
|
14 | ... | |
15 | chartView->chart()->addSeries(series); |
|
15 | chartView->chart()->addSeries(series); | |
16 | chartView->chart()->createDefaultAxes(); |
|
16 | chartView->chart()->createDefaultAxes(); | |
17 | \endcode |
|
17 | \endcode | |
18 |
|
18 | |||
19 | \raw HTML |
|
19 | \raw HTML | |
20 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> |
|
20 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | |
21 | <tr> |
|
21 | <tr> | |
22 | <th class="titleheader" width="25%"> |
|
22 | <th class="titleheader" width="25%"> | |
23 | Common and global |
|
23 | Common and global | |
24 | </th> |
|
24 | </th> | |
25 | <th class="titleheader" width="25%"> |
|
25 | <th class="titleheader" width="25%"> | |
26 | XY chart |
|
26 | XY chart | |
27 | </th> |
|
27 | </th> | |
28 | </tr> |
|
28 | </tr> | |
29 | <tr> |
|
29 | <tr> | |
30 | <td valign="top"> |
|
30 | <td valign="top"> | |
31 | <ul> |
|
31 | <ul> | |
32 | <li><a href="qchart.html">QChart</a></li> |
|
32 | <li><a href="qchart.html">QChart</a></li> | |
33 | <li><a href="qchartview.html">QChartView</a></li> |
|
33 | <li><a href="qchartview.html">QChartView</a></li> | |
34 | <li><a href="qabstractaxis.html">QAbstractAxis</a></li> |
|
34 | <li><a href="qabstractaxis.html">QAbstractAxis</a></li> | |
35 | <li><a href="qvalueaxis.html">QValueAxis</a></li> |
|
35 | <li><a href="qvalueaxis.html">QValueAxis</a></li> | |
36 | <li><a href="qlogvalueaxis.html">QLogValueAxis</a></li> |
|
36 | <li><a href="qlogvalueaxis.html">QLogValueAxis</a></li> | |
37 | <li><a href="qbarcategoryaxis.html">QBarCategoryAxis</a></li> |
|
37 | <li><a href="qbarcategoryaxis.html">QBarCategoryAxis</a></li> | |
38 | <li><a href="qcategoryaxis.html">QCategoryAxis</a></li> |
|
38 | <li><a href="qcategoryaxis.html">QCategoryAxis</a></li> | |
39 | <li><a href="qdatetimeaxis.html">QDateTimeAxis</a></li> |
|
39 | <li><a href="qdatetimeaxis.html">QDateTimeAxis</a></li> | |
40 | <li><a href="qlegend.html">QLegend</a></li> |
|
40 | <li><a href="qlegend.html">QLegend</a></li> | |
41 | <li><a href="qlegendmarker.html">QLegendMarker</a></li> |
|
41 | <li><a href="qlegendmarker.html">QLegendMarker</a></li> | |
42 | <li><a href="qpielegendmarker.html">QPieLegendMarker</a></li> |
|
42 | <li><a href="qpielegendmarker.html">QPieLegendMarker</a></li> | |
43 | <li><a href="qxylegendmarker.html">QXYLegendMarker</a></li> |
|
43 | <li><a href="qxylegendmarker.html">QXYLegendMarker</a></li> | |
44 | <li><a href="qbarlegendmarker.html">QBarLegendMarker</a></li> |
|
44 | <li><a href="qbarlegendmarker.html">QBarLegendMarker</a></li> | |
45 | <li><a href="qarealegendmarker.html">QAreaLegendMarker</a></li> |
|
45 | <li><a href="qarealegendmarker.html">QAreaLegendMarker</a></li> | |
46 | <li><a href="qabstractseries.html">QAbstractSeries</a></li> |
|
46 | <li><a href="qabstractseries.html">QAbstractSeries</a></li> | |
47 | </ul> |
|
47 | </ul> | |
48 | </td> |
|
48 | </td> | |
49 | <td valign="top"> |
|
49 | <td valign="top"> | |
50 | <ul> |
|
50 | <ul> | |
51 | <li><a href="qxyseries.html">QXYSeries</a></li> |
|
51 | <li><a href="qxyseries.html">QXYSeries</a></li> | |
52 | <li><a href="qlineseries.html">QLineSeries</a></li> |
|
52 | <li><a href="qlineseries.html">QLineSeries</a></li> | |
53 | <li><a href="qareaseries.html">QAreaSeries</a></li> |
|
53 | <li><a href="qareaseries.html">QAreaSeries</a></li> | |
54 | <li><a href="qscatterseries.html">QScatterSeries</a></li> |
|
54 | <li><a href="qscatterseries.html">QScatterSeries</a></li> | |
55 | <li><a href="qsplineseries.html">QSplineSeries</a></li> |
|
55 | <li><a href="qsplineseries.html">QSplineSeries</a></li> | |
56 | <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li> |
|
56 | <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li> | |
57 | <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li> |
|
57 | <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li> | |
58 | </ul> |
|
58 | </ul> | |
59 | </td> |
|
59 | </td> | |
60 | </tr> |
|
60 | </tr> | |
61 | </table> |
|
61 | </table> | |
62 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> |
|
62 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | |
63 | <tr> |
|
63 | <tr> | |
64 | <th class="titleheader" width="25%"> |
|
64 | <th class="titleheader" width="25%"> | |
65 | Pie chart |
|
65 | Pie chart | |
66 | </th> |
|
66 | </th> | |
67 | <th class="titleheader" width="25%"> |
|
67 | <th class="titleheader" width="25%"> | |
68 | Bar chart |
|
68 | Bar chart | |
69 | </th> |
|
69 | </th> | |
70 | <tr> |
|
70 | <tr> | |
71 | <td valign="top"> |
|
71 | <td valign="top"> | |
72 | <ul> |
|
72 | <ul> | |
73 | <li><a href="qpieseries.html">QPieSeries</a></li> |
|
73 | <li><a href="qpieseries.html">QPieSeries</a></li> | |
74 | <li><a href="qpieslice.html">QPieSlice</a></li> |
|
74 | <li><a href="qpieslice.html">QPieSlice</a></li> | |
75 | <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li> |
|
75 | <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li> | |
76 | <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li> |
|
76 | <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li> | |
77 | </ul> |
|
77 | </ul> | |
78 | </td> |
|
78 | </td> | |
79 | <td valign="top"> |
|
79 | <td valign="top"> | |
80 | <ul> |
|
80 | <ul> | |
81 | <li><a href="qbarseries.html">QBarSeries</a></li> |
|
81 | <li><a href="qbarseries.html">QBarSeries</a></li> | |
82 | <li><a href="qbarset.html">QBarSet</a></li> |
|
82 | <li><a href="qbarset.html">QBarSet</a></li> | |
83 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> |
|
83 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> | |
84 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> |
|
84 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> | |
|
85 | <li><a href="qboxplotseries.html">QBoxPlotSeries</a></li> | |||
85 | <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li> |
|
86 | <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li> | |
86 | <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li> |
|
87 | <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li> | |
87 | <li><a href="qhorizontalbarseries.html">QHorizontalBarSeries</a></li> |
|
88 | <li><a href="qhorizontalbarseries.html">QHorizontalBarSeries</a></li> | |
88 | <li><a href="qhorizontalstackedbarseries.html">QHorizontalStackedBarSeries</a></li> |
|
89 | <li><a href="qhorizontalstackedbarseries.html">QHorizontalStackedBarSeries</a></li> | |
89 | <li><a href="qhorizontalpercentbarseries.html">QHorizontalPercentBarSeries</a></li> |
|
90 | <li><a href="qhorizontalpercentbarseries.html">QHorizontalPercentBarSeries</a></li> | |
90 | </ul> |
|
91 | </ul> | |
91 | </td> |
|
92 | </td> | |
92 | </tr> |
|
93 | </tr> | |
93 | </table> |
|
94 | </table> | |
94 | \endraw |
|
95 | \endraw | |
95 |
|
96 | |||
96 | */ |
|
97 | */ |
@@ -1,24 +1,24 | |||||
1 | #Jan 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 |
|
1 | #Jan 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 | |
2 | #0 1 2 3 4 5 6 7 8 9 |
|
2 | #0 1 2 3 4 5 6 7 8 9 | |
3 | #Feb 4.3 5.1 3.2 4.5 4.4 4.9 5.0 4.7 4.1 4.6 4.4 4.3 4.8 4.4 4.2 4.5 4.4 |
|
3 | #Feb 4.3 5.1 3.2 4.5 4.4 4.9 5.0 4.7 4.1 4.6 4.4 4.3 4.8 4.4 4.2 4.5 4.4 | |
4 | #Mar 1.0 1.2 2.0 2.4 2.5 3.0 3.5 3.7 4.0 4.7 5.0 |
|
4 | #Mar 1.0 1.2 2.0 2.4 2.5 3.0 3.5 3.7 4.0 4.7 5.0 | |
5 | #Apr 4.6 4.7 5.2 7.3 8.4 8.8 9.1 8.3 7.4 6.4 5.3 |
|
5 | #Apr 4.6 4.7 5.2 7.3 8.4 8.8 9.1 8.3 7.4 6.4 5.3 | |
6 | #May 3.5 7.2 5.4 6.3 7.4 8.3 8.8 3.3 5.4 5.7 3.9 |
|
6 | #May 3.5 7.2 5.4 6.3 7.4 8.3 8.8 3.3 5.4 5.7 3.9 | |
7 | #Jun 2.5 4.6 7.3 4.6 7.8 9.0 7.4 |
|
7 | #Jun 2.5 4.6 7.3 4.6 7.8 9.0 7.4 | |
8 | #Jul 4.7 3.8 5.7 6.4 6.9 4.6 7.2 5.9 |
|
8 | #Jul 4.7 3.8 5.7 6.4 6.9 4.6 7.2 5.9 | |
9 | #0 1 2 3 4 5 6 7 8 9 10 |
|
9 | #0 1 2 3 4 5 6 7 8 9 10 | |
10 | # * * * |
|
10 | # * * * | |
11 | #Top 18.0 18.5 19.0 19.5 19.7 20.0 20.5 20.75 21.0 21.5 22.1 |
|
11 | #Top 18.0 18.5 19.0 19.5 19.7 20.0 20.5 20.75 21.0 21.5 22.1 | |
12 | #Tok 19.0 19.5 21.0 21.5 21.7 22.0 22.5 22.75 23.0 23.5 24.0 |
|
12 | #Tok 19.0 19.5 21.0 21.5 21.7 22.0 22.5 22.75 23.0 23.5 24.0 | |
13 |
Jan 27 |
|
13 | Jan 27.74 27.28 27.86 28.05 28.64 27.47 28.30 28.22 28.72 26.50 26.62 26.50 26.15 26.47 26.41 25.78 24.82 24.89 24.88 24.60 23.85 | |
14 |
Feb 31 |
|
14 | Feb 31.79 30.62 30.67 31.37 31.16 31.22 32.02 32.70 31.60 31.24 30.98 30.79 31.10 30.79 31.53 30.92 30.00 30.58 30.37 29.40 28.60 | |
15 |
Mar 28 |
|
15 | Mar 28.64 28.34 29.13 29.43 30.75 29.77 29.72 30.52 31.12 33.05 32.51 32.69 31.83 32.47 31.41 31.39 31.78 30.08 29.46 31.58 31.39 31.41 | |
16 |
Apr 25 |
|
16 | Apr 25.96 26.62 26.19 30.37 28.78 27.50 28.90 28.40 28.86 28.90 27.91 27.32 27.99 26.86 26.68 27.57 27.50 28.96 28.50 | |
17 |
May 20 |
|
17 | May 20.85 21.08 21.98 21.61 21.45 21.73 21.71 22.27 21.14 20.65 21.95 22.23 23.17 24.26 24.17 22.97 23.53 24.49 24.51 25.46 25.65 | |
18 |
Jun 18 |
|
18 | Jun 18.08 17.19 17.36 17.21 17.31 18.19 18.30 17.53 17.35 17.80 17.17 16.95 18.25 20.52 20.61 21.40 20.45 19.43 19.11 19.74 | |
19 |
Jul 17 |
|
19 | Jul 17.75 18.24 17.57 16.53 15.98 16.06 16.64 17.69 17.91 18.00 18.03 18.14 18.10 17.86 18.12 18.53 18.43 18.30 19.03 18.76 18.79 18.33 | |
20 |
Aug 18 |
|
20 | Aug 18.69 18.54 18.39 18.49 18.96 18.72 19.25 19.70 20.13 19.74 19.27 18.25 17.72 18.02 18.20 18.24 18.60 18.22 18.60 17.98 17.27 16.70 17.19 | |
21 |
Sep 18 |
|
21 | Sep 18.35 18.82 18.96 19.96 19.75 20.55 20.68 21.19 21.14 21.48 21.45 20.74 20.97 20.18 19.66 19.54 18.89 18.39 18.26 18.86 | |
22 |
Oct 16 |
|
22 | Oct 16.95 16.80 16.45 16.89 17.38 17.12 16.85 17.59 17.65 17.46 17.43 17.30 17.87 18.61 18.55 18.59 19.27 19.54 20.02 19.23 18.05 18.52 18.71 | |
23 |
Now 19 |
|
23 | Now 19.36 19.29 18.22 18.74 19.05 19.13 18.67 18.19 17.94 18.04 17.49 17.53 17.64 18.00 18.21 18.19 18.30 18.11 18.17 17.76 17.80 17.52 | |
24 |
Dec 19 |
|
24 | Dec 19.95 20.19 20.15 20.42 20.39 20.65 20.39 19.86 19.48 19.70 19.94 19.82 20.25 20.21 19.63 19.55 |
General Comments 0
You need to be logged in to leave comments.
Login now