简体   繁体   English

AmCharts-OLHC图表不可见

[英]AmCharts - OLHC chart not visible

Here is my StockGraph object: 这是我的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
      } ],  

When I replace the type with candlestick or line, it displays perfectly. 当我用烛台或线条替换该类型时,它会完美显示。 But when I set it to olhc, nothing is displayed. 但是,当我将其设置为olhc时,不会显示任何内容。 chart cursors are visible thought. 图表光标是可见的思想。 may be the chart is drawn but not visible for some reason. 可能是图表已绘制,但由于某种原因而不可见。

The type needs to be o h lc. type需要为OħLC。 Swap the letters and it will work. 交换字母,它将起作用。 Note that when comparing datasets, the compared graphs won't support ohlc as compareGraphType only supports line, column, step and smoothedLine. 请注意,比较数据集时,比较的图形将不支持ohlc,因为compareGraphType仅支持线,列,步和compareGraphType

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM