##// END OF EJS Templates
Adds supported chart types to docs
Michal Klocek -
r484:4035b6e7db8b
parent child
Show More
@@ -1,65 +1,79
1 1 /*!
2 2 \page classes.html
3 3 \title QtCommercial Charts API
4 4 \keyword All Classes
5 5
6 6 Charts API is build on top of Qt Graphics View Framework. Charts can be displayed as QGrsphicsWidget using QChart class. However
7 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 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 23 \code
10 24 QLineSeries* series = new QLineSeries();
11 25 series->add(0, 6);
12 26 series->add(2, 4);
13 27 ...
14 28 chartView->addSeries(series);
15 29 \endcode
16 30
17 31 \image class_diagram.png
18 32 \raw HTML
19 33 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
20 34 <tr>
21 35 <th class="titleheader" width="33%">
22 36 List of classes
23 37 </th>
24 38 </tr>
25 39 <tr>
26 40 <td valign="top">
27 41 <ul>
28 42 <li><a href="qareaseries.html">QAreaSeries</a></li>
29 43 <li><a href="qbarseries.html">QBarSeries</a></li>
30 44 <li><a href="qbarset.html">QBarSet</a></li>
31 45 <li><a href="qchart.html">QChart</a></li>
32 46 <li><a href="qchartaxis.html">QChartAxis</a></li>
33 47 <li><a href="qchartview.html">QChartView</a></li>
34 48 <li><a href="qlineseries.html">QLineSeries</a></li>
35 49 <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li>
36 50 <li><a href="qpieseries.html">QPieSeries</a></li>
37 51 <li><a href="qpieslice.html">QPieSlice</a></li>
38 52 <li><a href="qscatterseries.html">QScatterSeries</a></li>
39 53 <li><a href="qseries.html">QSeries</a></li>
40 54 <li><a href="qsplineseries.html">QSplineSeries</a></li>
41 55 <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li>
42 56 <li><a href="qxyseries.html">QXYSeries</a></li>
43 57 </ul>
44 58 </td>
45 59 </tr>
46 60 </table>
47 61
48 62 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
49 63 <tr>
50 64 <th class="titleheader" width="33%">
51 65 Other files:
52 66 </th>
53 67 </tr>
54 68 <tr>
55 69 <td valign="top">
56 70 <ul>
57 71 <li><a href="qchartglobal.html">QChartGlobal</a></li>
58 72 </ul>
59 73 </td>
60 74 </tr>
61 75 </table>
62 76
63 77 \endraw
64 78
65 79 */
General Comments 0
You need to be logged in to leave comments. Login now