提问人:Zeeshan 提问时间:2/15/2022 更新时间:2/16/2022 访问量:809
交易 veiw 轻量级图表将时间刻度设置为一小时
Trading veiw Lightweight graph set timescale at one hour
问:
我目前正在使用轻量级图表作为我的烛台图,但我遇到了一个问题。如何在烛台中设置我的数据。
我的数据。
"data": [
{
"open": "1.18384",
"high": "1.1845",
"low": "1.18368",
"close": "1.18429",
"date": "2020-08-20 00:00:00"
},
{
"open": "1.18458",
"high": "1.18483",
"low": "1.18367",
"close": "1.18385",
"date": "2020-08-19 23:00:00"
},]
我怎样才能设置这个数据需要帮助!
答:
-1赞
Romain Francois
2/16/2022
#1
您的数据必须正确格式化,如下所示:
- 所有 OHLC 数据都必须是数字,而不是字符串
- 需要命名的日期
time
下面是一个示例:
[
{
time: '2018-12-22',
open: 162.81,
high: 167.96,
low: 160.17,
close: 160.48,
},
{
time: '2018-12-24',
open: 160.16,
high: 161.4,
low: 158.09,
close: 158.14,
},
]
评论