-
Notifications
You must be signed in to change notification settings - Fork 112
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
xAxes ticks not updated after new data #80
Comments
I am experiencing the same issue with the labels not reflecting the data after a change. Seems if you interact with the chart (i.e., selecting a bar) it corrects, so maybe it's a nextTick thing. Anyhow, reverting to 0.5.11 fixes it for now. That said, this project is great and a real life saver. Looking forward to a fix. Thanks so much and keep up the great work. One other thing: Also with the 2.x version, I had to deep clone the data when it changed else I was getting a Vuex error about mutating the state. Not sure whey that was happening but I don't have the same issue after reverting. |
Hi! Sorry for the late reply I don't have much time to look into this. If I find a little spot i swear to look at it! :D If you want to make it easier can you make a codesanbox with your bug? :D |
Hi Victor, Again many thanks for the work you've done here. I don't know if this helps you but the change that causes the labels not to update happens in fix #33, Specifically, replacing Cheers |
Hi, After replacing Line 133 in af4d6b3
node_modules/vue-chart-3/dist/components.js
In my app I use the options api. |
@victorgarciaesgi i got an running codesandbox now |
Sorry for responding just now. I will fix it! |
Done in |
just wanted to test if it works but can't get the new version
this is strange because |
@NicoP-S It's a known bug, try updating |
i updated to latest @vue/composition-api 1.4.6... but the error is still there |
Hmm try cleaning node_modules and cache, it's not the first time this error emerges for me and others, and the fix was always to update the |
Ok after delete package-lock.json it is running again. But the graph is still not correct. I updated my codesandbox too: |
Thanks for the sandbox! I will look at it :) |
It should be the same issue as #108 in Vue 3. I will look at it |
@victorgarciaesgi is the fix from issue 108 also working for vue2? |
Hum no sorry i overlooked, #108 was a Vue 3 problem, but it should be related, the fix should be the same |
Should be fixed in |
@victorgarciaesgi i just tested the codepen and my own codebase and it's working now :) |
Describe the bug
Start: two day range hourly = 48 data elements & labels -> everything OK
Switching to day basis = two data elements and two labels.
The data is updated but the chart xAxes does not. I tried
this.$refs.chart.chartInstance.update()
but nothing changedI thought the data i put into the chart is not reactive. So i added an output of the chartData in the template and the data is updating.
I checked the ticks with the following
Is there a way to force update of the xAxes ticks?
Version of
vue-chart-3
v2.0.5*
Version of Vue
The text was updated successfully, but these errors were encountered: