diff options
Diffstat (limited to 'tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml')
-rw-r--r-- | tests/qmlchartproperties/qml/qmlchartproperties/AreaChart.qml | 7 |
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 } |