##// END OF EJS Templates
Axis docs updated
Marek Rosa -
r1887:e0460f4395dd
parent child
Show More
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
@@ -33,6 +33,21 QTCOMMERCIALCHART_BEGIN_NAMESPACE
33
33
34 This class can be used when the underlying data needs to be given extra meaning.
34 This class can be used when the underlying data needs to be given extra meaning.
35 Unlike with the QBarCategoryAxis the QCategoryAxis allows the categories ranges widths to be specified freely.
35 Unlike with the QBarCategoryAxis the QCategoryAxis allows the categories ranges widths to be specified freely.
36
37 Example code on how to use QCategoryAxis.
38 \code
39 QChartView *chartView = new QChartView;
40 QLineSeries *series = new QLineSeries;
41 // ...
42 chartView->chart()->addSeries(series);
43
44 QCategoryAxis *axisX = new QCategoryAxis;
45 axisX->setStartValue(15);
46 axisX->append("First", 20);
47 axisX->append("Second", 37);
48 axisX->append("Third", 52);
49 chartView->chart()->setAxisX(series, axisX);
50 \endcode
36 */
51 */
37 /*!
52 /*!
38 \qmlclass CategoryAxis QCategoryAxis
53 \qmlclass CategoryAxis QCategoryAxis
@@ -36,6 +36,8 QTCOMMERCIALCHART_BEGIN_NAMESPACE
36 Note that any date before 4714 BCE or after about 1.4 million CE may not be accurately stored.
36 Note that any date before 4714 BCE or after about 1.4 million CE may not be accurately stored.
37 QDateTimeAxis can be setup to show axis line with tick marks, grid lines and shades.
37 QDateTimeAxis can be setup to show axis line with tick marks, grid lines and shades.
38
38
39 \image api_datatime_axis.png
40
39 Example code on how to use QDateTimeAxis.
41 Example code on how to use QDateTimeAxis.
40 \code
42 \code
41 QChartView *chartView = new QChartView;
43 QChartView *chartView = new QChartView;
@@ -262,7 +264,7 QDateTimeAxisPrivate::QDateTimeAxisPrivate(QDateTimeAxis* q):
262 {
264 {
263 m_min = QDateTime::fromMSecsSinceEpoch(0);
265 m_min = QDateTime::fromMSecsSinceEpoch(0);
264 m_max = QDateTime::fromMSecsSinceEpoch(0);
266 m_max = QDateTime::fromMSecsSinceEpoch(0);
265 m_format = "dd-MMM-yyyy\nh:mm";
267 m_format = "dd-MM-yyyy\nh:mm";
266 }
268 }
267
269
268 QDateTimeAxisPrivate::~QDateTimeAxisPrivate()
270 QDateTimeAxisPrivate::~QDateTimeAxisPrivate()
General Comments 0
You need to be logged in to leave comments. Login now