在融合图中将注释定位到Y值

时间:2018-10-31 15:55:07

标签: javascript fusioncharts

我需要在柱形图中的每个类别的给定位置上放置一条直线或矩形。如何根据Y轴值将某物放置在某个位置? 例如。 Y轴的取值范围是0到1500,我想将第一条注释线定位在200。

只是看它应该是什么样子,这是图表的小提琴,我在其中使用一些列来放置注释线(但后来我无法隐藏那些列)。 https://jsfiddle.net/21br83pz/

"annotations": {
    "showbelow": "0",
    //Annotations on a chart can be divided across multiple groups for easy management, and manipulation through API
    "groups": [{
      //Each group needs a unique ID
      "id": "Minimi",
      //Under each group, you can define multiple items. Each item is a polygon, text or image - with its own set of parameters.
      "items": [{
            //Each item needs a unique ID
            "id": "minimo-0",
            "type": "line",
            "fillColor": "#6baa01",
            "x": "$xaxis.0.label.0.startx",
            "y": "300",
            "tox": "$xaxis.0.label.0.endx"
        },{
            //Each item needs a unique ID
            "id": "minimo-1",
            "type": "line",
            "fillColor": "#6baa01",
            "x": "$xaxis.0.label.1.startx",
            "y": "300",
            "tox": "$xaxis.0.label.1.endx"
        },{
            //Each item needs a unique ID
            "id": "minimo-2",
            "type": "line",
            "fillColor": "#6baa01",
            "x": "$xaxis.0.label.2.startx",
            "y": "300",
            "tox": "$xaxis.0.label.2.endx"
        },
      ...
      ] // items
    }]
  }

0 个答案:

没有答案