summaryrefslogtreecommitdiffstats
path: root/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2012-06-27 13:36:44 +0300
committerTero Ahola <tero.ahola@digia.com>2012-06-27 13:42:48 +0300
commita73a407edc1bf6c907ee2f110a6539732176ea7c (patch)
treedb20b5acdb056ad5a6d3e6f520c2f320014c1d40 /tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
parent07228be889f4e3ed146ae80c079534f3a4f28f2c (diff)
Added value and category axis to QML api
Diffstat (limited to 'tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml')
-rw-r--r--tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml b/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
index 55e68ce0..b4c57326 100644
--- a/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
+++ b/tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml
@@ -24,14 +24,17 @@ import QtCommercial.Chart 1.0
ChartView {
title: "area series"
anchors.fill: parent
- axisXLabels: ["0", "2000", "1", "2001", "2", "2002", "3", "2003", "4", "2004", "5", "2005",
- "6", "2006", "7", "2007", "8", "2008", "9", "2009", "10", "2010", "11", "2011"]
property variant series: areaSeries
AreaSeries {
id: areaSeries
name: "area 1"
+ axisX: CategoriesAxis {
+ id: categoriesAxis
+ categories: ["2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007",
+ "2008", "2009", "2010", "2011" ]
+ }
upperSeries: LineSeries {
XYPoint { x: 0; y: 1 }
XYPoint { x: 1; y: 1 }