summaryrefslogtreecommitdiffstats
path: root/basicsuite/enterprise-charts/View2.qml
diff options
context:
space:
mode:
authorJuho Annunen <juho.annunen@qt.io>2018-04-17 13:57:22 +0300
committerJuho Annunen <juho.annunen@qt.io>2018-05-04 10:02:08 +0000
commit7c41444789be188fc47b3d68f4431d85d52d1e46 (patch)
treece360465329abebd2b5535f10ae2cc9afc7d82d0 /basicsuite/enterprise-charts/View2.qml
parent2a50d497ef0e24732d5168d2d42c5d6bc27e23c6 (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/View2.qml')
-rw-r--r--basicsuite/enterprise-charts/View2.qml15
1 files changed, 10 insertions, 5 deletions
diff --git a/basicsuite/enterprise-charts/View2.qml b/basicsuite/enterprise-charts/View2.qml
index 8f136cc..504e6a1 100644
--- a/basicsuite/enterprise-charts/View2.qml
+++ b/basicsuite/enterprise-charts/View2.qml
@@ -51,17 +51,15 @@
import QtQuick 2.0
import QtCharts 2.0
-Rectangle {
+Item {
anchors.fill: parent
-
//![1]
- ChartView {
+ BaseChart {
title: "Line"
anchors.fill: parent
- antialiasing: true
-
LineSeries {
name: "LineSeries"
+ color: defaultGreen
XYPoint { x: 0; y: 0 }
XYPoint { x: 1.1; y: 2.1 }
XYPoint { x: 1.9; y: 3.3 }
@@ -70,6 +68,13 @@ Rectangle {
XYPoint { x: 3.4; y: 3.0 }
XYPoint { x: 4.1; y: 3.3 }
}
+
+ Component.onCompleted: {
+ axes[0].labelsColor = "white";
+ axes[1].labelsColor = "white";
+ axes[0].labelsFont = appFont;
+ axes[1].labelsFont = appFont;
+ }
}
//![1]
}