highcharts - Setting Flag on Click Event for Candlestick Chart -
i found thread here, didn't me, ask again. highstock highcharts setting flag on click event
here jsfiddle: http://jsfiddle.net/charissima/kdp87/10/
i have 2 questions:
how can ohlc-values in click event function? tried this.points[0].point.close, works in tooltip formatter function, not when clicking.
how can set flag on candle in way http://jsfiddle.net/u2z2x/2/ does?
plotoptions: { series: { cursor: 'pointer', point: { events: { click: function () { alert('date: ' + highcharts.dateformat('%y-%m-%d',this.x) + ', value: ' + this.y); alert('date: ' + highcharts.dateformat('%y-%m-%d',this.x) + ', close: ' + this.points[0].point.close); } } } } },
1) open / close / high / low values available in this object.
alert('date: ' + highcharts.dateformat('%y-%m-%d',this.x) + 'value: ' + this.y + ', close: ' + this.close + ' open: ' + this.open + ' high: ' + this.high + ' low: ' + this.low); 2) need add flag series.
Comments
Post a Comment