Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Marek Rosa
- Wed, 29 Aug 2012 07:18:34
Show More
0
doc/images/api_datatime_axis.png
doc/images/api_datatime_axis.png
created
644
binary
0
0
1
NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
0
src/axis/categoryaxis/qcategoryaxis.cpp
src/axis/categoryaxis/qcategoryaxis.cpp
+15
0
@@
-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
0
src/axis/datetimeaxis/qdatetimeaxis.cpp
src/axis/datetimeaxis/qdatetimeaxis.cpp
+3
-1
@@
-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 \n h:mm" ;
267
m_format = "dd-MM-yyyy \n h:mm" ;
266
}
268
}
267
269
268
QDateTimeAxisPrivate ::~ QDateTimeAxisPrivate ()
270
QDateTimeAxisPrivate ::~ QDateTimeAxisPrivate ()
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages