Home forums Using CanvasJS How to update indexLabel with label and value. Reply To: How to update indexLabel with label and value.

#17370

jeppy7
Member

That’s almost correct. I was actually able to get it sort of working. I can use either chart.options.data[0].dataPoints[0].indexLabel = “{label} {y}”; or chart.options.data[0].indexLabel = “{label} {y}”; but the only way I can get it to show up is if I call chart.render() again after the change. When I do that I get some weird behavior though. The circle doesn’t redraw very well, etc. Is there any way to get the updated options to show on screen without having to call chart.render()?

  • This reply was modified 1 month ago by  jeppy7.