为highstock

时间:2016-02-19 15:43:55

标签: highcharts highstock

我正在尝试更改图表中每个标志的位置,而我正在使用highstock。 我添加这样的标志:

 {
        x: time,
        shape: 'url(images/indicators/down_fractal.png)',
        y:value,
        title: ' ',
        text: 'Fractal: ' + value
    };

还有我的系列配置:

seriesConf : {
            id: this.uniqueID,
            name: this.toString(),
            data: this.indicatorData,
            type: 'flags',
            onSeries: this.options.onSeriesID, //Series ID on which this flags will be rendered
            height: 10,
            width: 10,
            //y: 100,
            //turboThreshold: 0
        }

y值是设置标志位置但不起作用?是否可以定义每个标志位置? 在此sample中,您更改了y值,但没有任何反应。 我的主要想法是创建一个这样的图表: enter image description here

1 个答案:

答案 0 :(得分:1)

标志系列直接在系列上方呈现,点没有y选项(请参阅API)。

我认为你想使用带标记的简单散点图系列,看看:http://jsfiddle.net/ujgLzkq9/1/

使用series.y选项使用两个旗帜系列(一个在上面,第二个在线下)。