Open rishikeshct opened 7 years ago
The Gauge chart in the Google Visualization API doesn't get as much love as some of the other chart types. There are relatively few options.
If you want to apply some formatting to the big number at the bottom of the dial, you can use a formatted value. In your data table, instead of giving a simple value type, pass an object with v
and f
properties like this:
{ "v": 32.5, "f": "32.5 Mbps" }
Where v
the numeric data representing the value to render the chart with, and f
is the formatted value to display the chart value as in text.
There is not an option to change the formatting of the numbers on the lower and upper bounds of the dial.
You can se the ranges for which the green, yellow, and red regions are rendered, the min and max values of the dial, but that's pretty much it.
My recommendation would be... if you like HighCharts and it does what you need, perhaps you should use that instead? There's also a ton of other radial gauge chart libraries out there. I suspect Google Charts has the radial gauge from some internal use (I've never seen it used publicly by Google), and it this meets their needs, they're unlikely to change it. The specific thing you are looking for has been requested previously.
See #2130, #2127, #932
I want to implement speedometer to display internet bandwidth speed but I want to change its number sequence. I have search a lot but couldn't find anything.
Find below code snippet for the highchart gauge. I want to change the label (number).
Check following image of gauge: Highchart image(https://i.stack.imgur.com/mM2qt.png)
But my requirement is number sequence should be 0,1,5,10,20,30,40,50,60,70,80,90,100
Is there any way to change the numbers ?
Highcharts.chart('container', {
}, // Add some life function (chart) { if (!chart.renderer.forExport) { setInterval(function () { var point = chart.series[0].points[0], newVal, inc = Math.round((Math.random() - 0.5) * 20);
});