gauge.js icon indicating copy to clipboard operation
gauge.js copied to clipboard

Multiple bars [enhancement]

Open roccomuso opened this issue 7 years ago • 5 comments

Is it possible to have multiple bars? Like this:

roccomuso avatar Mar 17 '17 15:03 roccomuso

This would be awesome! Even if the number of dimensions is limited to just a few... (multiple needles would also be nice).

ktsaou avatar Mar 17 '17 15:03 ktsaou

Oh yeah. It would be great if some can implement this. @ktsaou multiple needles in the existing gauge should already work. Just provide an array of values instead of a scalar value in the .set() method.

kplindegaard avatar Mar 18 '17 14:03 kplindegaard

Well, I solved this with multiple canvas' and a little css. screen shot 2017-04-26 at 13 17 47

MathiasHC avatar Apr 26 '17 11:04 MathiasHC

Hi,

Can anybody please share example to add multiple bar with multiple needles. I would like to show gauges as shown in below image multiplegauge

sdeshpande4 avatar Jul 06 '17 10:07 sdeshpande4

Thank you for the trick of sending an array of value instead of a value to the .set() method. It is working perfectly! image

Do you have any idea how we could differentiate the colors of these 2 needles? I would need to have the first needle of one color, and the second of another color.

Thanks for the help

lorenzo11 avatar Oct 10 '18 17:10 lorenzo11