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