palerdot / react-d3-speedometer

React Speedometer component using d3.js ⚛️
https://palerdot.in/react-d3-speedometer/
MIT License
230 stars 57 forks source link

Can I set maxValue Dynamic #185

Closed Prathameshmagdum closed 4 months ago

Prathameshmagdum commented 4 months ago

actually, im using socket for live value and maxlimit (coming from response ) im setting into maxValue its working good but some data dont have maxlimit so it shows needle in middle of gauge view , now i want to set live value as maxlimit but not working i guess so how can i and also the value is greater than maxlimit that also i want to set as maxlimit how can i Screenshot from 2024-05-01 14-53-17 Screenshot from 2024-05-01 15-02-41

palerdot commented 4 months ago

I'm not sure if I understand your issue correctly, but you can try the forceRender option to rerender the gauge once you change the maxValue dynamically.

Prathameshmagdum commented 4 months ago

Okay in response i have maxlimit for particular gauge and that maxlimit i am setting into maxValue now some gauges dont have maxlimit so that time i wants to set the realtime live value coming from socket into maxValue so live value continuously coming at some period of time but its not working, will try forceRender Thank You !