Change Labels in Charts

  • 0
  • 1
  • Question
  • Updated 5 years ago
  • Answered
This is my last attempt to see if there is any native way to update the labels in QB charts, before diving deep into JavaScript land.

Is it possible to update the legend titles in the charts that QB outputs similar to how you can update the column headings in reports?

Thank you!!
Photo of Leanne

Leanne

  • 354 Points 250 badge 2x thumb

Posted 5 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
FWIW, apparently the way to get a programmatic handle to a Highchart chart is with this command:

var chart = Highcharts.charts[0];

In other words, Highcharts.charts is an array of chart handles on the page and [0] gets the first one. You still have to get you JavaScript to run but having access the the raw chart object will allow you to directly call the Highchart API instead of hacking the rendered <svg> markup.