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

#15686

nikunj,

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;
  e.chart.render();	   
} 

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

Add indexLabel on dataPoint click

___________
Indranil Deo
Team CanvasJS