javascript - Get x and y value of a series in highcharts when curve is being plotted -


i using custom formatter yaxis in highcharts. following gives me current y axis value:

yaxis: {      labels:{            formatter: function(){                             return this.value                       }              } } 

is there way can access coordinate's x-axis value, , z-axis value inside formatter function? can values, not corresponding x, , z values.

first of need check chart object console this;

yaxis: {    labels:{        formatter: function(){                         console.log(this);                   }          } } 

you can find needed value in object. example; this.chart.xaxis[0].categories[0] give value of first element on xaxis.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -