@@ -1,100 +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 line |
|
11 | \o line | |
12 | \o area |
|
12 | \o area | |
13 | \o scatter |
|
13 | \o scatter | |
14 | \o spline |
|
14 | \o spline | |
15 | \o pie |
|
15 | \o pie | |
16 | \o grouped bar |
|
16 | \o grouped bar | |
17 | \o percent 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 QAbstractSeries derived class. To create given chart type users have to use instace of rel |
|
22 | 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. | |
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 and global |
|
35 | Common and global | |
36 | </th> |
|
36 | </th> | |
37 | <th class="titleheader" width="25%"> |
|
37 | <th class="titleheader" width="25%"> | |
38 | XY chart |
|
38 | XY chart | |
39 | </th> |
|
39 | </th> | |
40 | </tr> |
|
40 | </tr> | |
41 | <tr> |
|
41 | <tr> | |
42 | <td valign="top"> |
|
42 | <td valign="top"> | |
43 | <ul> |
|
43 | <ul> | |
44 | <li><a href="qchart.html">QChart</a></li> |
|
44 | <li><a href="qchart.html">QChart</a></li> | |
45 | <li><a href="qaxis.html">QAxis</a></li> |
|
45 | <li><a href="qaxis.html">QAxis</a></li> | |
46 | <li><a href="qaxiscategories.html">QAxisCategories</a></li> |
|
46 | <li><a href="qaxiscategories.html">QAxisCategories</a></li> | |
47 | <li><a href="qchartview.html">QChartView</a></li> |
|
47 | <li><a href="qchartview.html">QChartView</a></li> | |
48 | <li><a href="qlegend.html">QLegend</a></li> |
|
48 | <li><a href="qlegend.html">QLegend</a></li> | |
49 | <li><a href="qabstractseries.html">QAbstractSeries</a></li> |
|
49 | <li><a href="qabstractseries.html">QAbstractSeries</a></li> | |
50 | <li><a href="qchartglobal.html">QChartGlobal</a></li> |
|
50 | <li><a href="qchartglobal.html">QChartGlobal</a></li> | |
51 | </ul> |
|
51 | </ul> | |
52 | </td> |
|
52 | </td> | |
53 | <td valign="top"> |
|
53 | <td valign="top"> | |
54 | <ul> |
|
54 | <ul> | |
55 | <li><a href="qlineseries.html">QLineSeries</a></li> |
|
55 | <li><a href="qlineseries.html">QLineSeries</a></li> | |
56 | <li><a href="qareaseries.html">QAreaSeries</a></li> |
|
56 | <li><a href="qareaseries.html">QAreaSeries</a></li> | |
57 | <li><a href="qscatterseries.html">QScatterSeries</a></li> |
|
57 | <li><a href="qscatterseries.html">QScatterSeries</a></li> | |
58 | <li><a href="qsplineseries.html">QSplineSeries</a></li> |
|
58 | <li><a href="qsplineseries.html">QSplineSeries</a></li> | |
59 | <li><a href="qxymodelmapper.html">QXYModelMapper</a></li> |
|
59 | <li><a href="qxymodelmapper.html">QXYModelMapper</a></li> | |
60 | <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li> |
|
60 | <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li> | |
61 | <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li> |
|
61 | <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li> | |
62 | </ul> |
|
62 | </ul> | |
63 | </td> |
|
63 | </td> | |
64 | </tr> |
|
64 | </tr> | |
65 | </table> |
|
65 | </table> | |
66 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> |
|
66 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | |
67 | <tr> |
|
67 | <tr> | |
68 | <th class="titleheader" width="25%"> |
|
68 | <th class="titleheader" width="25%"> | |
69 | Pie chart |
|
69 | Pie chart | |
70 | </th> |
|
70 | </th> | |
71 | <th class="titleheader" width="25%"> |
|
71 | <th class="titleheader" width="25%"> | |
72 | Bar chart |
|
72 | Bar chart | |
73 | </th> |
|
73 | </th> | |
74 | <tr> |
|
74 | <tr> | |
75 | <td valign="top"> |
|
75 | <td valign="top"> | |
76 | <ul> |
|
76 | <ul> | |
77 | <li><a href="qpieseries.html">QPieSeries</a></li> |
|
77 | <li><a href="qpieseries.html">QPieSeries</a></li> | |
78 | <li><a href="qpieslice.html">QPieSlice</a></li> |
|
78 | <li><a href="qpieslice.html">QPieSlice</a></li> | |
79 | <li><a href="qpiemodelmapper.html">QPieModelMapper</a></li> |
|
79 | <li><a href="qpiemodelmapper.html">QPieModelMapper</a></li> | |
80 | <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li> |
|
80 | <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li> | |
81 | <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li> |
|
81 | <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li> | |
82 | </ul> |
|
82 | </ul> | |
83 | </td> |
|
83 | </td> | |
84 | <td valign="top"> |
|
84 | <td valign="top"> | |
85 | <ul> |
|
85 | <ul> | |
86 | <li><a href="qbarseries.html">QBarSeries</a></li> |
|
86 | <li><a href="qbarseries.html">QBarSeries</a></li> | |
87 | <li><a href="qbarset.html">QBarSet</a></li> |
|
87 | <li><a href="qbarset.html">QBarSet</a></li> | |
88 | <li><a href="qgroupedbarseries.html">QGroupedBarSeries</a></li> |
|
88 | <li><a href="qgroupedbarseries.html">QGroupedBarSeries</a></li> | |
89 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> |
|
89 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> | |
90 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> |
|
90 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> | |
91 | <li><a href="qbarmodelmapper.html">QBarModelMapper</a></li> |
|
91 | <li><a href="qbarmodelmapper.html">QBarModelMapper</a></li> | |
92 | <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li> |
|
92 | <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li> | |
93 | <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li> |
|
93 | <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li> | |
94 | </ul> |
|
94 | </ul> | |
95 | </td> |
|
95 | </td> | |
96 | </tr> |
|
96 | </tr> | |
97 | </table> |
|
97 | </table> | |
98 | \endraw |
|
98 | \endraw | |
99 |
|
99 | |||
100 | */ |
|
100 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now