c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Is there a way to refresh/update the gauge max value?

Open jmoller opened this issue 11 years ago • 3 comments

Hello all,

I was looking into the reference guide of c3 but i could not find a way to update/refresh de gauge max value. I need something like this:

gauge.load({ columns: [['data', 100]], max: 30, });

gauge.load({ columns: [['data', 100]], max: 20, });

The max value in my gauge is dynamic so i need a way to update it.

Thank you!

jmoller avatar Jan 29 '15 18:01 jmoller

Hi, Can you try this fiddle? http://jsfiddle.net/7kYJu/1103/ load API does not accept gauge.max as an argument, but we can change it through chart.internal.config.gauge_max variable.

And could you ask this kind of question in Google Group first according to this? https://github.com/masayuki0812/c3#using-the-issue-queue Thanks!

masayuki0812 avatar Feb 26 '15 03:02 masayuki0812

Please let me close at this moment.

masayuki0812 avatar Feb 26 '15 03:02 masayuki0812

It is very interesting for me this feature. Have you in mind to realize it?

andjimrio avatar Dec 10 '18 10:12 andjimrio