##// END OF EJS Templates
Doc updates
Jani Honkonen -
r1909:bb12647edbe2
parent child
Show More
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -1,31 +1,31
1 /*!
1 /*!
2 \page demos.html
2 \page demos.html
3 \title Demos
3 \title Demos
4 \keyword Demos
4 \keyword Demos
5
5
6 \raw HTML
6 \raw HTML
7 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
7 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
8 <tr>
8 <tr>
9 <th class="titleheader" width="33%">
9 <th class="titleheader" width="33%">
10 List of demos
10 List of demos
11 </th>
11 </th>
12 </tr>
12 </tr>
13 <tr>
13 <tr>
14 <td valign="top">
14 <td valign="top">
15 <ul>
15 <ul>
16 <li><a href="demos-chartthemes.html">Chart themes</a></li>
16 <li><a href="demos-chartthemes.html">Chart themes</a></li>
17 <li><a href="demos-piechartcustomization.html">Pie chart customization</a></li>
18 <li><a href="demos-dynamicspline.html">Dynamic spline chart</a></li>
17 <li><a href="demos-dynamicspline.html">Dynamic spline chart</a></li>
19 <li><a href="demos-nesteddonuts.html">Nested donuts chart</a></li>
18 <li><a href="demos-nesteddonuts.html">Nested donuts chart</a></li>
19 <li><a href="demos-piechartcustomization.html">Pie chart customization</a></li>
20 <li><a href="demos-qmlchart.html">Qml Basic Charts</a></li>
20 <li><a href="demos-qmlchart.html">Qml Basic Charts</a></li>
21 <li><a href="demos-qmlcustomizations.html">Qml Customizations</a></li>
21 <li><a href="demos-qmlcustomizations.html">Qml Customizations</a></li>
22 <li><a href="demos-qmlweather.html">Qml Weather</a></li>
23 <li><a href="demos-qmlf1legends.html">Qml F1 Legends</a></li>
24 <li><a href="demos-qmlcustommodel.html">Qml Custom Model</a></li>
22 <li><a href="demos-qmlcustommodel.html">Qml Custom Model</a></li>
23 <li><a href="demos-qmlf1legends.html">Qml F1 Legends</a></li>
25 <li><a href="demos-qmloscilloscope.html">Qml Oscilloscope</a></li>
24 <li><a href="demos-qmloscilloscope.html">Qml Oscilloscope</a></li>
25 <li><a href="demos-qmlweather.html">Qml Weather</a></li>
26 </ul>
26 </ul>
27 </td>
27 </td>
28 </tr>
28 </tr>
29 </table>
29 </table>
30 \endraw
30 \endraw
31 */
31 */
@@ -1,35 +1,36
1 /*!
1 /*!
2 \example examples/donutbreakdown
2 \example examples/donutbreakdown
3 \title Donut chart breakdown example
3 \title Donut chart breakdown example
4 \subtitle
4 \subtitle
5
5
6 This example shows how to use create a donut breakdown chart using QPieSeries API.
6 This example shows how to use create a donut breakdown chart using QPieSeries API.
7 \image examples_donutbreakdown.png
7
8
8 Let's start by defining some data for the chart.
9 Let's start by defining some data for the chart.
9
10
10 \snippet ../examples/donutbreakdown/main.cpp 1
11 \snippet ../examples/donutbreakdown/main.cpp 1
11
12
12 Then we create a chart where we add the data. Note that this this is our own chart derived from QChart.
13 Then we create a chart where we add the data. Note that this this is our own chart derived from QChart.
13
14
14 \snippet ../examples/donutbreakdown/main.cpp 2
15 \snippet ../examples/donutbreakdown/main.cpp 2
15
16
16 Our own chart works so that in the constructor we create a main series
17 Our own chart works so that in the constructor we create a main series
17 which aggregates the data provided by the breakdown series. This is the piechart in the center.
18 which aggregates the data provided by the breakdown series. This is the piechart in the center.
18
19
19 \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 1
20 \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 1
20
21
21 When a breakdown series is added the data is used to create a slice in the main series and the
22 When a breakdown series is added the data is used to create a slice in the main series and the
22 breakdown series itself is used to create a segment of a donut positioned so that it is aligned
23 breakdown series itself is used to create a segment of a donut positioned so that it is aligned
23 with the corresponding slice in the main series.
24 with the corresponding slice in the main series.
24
25
25 \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 2
26 \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 2
26
27
27 Here's how the start and end angles for the donut segments are calculated.
28 Here's how the start and end angles for the donut segments are calculated.
28
29
29 \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 3
30 \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 3
30
31
31 And now that we have our chart defined we can finally create a QChartView and show the chart.
32 And now that we have our chart defined we can finally create a QChartView and show the chart.
32
33
33 \snippet ../examples/donutbreakdown/main.cpp 3
34 \snippet ../examples/donutbreakdown/main.cpp 3
34
35
35 */
36 */
@@ -1,8 +1,8
1 /*!
1 /*!
2 \example examples/donutchart
2 \example examples/donutchart
3 \title Donutchart Example
3 \title Donutchart Example
4 \subtitle
4 \subtitle
5
5
6 The example shows how to create simple donut chart and do some customizations to a slice.
6 The example shows how to create simple donut chart and do some customizations to a slice.
7 \image examples_donut.png
7 \image examples_donutchart.png
8 */
8 */
@@ -1,45 +1,45
1 /*!
1 /*!
2 \page examples.html
2 \page examples.html
3 \title Examples
3 \title Examples
4 \keyword Examples
4 \keyword Examples
5
5
6 \raw HTML
6 \raw HTML
7 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
7 <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
8 <tr>
8 <tr>
9 <th class="titleheader" width="33%">
9 <th class="titleheader" width="33%">
10 List of examples
10 List of examples
11 </th>
11 </th>
12 </tr>
12 </tr>
13 <tr>
13 <tr>
14 <td valign="top">
14 <td valign="top">
15 <ul>
15 <ul>
16 <li><a href="examples-areachart.html">Area chart</a></li>
16 <li><a href="examples-areachart.html">Area chart</a></li>
17 <li><a href="examples-barchart.html">Bar chart</a></li>
17 <li><a href="examples-barchart.html">Bar chart</a></li>
18 <li><a href="examples-barmodelmapper.html">Bar chart from model</a></li>
18 <li><a href="examples-customchart.html">Custom chart</a></li>
19 <li><a href="examples-customchart.html">Custom chart</a></li>
20 <li><a href="examples-donutbreakdown.html">Donut breakdown chart</a></li>
21 <li><a href="examples-donutchart.html">Donut chart</a></li>
19 <li><a href="examples-horizontalbarchart.html">Horizontal bar chart</a></li>
22 <li><a href="examples-horizontalbarchart.html">Horizontal bar chart</a></li>
20 <li><a href="examples-horizontalstackedbarchart.html">Horizontal stacked bar chart</a></li>
21 <li><a href="examples-horizontalpercentbarchart.html">Horizontal percent bar chart</a></li>
23 <li><a href="examples-horizontalpercentbarchart.html">Horizontal percent bar chart</a></li>
24 <li><a href="examples-horizontalstackedbarchart.html">Horizontal stacked bar chart</a></li>
22 <li><a href="examples-legend.html">Legend</a></li>
25 <li><a href="examples-legend.html">Legend</a></li>
23 <li><a href="examples-linechart.html">Line chart</a></li>
24 <li><a href="examples-lineandbar.html">Line and barchart</a></li>
26 <li><a href="examples-lineandbar.html">Line and barchart</a></li>
27 <li><a href="examples-linechart.html">Line chart</a></li>
25 <li><a href="examples-modeldata.html">Model data</a></li>
28 <li><a href="examples-modeldata.html">Model data</a></li>
26 <li><a href="examples-barmodelmapper.html">Bar chart from model</a></li>
27 <li><a href="examples-percentbarchart.html">Percent bar chart</a></li>
29 <li><a href="examples-percentbarchart.html">Percent bar chart</a></li>
28 <li><a href="examples-piechart.html">Pie chart</a></li>
30 <li><a href="examples-piechart.html">Pie chart</a></li>
29 <li><a href="examples-donutchart.html">Donut chart</a></li>
30 <li><a href="examples-piechartdrilldown.html">Pie chart drilldown</a></li>
31 <li><a href="examples-piechartdrilldown.html">Pie chart drilldown</a></li>
31 <li><a href="examples-donutbreakdown.html">Donut breakdown chart</a></li>
32 <li><a href="examples-presenterchart.html">Presenter chart</a></li>
32 <li><a href="examples-presenterchart.html">Presenter chart</a></li>
33 <li><a href="examples-scatterchart.html">Scatter chart</a></li>
33 <li><a href="examples-scatterchart.html">Scatter chart</a></li>
34 <li><a href="examples-scatterinteractions.html">Scatter interactions</a></li>
34 <li><a href="examples-scatterinteractions.html">Scatter interactions</a></li>
35 <li><a href="examples-splinechart.html">Spline chart</a></li>
35 <li><a href="examples-splinechart.html">Spline chart</a></li>
36 <li><a href="examples-stackedbarchart.html">Stacked bar chart</a></li>
36 <li><a href="examples-stackedbarchart.html">Stacked bar chart</a></li>
37 <li><a href="examples-stackedbarchartdrilldown.html">Stacked bar chart drilldown</a></li>
37 <li><a href="examples-stackedbarchartdrilldown.html">Stacked bar chart drilldown</a></li>
38 <li><a href="examples-temperaturerecords.html">Temperature records</a></li>
38 <li><a href="examples-temperaturerecords.html">Temperature records</a></li>
39 <li><a href="examples-zoomlinechart.html">Zoom line</a></li>
39 <li><a href="examples-zoomlinechart.html">Zoom line</a></li>
40 </ul>
40 </ul>
41 </td>
41 </td>
42 </tr>
42 </tr>
43 </table>
43 </table>
44 \endraw
44 \endraw
45 */
45 */
@@ -1,64 +1,57
1 /*!
1 /*!
2 \page gettingstarted.html
2 \page gettingstarted.html
3 \title QtCommercial Charts getting started
3 \title QtCommercial Charts getting started
4 \keyword Introduction
4 \keyword Introduction
5
5
6 Compiling:
6 Compiling:
7 \code
7 \code
8 qmake CONFIG+=release
8 qmake CONFIG+=release
9 make
9 make
10 make install
10 make install
11 \endcode
11 \endcode
12
12
13 Depending on the OS and the compiler you are using "make" might need to be replaced with another command like: nmake, mingw32-make, etc.
13 Depending on the OS and the compiler you are using "make" might need to be replaced with another command like: nmake, mingw32-make, etc.
14
14
15 To uninstall the QtCommercialCharts run:
15 To uninstall the QtCommercialCharts run:
16 \code
16 \code
17 make uninstall
17 make uninstall
18 \endcode
18 \endcode
19
19
20 On Windows platforms both debug and release configurations are built by default at the same time.
21 To build both at the same time on other platforms invoke the following command:
22
23 \code
24 make all
25 \endcode
26
27 Compiling as a static library (lib only):
20 Compiling as a static library (lib only):
28 \code
21 \code
29 qmake CONFIG+=staticlib
22 qmake CONFIG+=staticlib
30 make
23 make
31 make install
24 make install
32 \endcode
25 \endcode
33
26
34 \bold {New project}
27 \bold {New project}
35
28
36 Create a new project in a usual way and then add to your project's *.pro file following line:
29 Create a new project in a usual way and then add to your project's *.pro file following line:
37
30
38 \code
31 \code
39 CONFIG += qtcommercialchart
32 CONFIG += qtcommercialchart
40 \endcode
33 \endcode
41
34
42 \bold {Widget project}
35 \bold {Widget project}
43
36
44 To use the QCharts classes add QtCommercialChart namespace macro in your header file.
37 To use the QCharts classes add QtCommercialChart namespace macro in your header file.
45 \code
38 \code
46 #include<QWidget>
39 #include<QWidget>
47 #include<QChartView>
40 #include<QChartView>
48
41
49 QTCOMMERCIALCHART_USE_NAMESPACE
42 QTCOMMERCIALCHART_USE_NAMESPACE
50
43
51 class ExampleWidget : public QWidget
44 class ExampleWidget : public QWidget
52 \endcode
45 \endcode
53
46
54 \bold {QML project}
47 \bold {QML project}
55
48
56 Add an import line to your *.qml file:
49 Add an import line to your *.qml file:
57 \code
50 \code
58 import QtCommercial.Chart 1.0
51 import QtCommercial.Chart 1.1
59 \endcode
52 \endcode
60
53
61 \raw HTML
54 \raw HTML
62 \endraw
55 \endraw
63
56
64 */
57 */
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
General Comments 0
You need to be logged in to leave comments. Login now