AmCharts - OLHC 图表不可见

AmCharts - OLHC chart not visible

这是我的 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 needs to be ohlc. Swap the letters and it will work. Note that when comparing datasets, the compared graphs won't support ohlc as compareGraphType只支持线、列、步长和平滑线。