@@ -164,7 +164,7 Rectangle { | |||||
164 | //![3] |
|
164 | //![3] | |
165 |
|
165 | |||
166 | Component.onCompleted: { |
|
166 | Component.onCompleted: { | |
167 |
|
|
167 | // createDefaultAxes(); | |
168 | setAxisX(categoryAxis,myBarSeries) |
|
168 | setAxisX(categoryAxis,myBarSeries) | |
169 | setAxisX(categoryAxis,lineSeries1) |
|
169 | setAxisX(categoryAxis,lineSeries1) | |
170 | setAxisX(categoryAxis,lineSeries2) |
|
170 | setAxisX(categoryAxis,lineSeries2) |
@@ -45,6 +45,7 ChartView::ChartView(QWidget *parent) | |||||
45 |
|
45 | |||
46 | chart()->addSeries(m_scatter2); |
|
46 | chart()->addSeries(m_scatter2); | |
47 | chart()->addSeries(m_scatter); |
|
47 | chart()->addSeries(m_scatter); | |
|
48 | chart()->createDefaultAxes(); | |||
48 | chart()->axisX()->setRange(0, 4.5); |
|
49 | chart()->axisX()->setRange(0, 4.5); | |
49 | chart()->axisY()->setRange(0, 4.5); |
|
50 | chart()->axisY()->setRange(0, 4.5); | |
50 |
|
51 |
General Comments 0
You need to be logged in to leave comments.
Login now