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:

  1. how can ohlc-values in click event function? tried this.points[0].point.close, works in tooltip formatter function, not when clicking.

  2. 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);   

http://jsfiddle.net/kdp87/13/

2) need add flag series.

http://jsfiddle.net/kdp87/14/


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -