gpt4 book ai didi

javascript - AmCharts - OLHC 图表不可见

转载 作者:行者123 更新时间:2023-12-03 02:10:30 24 4
gpt4 key购买 nike

这是我的 StockGraph 对象:

"stockGraphs": [ {
"id": "g1",
"title": "someText",
"precision": 2,
"openField": "open",
"closeField": "close",
"highField": "high",
"lowField": "low",
"valueField": "close",
"lineColor": "#00e673",
"fillColors": "#00e673",
"negativeLineColor": "#db4c3c",
"negativeFillColors": "#db4c3c",
"type": "olhc",
"compareable": true,
"lineThickness": 2,
"balloonText": "open: [[open]]\nclose: [[close]]\nhigh: [[high]]\nclose: [[close]]",
"fillAlphas": 0.6
} ],

当我用烛台或线条替换类型时,它显示完美。但是当我将其设置为olhc时,什么也没有显示。图表光标是可见的思想。可能是图表已绘制但由于某种原因不可见。

最佳答案

type需要是ohlc。交换字母就可以了。请注意,比较数据集时,比较的图表将不支持 ohlc,如 compareGraphType仅支持 line、column、step 和 smoothedLine。

关于javascript - AmCharts - OLHC 图表不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49595697/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com