summaryrefslogtreecommitdiffstats
path: root/examples/charts/qmlchartsgallery/qml/CandlestickSeries.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/charts/qmlchartsgallery/qml/CandlestickSeries.qml')
-rw-r--r--examples/charts/qmlchartsgallery/qml/CandlestickSeries.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/charts/qmlchartsgallery/qml/CandlestickSeries.qml b/examples/charts/qmlchartsgallery/qml/CandlestickSeries.qml
new file mode 100644
index 00000000..ad9ed52d
--- /dev/null
+++ b/examples/charts/qmlchartsgallery/qml/CandlestickSeries.qml
@@ -0,0 +1,26 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import QtQuick
+import QtCharts
+
+ChartView {
+ title: "Candlestick Chart"
+ width: 800
+ height: 600
+ theme: ChartView.ChartThemeLight
+ legend.alignment: Qt.AlignBottom
+ antialiasing: true
+
+ CandlestickSeries {
+ name: "Acme Ltd."
+ increasingColor: "green"
+ decreasingColor: "red"
+
+ CandlestickSet { timestamp: 1435708800000; open: 6.90; high: 6.94; low: 5.99; close: 6.60 }
+ CandlestickSet { timestamp: 1435795200000; open: 6.69; high: 6.69; low: 6.69; close: 6.69 }
+ CandlestickSet { timestamp: 1436140800000; open: 4.85; high: 6.23; low: 4.85; close: 6.00 }
+ CandlestickSet { timestamp: 1436227200000; open: 5.89; high: 6.15; low: 3.77; close: 5.69 }
+ CandlestickSet { timestamp: 1436313600000; open: 4.64; high: 4.64; low: 2.54; close: 2.54 }
+ }
+}