@@ -1,104 +1,100 | |||||
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 | The API supports following chart types: |
|
8 | The API supports following chart types: | |
9 |
|
9 | |||
10 | \list |
|
10 | \list | |
11 | \o area |
|
|||
12 | \o line |
|
11 | \o line | |
13 |
\o |
|
12 | \o area | |
14 | \o percent bar |
|
|||
15 | \o pie |
|
|||
16 | \o scatter |
|
13 | \o scatter | |
17 | \o spline |
|
14 | \o spline | |
|
15 | \o pie | |||
|
16 | \o grouped bar | |||
|
17 | \o percent bar | |||
18 | \o stacked bar |
|
18 | \o stacked bar | |
19 | \endlist |
|
19 | \endlist | |
20 |
|
20 | |||
21 |
|
21 | |||
22 | Each chart type is represented by QSeries derived class. To create given chart type users have to use instace of releted sereis class and add it to QChart/QChartView instance. |
|
22 | Each chart type is represented by QAbstractSeries derived class. To create given chart type users have to use instace of releted sereis class and add it to QChart/QChartView instance. | |
23 | \code |
|
23 | \code | |
24 | QLineSeries* series = new QLineSeries(); |
|
24 | QLineSeries* series = new QLineSeries(); | |
25 | series->add(0, 6); |
|
25 | series->add(0, 6); | |
26 | series->add(2, 4); |
|
26 | series->add(2, 4); | |
27 | ... |
|
27 | ... | |
28 | chartView->chart()->addSeries(series); |
|
28 | chartView->chart()->addSeries(series); | |
29 | \endcode |
|
29 | \endcode | |
30 |
|
30 | |||
31 | \raw HTML |
|
31 | \raw HTML | |
32 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> |
|
32 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | |
33 | <tr> |
|
33 | <tr> | |
34 | <th class="titleheader" width="25%"> |
|
34 | <th class="titleheader" width="25%"> | |
35 | Common |
|
35 | Common and global | |
36 | </th> |
|
36 | </th> | |
37 | <th class="titleheader" width="25%"> |
|
37 | <th class="titleheader" width="25%"> | |
38 |
XY t |
|
38 | XY chart | |
39 | </th> |
|
|||
40 | <th class="titleheader" width="25%"> |
|
|||
41 | Pie type |
|
|||
42 | </th> |
|
|||
43 | <th class="titleheader" width="25%"> |
|
|||
44 | Bar type |
|
|||
45 | </th> |
|
|||
46 | <th class="titleheader" width="25%"> |
|
|||
47 | Other files |
|
|||
48 | </th> |
|
39 | </th> | |
49 | </tr> |
|
40 | </tr> | |
50 | <tr> |
|
41 | <tr> | |
51 | <td valign="top"> |
|
42 | <td valign="top"> | |
52 | <ul> |
|
43 | <ul> | |
53 | <li><a href="qchart.html">QChart</a></li> |
|
44 | <li><a href="qchart.html">QChart</a></li> | |
54 | <li><a href="qaxis.html">QAxis</a></li> |
|
45 | <li><a href="qaxis.html">QAxis</a></li> | |
55 | <li><a href="qaxiscategories.html">QAxisCategories</a></li> |
|
46 | <li><a href="qaxiscategories.html">QAxisCategories</a></li> | |
56 | <li><a href="qchartview.html">QChartView</a></li> |
|
47 | <li><a href="qchartview.html">QChartView</a></li> | |
57 | <li><a href="qlegend.html">QLegend</a></li> |
|
48 | <li><a href="qlegend.html">QLegend</a></li> | |
58 | <li><a href="qabstractseries.html">QAbstractSeries</a></li> |
|
49 | <li><a href="qabstractseries.html">QAbstractSeries</a></li> | |
59 | <li><a href="qchartglobal.html">QChartGlobal</a></li> |
|
50 | <li><a href="qchartglobal.html">QChartGlobal</a></li> | |
60 | </ul> |
|
51 | </ul> | |
61 | </td> |
|
52 | </td> | |
62 | <td valign="top"> |
|
53 | <td valign="top"> | |
63 | <ul> |
|
54 | <ul> | |
64 | <li><a href="qlineseries.html">QLineSeries</a></li> |
|
55 | <li><a href="qlineseries.html">QLineSeries</a></li> | |
65 | <li><a href="qareaseries.html">QAreaSeries</a></li> |
|
56 | <li><a href="qareaseries.html">QAreaSeries</a></li> | |
66 | <li><a href="qscatterseries.html">QScatterSeries</a></li> |
|
57 | <li><a href="qscatterseries.html">QScatterSeries</a></li> | |
67 | <li><a href="qsplineseries.html">QSplineSeries</a></li> |
|
58 | <li><a href="qsplineseries.html">QSplineSeries</a></li> | |
68 | <li><a href="qxymodelmapper.html">QXYModelMapper</a></li> |
|
59 | <li><a href="qxymodelmapper.html">QXYModelMapper</a></li> | |
69 | <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li> |
|
60 | <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li> | |
70 | <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li> |
|
61 | <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li> | |
71 | </ul> |
|
62 | </ul> | |
72 | </td> |
|
63 | </td> | |
|
64 | </tr> | |||
|
65 | </table> | |||
|
66 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | |||
|
67 | <tr> | |||
|
68 | <th class="titleheader" width="25%"> | |||
|
69 | Pie chart | |||
|
70 | </th> | |||
|
71 | <th class="titleheader" width="25%"> | |||
|
72 | Bar chart | |||
|
73 | </th> | |||
|
74 | <tr> | |||
73 | <td valign="top"> |
|
75 | <td valign="top"> | |
74 | <ul> |
|
76 | <ul> | |
75 | <li><a href="qpieseries.html">QPieSeries</a></li> |
|
77 | <li><a href="qpieseries.html">QPieSeries</a></li> | |
76 | <li><a href="qpieslice.html">QPieSlice</a></li> |
|
78 | <li><a href="qpieslice.html">QPieSlice</a></li> | |
77 | <li><a href="qpiemodelmapper.html">QPieModelMapper</a></li> |
|
79 | <li><a href="qpiemodelmapper.html">QPieModelMapper</a></li> | |
78 | <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li> |
|
80 | <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li> | |
79 | <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li> |
|
81 | <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li> | |
80 | </ul> |
|
82 | </ul> | |
81 | </td> |
|
83 | </td> | |
82 | <td valign="top"> |
|
84 | <td valign="top"> | |
83 | <ul> |
|
85 | <ul> | |
84 | <li><a href="qbarseries.html">QBarSeries</a></li> |
|
86 | <li><a href="qbarseries.html">QBarSeries</a></li> | |
85 | <li><a href="qbarset.html">QBarSet</a></li> |
|
87 | <li><a href="qbarset.html">QBarSet</a></li> | |
86 | <li><a href="qgroupedbarseries.html">QGroupedBarSeries</a></li> |
|
88 | <li><a href="qgroupedbarseries.html">QGroupedBarSeries</a></li> | |
87 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> |
|
89 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> | |
88 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> |
|
90 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> | |
89 | <li><a href="qbarmodelmapper.html">QBarModelMapper</a></li> |
|
91 | <li><a href="qbarmodelmapper.html">QBarModelMapper</a></li> | |
90 | <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li> |
|
92 | <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li> | |
91 | <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li> |
|
93 | <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li> | |
92 | </ul> |
|
94 | </ul> | |
93 | </td> |
|
95 | </td> | |
94 | <td valign="top"> |
|
|||
95 | <ul> |
|
|||
96 | <li><a href="qchartglobal.html">QChartGlobal</a></li> |
|
|||
97 | </ul> |
|
|||
98 | </td> |
|
|||
99 | </tr> |
|
96 | </tr> | |
100 | </table> |
|
97 | </table> | |
101 |
|
||||
102 | \endraw |
|
98 | \endraw | |
103 |
|
99 | |||
104 | */ |
|
100 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now