Would you like to work on a fix?
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
Would you like to work on a fix?
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