| 1 |
// Copyright (C) 2023 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 |
|
| 4 |
import QtQuick |
| 5 |
import QtCharts |
| 6 |
|
| 7 |
ChartView { |
| 8 |
title: "Candlestick Chart" |
| 9 |
width: 800 |
| 10 |
height: 600 |
| 11 |
theme: ChartView.ChartThemeLight |
| 12 |
legend.alignment: Qt.AlignBottom |
| 13 |
antialiasing: true |
| 14 |
|
| 15 |
CandlestickSeries { |
| 16 |
name: "Acme Ltd." |
| 17 |
increasingColor: "green" |
| 18 |
decreasingColor: "red" |
| 19 |
|
| 20 |
CandlestickSet { timestamp: 1435708800000; open: 6.90; high: 6.94; low: 5.99; close: 6.60 } |
| 21 |
CandlestickSet { timestamp: 1435795200000; open: 6.69; high: 6.69; low: 6.69; close: 6.69 } |
| 22 |
CandlestickSet { timestamp: 1436140800000; open: 4.85; high: 6.23; low: 4.85; close: 6.00 } |
| 23 |
CandlestickSet { timestamp: 1436227200000; open: 5.89; high: 6.15; low: 3.77; close: 5.69 } |
| 24 |
CandlestickSet { timestamp: 1436313600000; open: 4.64; high: 4.64; low: 2.54; close: 2.54 } |
| 25 |
} |
| 26 |
} |