##// END OF EJS Templates
Fix trivial problems with examples and docs
Miikka Heikkinen -
r2442:7fe25bf61dfb
parent child
Show More
@@ -3,6 +3,6
3 \title Audio demo
3 \title Audio demo
4 \subtitle
4 \subtitle
5
5
6 This demos shows drawing of the dynamic data (microphon input)
6 This demos shows drawing of the dynamic data (microphone input)
7 \image demos_audio.png
7 \image demos_audio.png
8 */
8 */
@@ -9,7 +9,7
9 \row
9 \row
10 \o \br
10 \o \br
11 We begin with a chart that has a line series and a scatter series with random
11 We begin with a chart that has a line series and a scatter series with random
12 data. Both series' use the same axes.
12 data. Both series use the same axes.
13 \br
13 \br
14 \br
14 \br
15 \snippet ../demos/qmlaxes/qml/qmlaxes/View1.qml 1
15 \snippet ../demos/qmlaxes/qml/qmlaxes/View1.qml 1
@@ -13,7 +13,7
13
13
14 \snippet ../examples/legendmarkers/mainwidget.cpp 1
14 \snippet ../examples/legendmarkers/mainwidget.cpp 1
15
15
16 Here we connect the markers in legend to our handler. To avoid conncecting same marker more than once, we first disconnect it.
16 Here we connect the markers in legend to our handler. To avoid connecting same marker more than once, we first disconnect it.
17
17
18 \snippet ../examples/legendmarkers/mainwidget.cpp 2
18 \snippet ../examples/legendmarkers/mainwidget.cpp 2
19
19
@@ -25,7 +25,7
25
25
26 \snippet ../examples/multiaxis/main.cpp 4
26 \snippet ../examples/multiaxis/main.cpp 4
27
27
28 Create a QChartView object with QChart as a parameter. Enanle Antialiasing to have the rendered splines look nicer.
28 Create a QChartView object with QChart as a parameter. Enable Antialiasing to have the rendered splines look nicer.
29
29
30 \snippet ../examples/multiaxis/main.cpp 5
30 \snippet ../examples/multiaxis/main.cpp 5
31
31
@@ -1,6 +1,6
1 /*!
1 /*!
2 \example examples/scatterinteractions
2 \example examples/scatterinteractions
3 \title ScatterChart Example
3 \title ScatterInteractions Example
4 \subtitle
4 \subtitle
5
5
6 The example shows how to create simple scatter chart and how to interact with the chart.
6 The example shows how to create simple scatter chart and how to interact with the chart.
@@ -71,7 +71,7
71 </tr>
71 </tr>
72
72
73 <tr>
73 <tr>
74 <td><a href="examples-logvalueaxis.html">Logarythmic axis</a></td>
74 <td><a href="examples-logvalueaxis.html">Logarithmic axis</a></td>
75 <td><a href="examples-modeldata.html">Model Data</a></td>
75 <td><a href="examples-modeldata.html">Model Data</a></td>
76 </tr>
76 </tr>
77 <tr>
77 <tr>
@@ -57,7 +57,7
57
57
58 Add an import line to your *.qml file:
58 Add an import line to your *.qml file:
59 \code
59 \code
60 import QtCommercial.Chart 1.1
60 import QtCommercial.Chart 1.2
61 \endcode
61 \endcode
62
62
63 \raw HTML
63 \raw HTML
@@ -69,7 +69,7 int main(int argc, char *argv[])
69 QBarCategoryAxis *axis = new QBarCategoryAxis();
69 QBarCategoryAxis *axis = new QBarCategoryAxis();
70 axis->append(categories);
70 axis->append(categories);
71 chart->createDefaultAxes();
71 chart->createDefaultAxes();
72 // chart->setAxisX(axis, series);
72 chart->setAxisX(axis, series);
73 //![4]
73 //![4]
74
74
75 //![5]
75 //![5]
@@ -31,34 +31,21 int main(int argc, char *argv[])
31
31
32 //![1]
32 //![1]
33 QLineSeries *series = new QLineSeries();
33 QLineSeries *series = new QLineSeries();
34 QLineSeries *series2 = new QLineSeries();
35 //![1]
34 //![1]
36
35
37 //![2]
36 //![2]
38 *series << QPointF(0.06197, 0.16)
37 series->append(0, 6);
39 << QPointF(0.18694, 0.16)
38 series->append(2, 4);
40 << QPointF(0.3119, 0.16)
39 series->append(3, 8);
41 << QPointF(0.43687, 0.16)
40 series->append(7, 4);
42 << QPointF(0.56183, 0.16)
41 series->append(10, 5);
43 << QPointF(0.68678, 0.16)
42 *series << QPointF(11, 1) << QPointF(13, 3) << QPointF(17, 6) << QPointF(18, 3) << QPointF(20, 2);
44 << QPointF(0.81173, 0.16)
45 << QPointF(0.93667, 0.16);
46
47 *series2 << QPointF(0.06197, 0.16)
48 << QPointF(0.18694, 0.16)
49 << QPointF(0.3119, 0.16)
50 << QPointF(0.43687, 0.16)
51 << QPointF(0.56183, 0.16)
52 << QPointF(0.68678, 0.16)
53 << QPointF(0.81173, 0.16)
54 << QPointF(0.93667, 0.16);
55 //![2]
43 //![2]
56
44
57 //![3]
45 //![3]
58 QChart *chart = new QChart();
46 QChart *chart = new QChart();
59 chart->legend()->hide();
47 chart->legend()->hide();
60 chart->addSeries(series);
48 chart->addSeries(series);
61 chart->addSeries(series2);
62 chart->createDefaultAxes();
49 chart->createDefaultAxes();
63 chart->setTitle("Simple line chart example");
50 chart->setTitle("Simple line chart example");
64 //![3]
51 //![3]
General Comments 0
You need to be logged in to leave comments. Login now