@@ -1,65 +1,79 | |||||
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 QGrsphicsWidget using QChart class. However |
|
6 | Charts API is build on top of Qt Graphics View Framework. Charts can be displayed as QGrsphicsWidget 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 | Currently API supports following chart types: | |||
|
9 | ||||
|
10 | \list | |||
|
11 | \o area | |||
|
12 | \o line | |||
|
13 | \o bar | |||
|
14 | \o percent bar | |||
|
15 | \o pie | |||
|
16 | \o scatter | |||
|
17 | \o spline | |||
|
18 | \o stacked bar | |||
|
19 | \endlist | |||
|
20 | ||||
|
21 | ||||
8 | 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 QSeries derived class. To create given chart type users have to use instace of releted sereis class and add it to QChart/QChartView instance. | |
9 | \code |
|
23 | \code | |
10 | QLineSeries* series = new QLineSeries(); |
|
24 | QLineSeries* series = new QLineSeries(); | |
11 | series->add(0, 6); |
|
25 | series->add(0, 6); | |
12 | series->add(2, 4); |
|
26 | series->add(2, 4); | |
13 | ... |
|
27 | ... | |
14 | chartView->addSeries(series); |
|
28 | chartView->addSeries(series); | |
15 | \endcode |
|
29 | \endcode | |
16 |
|
30 | |||
17 | \image class_diagram.png |
|
31 | \image class_diagram.png | |
18 | \raw HTML |
|
32 | \raw HTML | |
19 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> |
|
33 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | |
20 | <tr> |
|
34 | <tr> | |
21 | <th class="titleheader" width="33%"> |
|
35 | <th class="titleheader" width="33%"> | |
22 | List of classes |
|
36 | List of classes | |
23 | </th> |
|
37 | </th> | |
24 | </tr> |
|
38 | </tr> | |
25 | <tr> |
|
39 | <tr> | |
26 | <td valign="top"> |
|
40 | <td valign="top"> | |
27 | <ul> |
|
41 | <ul> | |
28 | <li><a href="qareaseries.html">QAreaSeries</a></li> |
|
42 | <li><a href="qareaseries.html">QAreaSeries</a></li> | |
29 | <li><a href="qbarseries.html">QBarSeries</a></li> |
|
43 | <li><a href="qbarseries.html">QBarSeries</a></li> | |
30 | <li><a href="qbarset.html">QBarSet</a></li> |
|
44 | <li><a href="qbarset.html">QBarSet</a></li> | |
31 | <li><a href="qchart.html">QChart</a></li> |
|
45 | <li><a href="qchart.html">QChart</a></li> | |
32 | <li><a href="qchartaxis.html">QChartAxis</a></li> |
|
46 | <li><a href="qchartaxis.html">QChartAxis</a></li> | |
33 | <li><a href="qchartview.html">QChartView</a></li> |
|
47 | <li><a href="qchartview.html">QChartView</a></li> | |
34 | <li><a href="qlineseries.html">QLineSeries</a></li> |
|
48 | <li><a href="qlineseries.html">QLineSeries</a></li> | |
35 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> |
|
49 | <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li> | |
36 | <li><a href="qpieseries.html">QPieSeries</a></li> |
|
50 | <li><a href="qpieseries.html">QPieSeries</a></li> | |
37 | <li><a href="qpieslice.html">QPieSlice</a></li> |
|
51 | <li><a href="qpieslice.html">QPieSlice</a></li> | |
38 | <li><a href="qscatterseries.html">QScatterSeries</a></li> |
|
52 | <li><a href="qscatterseries.html">QScatterSeries</a></li> | |
39 | <li><a href="qseries.html">QSeries</a></li> |
|
53 | <li><a href="qseries.html">QSeries</a></li> | |
40 | <li><a href="qsplineseries.html">QSplineSeries</a></li> |
|
54 | <li><a href="qsplineseries.html">QSplineSeries</a></li> | |
41 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> |
|
55 | <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li> | |
42 | <li><a href="qxyseries.html">QXYSeries</a></li> |
|
56 | <li><a href="qxyseries.html">QXYSeries</a></li> | |
43 | </ul> |
|
57 | </ul> | |
44 | </td> |
|
58 | </td> | |
45 | </tr> |
|
59 | </tr> | |
46 | </table> |
|
60 | </table> | |
47 |
|
61 | |||
48 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> |
|
62 | <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable"> | |
49 | <tr> |
|
63 | <tr> | |
50 | <th class="titleheader" width="33%"> |
|
64 | <th class="titleheader" width="33%"> | |
51 | Other files: |
|
65 | Other files: | |
52 | </th> |
|
66 | </th> | |
53 | </tr> |
|
67 | </tr> | |
54 | <tr> |
|
68 | <tr> | |
55 | <td valign="top"> |
|
69 | <td valign="top"> | |
56 | <ul> |
|
70 | <ul> | |
57 | <li><a href="qchartglobal.html">QChartGlobal</a></li> |
|
71 | <li><a href="qchartglobal.html">QChartGlobal</a></li> | |
58 | </ul> |
|
72 | </ul> | |
59 | </td> |
|
73 | </td> | |
60 | </tr> |
|
74 | </tr> | |
61 | </table> |
|
75 | </table> | |
62 |
|
76 | |||
63 | \endraw |
|
77 | \endraw | |
64 |
|
78 | |||
65 | */ |
|
79 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now