bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Generate Multiple Gauge Chart on single page. #121

Closed shuheen closed 7 years ago

shuheen commented 7 years ago

Hi,

I have a table with some content and i want to generate gauge in a column of table in each row. and there will be one button along with each gauge to update corresponding gauge value.

Suppose if i click Second row button so it should update value of second row gauge only..

Below is the screen shot what i want.

capture

please help

kplindegaard commented 7 years ago

Can you please be a bit more specific? It's entirely up to you to create as many as you want.

shuheen commented 7 years ago

Thanks.. @kplindegaard for the quick response.

I have updated the description. As i am creating table dynamically in loop... so gauge will also be generate with loop.. Table row could be 10,1000,10000 and so on according to requirement.

kplindegaard commented 7 years ago

If you want to make this generic and have an arbitrary number of rows, I think you should consider angularjs. There might be other tools you are familiar with, but I have used angular a few times to achieve this with good results. There is a link in issue #104 to an angular directive that should get you going. Good luck :)

kplindegaard commented 7 years ago

Closing this issue for now. It has been answered. See comments above.