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

Vue bar graph doesnt work on multiple versions[Bug]: #1099

Open
1 task
PurpleDevIO opened this issue May 21, 2024 · 0 comments
Open
1 task

Vue bar graph doesnt work on multiple versions[Bug]: #1099

PurpleDevIO opened this issue May 21, 2024 · 0 comments

Comments

@PurpleDevIO
Copy link

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Recently I made a graph in nuxt and I had no issues but when I tried in vue I couldnt make it work so I looked at the examples and when that didnt work I made it as bare bone as possible.
So I changed the version from the most recent to the one I used at my nuxt project (4.4.2) and then I tried an older version (4.1.1) and it still didnt work and I cant see what it could be.
If I change the data the Y axis will change its values accordingly

code bellow:

<script setup lang="ts"> import { Bar} from 'vue-chartjs' import { computed } from 'vue' import { Chart as ChartJS, Title, Tooltip, Legend, BarElement, CategoryScale, LinearScale, BarController } from 'chart.js' ChartJS.register(Title, Tooltip, Legend, BarElement, CategoryScale, LinearScale, BarController) const chartData = { datasets: [{ data: [40, 20, 12] }] } const chartOptions = { responsive: true, } </script>

Reproduction

use Vue3

chart.js version

4.4.2

vue-chartjs version

5.3.1

Possible solution

No response

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

No branches or pull requests

1 participant