Skip to content

Component is not reacting by dataset in using VueUiGauge and VueUiWheel #40

Answered by graphieros
manulsan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @manulsan :)

You can upgrade to version 2.2.18 which solves reactivity issues for these components.
Thank you for pointing it out, and for trying out the library!

Let me know if you still have issues with these components.

I don't think you should update the from and to attributes of the dataset series. They are meant to be fixed to convey information about how bad or good is the current value.

PS.
Another way to force re-redering while waiting for a solution would have been for you to add a key to the component, and increment it whenever dataset changes.

const step = ref(0);

watch(() => props.liveData.widgetData.value.value, () => {
  step.value += 1;
})
<VueUiGauge
  :dataset="dataset

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by graphieros
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug : dataset Dataset is not being computed properly
2 participants