Gauge Chart with custom range


#1

Hi, I’m trying to create a Gauge chart with custom range but when I set the range configuration to my chart in this way: “.set(‘ranges’, [0, 120])” the needle disappears and all the scale numbers go to 0.0. How can I do this, thanks.


#2

Hi @john, please take a second look at the gauge documentation. “ranges” is actually an array of arrays, so you need to set it as “.set(‘ranges’, [[0, 120]])”. The gauge visual is a multigraphic visual that can contain multiple gauges. Let me know if this answers your question.

Best regards,

Dario