@@ -48,7 +48,8 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
48 | QStringList categories; |
|
48 | QStringList categories; | |
49 | categories << "Jan" << "Feb" << "Mar" << "Apr" << "May" << "Jun"; |
|
49 | categories << "Jan" << "Feb" << "Mar" << "Apr" << "May" << "Jun"; | |
50 | axisX->append(categories); |
|
50 | axisX->append(categories); | |
51 | chartView->chart()->setAxisX(series, axisX); |
|
51 | axisX->setRange("Feb", "May"); | |
|
52 | chartView->chart()->setAxisX(axisX, series); | |||
52 | \endcode |
|
53 | \endcode | |
53 | */ |
|
54 | */ | |
54 |
|
55 |
@@ -46,7 +46,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
46 | axisX->append("First", 20); |
|
46 | axisX->append("First", 20); | |
47 | axisX->append("Second", 37); |
|
47 | axisX->append("Second", 37); | |
48 | axisX->append("Third", 52); |
|
48 | axisX->append("Third", 52); | |
49 |
chartView->chart()->setAxisX( |
|
49 | chartView->chart()->setAxisX(axisX, series); | |
50 | \endcode |
|
50 | \endcode | |
51 | */ |
|
51 | */ | |
52 | /*! |
|
52 | /*! |
@@ -65,7 +65,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
65 | // ... |
|
65 | // ... | |
66 | QDateTimeAxis *axisX = new QDateTimeAxis; |
|
66 | QDateTimeAxis *axisX = new QDateTimeAxis; | |
67 | axisX->setFormat("dd-MM-yyyy h:mm"); |
|
67 | axisX->setFormat("dd-MM-yyyy h:mm"); | |
68 |
chartView->chart()->setAxisX( |
|
68 | chartView->chart()->setAxisX(axisX, series); | |
69 | \endcode |
|
69 | \endcode | |
70 | */ |
|
70 | */ | |
71 |
|
71 |
@@ -47,7 +47,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
47 | axisX->setRange(10, 20.5); |
|
47 | axisX->setRange(10, 20.5); | |
48 | axisX->setTickCount(10); |
|
48 | axisX->setTickCount(10); | |
49 | axisX->setLabelFormat("%.2f"); |
|
49 | axisX->setLabelFormat("%.2f"); | |
50 |
chartView->chart()->setAxisX( |
|
50 | chartView->chart()->setAxisX(axisX, series); | |
51 | \endcode |
|
51 | \endcode | |
52 | */ |
|
52 | */ | |
53 |
|
53 |
General Comments 0
You need to be logged in to leave comments.
Login now