summaryrefslogtreecommitdiffstats
path: root/basicsuite/enterprise-charts/View3.qml
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/enterprise-charts/View3.qml')
-rw-r--r--basicsuite/enterprise-charts/View3.qml15
1 files changed, 10 insertions, 5 deletions
diff --git a/basicsuite/enterprise-charts/View3.qml b/basicsuite/enterprise-charts/View3.qml
index 8429050..3211e9e 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: _primaryGreen
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]
}