diff options
author | Juho Annunen <juho.annunen@qt.io> | 2018-04-17 13:57:22 +0300 |
---|---|---|
committer | Juho Annunen <juho.annunen@qt.io> | 2018-05-04 10:02:08 +0000 |
commit | 7c41444789be188fc47b3d68f4431d85d52d1e46 (patch) | |
tree | ce360465329abebd2b5535f10ae2cc9afc7d82d0 /basicsuite/enterprise-charts/View3.qml | |
parent | 2a50d497ef0e24732d5168d2d42c5d6bc27e23c6 (diff) |
Update Charts demo to new UI theme
Task-number: QTBUG-62792
Change-Id: I95c6fb038f5d427da2ed1ee6698e1afcfa436eee
Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
Diffstat (limited to 'basicsuite/enterprise-charts/View3.qml')
-rw-r--r-- | basicsuite/enterprise-charts/View3.qml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/basicsuite/enterprise-charts/View3.qml b/basicsuite/enterprise-charts/View3.qml index 8429050..8c4e862 100644 --- a/basicsuite/enterprise-charts/View3.qml +++ b/basicsuite/enterprise-charts/View3.qml @@ -51,17 +51,15 @@ import QtQuick 2.0 import QtCharts 2.0 -Rectangle { +Item { anchors.fill: parent - //![1] - ChartView { + BaseChart { title: "Spline" anchors.fill: parent - antialiasing: true - SplineSeries { name: "SplineSeries" + color: defaultGreen XYPoint { x: 0; y: 0.0 } XYPoint { x: 1.1; y: 3.2 } XYPoint { x: 1.9; y: 2.4 } @@ -70,6 +68,13 @@ Rectangle { XYPoint { x: 3.4; y: 2.3 } XYPoint { x: 4.1; y: 3.1 } } + + Component.onCompleted: { + axes[0].labelsColor = "white"; + axes[1].labelsColor = "white"; + axes[0].labelsFont = appFont; + axes[1].labelsFont = appFont; + } } //![1] } |