这是我的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时,没有显示任何内容。图表游标是可见的想法。可能是绘制图表但由于某种原因不可见。
答案 0 :(得分:1)
type
需要 h lc。交换字母,它会工作。请注意,在比较数据集时,比较的图表不支持ohlc,因为compareGraphType
仅支持line,column,step和smoothedLine。