@@ -34,7 +34,19 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
34 | \mainclass |
|
34 | \mainclass | |
35 |
|
35 | |||
36 | ValueAxis can be setup to show axis line with tick marks, grid lines and shades. |
|
36 | ValueAxis can be setup to show axis line with tick marks, grid lines and shades. | |
37 | Values of axis are drawn to position of ticks |
|
37 | Values of axis are drawn to position of ticks. | |
|
38 | ||||
|
39 | Example code on how to use QValueAxis. | |||
|
40 | \code | |||
|
41 | QChartView *chartView = new QChartView; | |||
|
42 | QLineSeries *series = new QLineSeries; | |||
|
43 | // ... | |||
|
44 | QValueAxis *axisX = new QValueAxis; | |||
|
45 | axisX->setRange(10, 20.5); | |||
|
46 | axisX->setTickCount(10); | |||
|
47 | axisX->setLabelFormat("%.2f"); | |||
|
48 | chartView->chart()->setAxisX(series, axisX); | |||
|
49 | \endcode | |||
38 | */ |
|
50 | */ | |
39 |
|
51 | |||
40 | /*! |
|
52 | /*! |
General Comments 0
You need to be logged in to leave comments.
Login now