Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload GaugeChart when nedleValue option is changed #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tusil
Copy link

@tusil tusil commented Aug 11, 2021

When needleValue option is changed, the GaugeChart instance is removed and created again with the new value. The GaugeChart.updateNeedle method only updates needle position, but if you need to update needle position with the centralLabel option, the GaugeChart instance has to be removed and created again.

Reload GaugeChart when nedleValue option is changed.
@tusil tusil marked this pull request as draft August 11, 2021 19:28
Use updateNeedle when only needleValue is changed.
@tusil tusil marked this pull request as ready for review August 11, 2021 19:31
@tusil
Copy link
Author

tusil commented Aug 11, 2021

When the needleValue option is changed, the updateNeedle method is called on the GaugeChart instance. If the centralLabel option is changed with the needleValue option, the GaugeChart instance is removed and created again.

Fixes #1

@sathishsundar05
Copy link

This works fine, can the author of this repo please merge and make a release with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants