Home Forums Chart Support Get Max y Value Reply To: Get Max y Value



You can use click event handler for adding indexLabel to dataPoint that is clicked. Please check the code snippet below –

function onClick(e){      
  e.dataPoint.indexLabel = "Y: " + e.dataPoint.y;

Also, kindly check this JSFiddle for adding indexLabel on clicking specific dataPoint.

Add indexLabel on dataPoint click

Indranil Deo
Team CanvasJS