for a working codepen, you need to include vue-chartjs from the cdn
To work with "live" data, you will need to inlcude the reactiveProp Mixin or reactiveData Mixin, depending on if you're passing your chartdata as a prop to your component or you're using a local data model.
Check out the docs: vue-chartjs.org/#/home?id=reactive...
I got my code to work finally on the website codepen: codepen.io/lalcubo/pen/VWrJwG
My problem its the following:
When i press the button it graphs correctly, and you can see it draws a dot (caption) with it's value.
If you press the button again, it graphs perfectly again with a random value,
if you mouseover the new value(dot) show the current value, but if you mouseover the cursor over the previous value(dot) it will show the old value(dot) overlaping it.
I need to show only the current value, not the previous ones.
We’re a place for programmers to stay up-to-date, learn new skills, and share ideas.
We’ll never post without your permission.