We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A clear and concise description of what the bug is.
Hi guys,
I'm trying to access the ref using a setup as described in the docs:
<template> <LineChart ref="chart" :chartData="data" :options="options" /> </template> <script lang="ts"> import { defineComponent, ref, onMounted } from "vue"; import { LineChart } from "vue-chart-3"; import { Chart, registerables } from "chart.js"; import gradient from "chartjs-plugin-gradient"; Chart.register(...registerables); export default defineComponent({ props: ["data"], name: "Chart", components: { LineChart }, setup() { const lineRef = ref(); onMounted(() => { console.log(lineRef.value); }) return lineRef; },
The value of ref always returns undefined. Is there something I'm missing?
vue-chart-3
3.1.8
The text was updated successfully, but these errors were encountered:
same here
Sorry, something went wrong.
same
No branches or pull requests
Describe the bug
A clear and concise description of what the bug is.
Hi guys,
I'm trying to access the ref using a setup as described in the docs:
The value of ref always returns undefined. Is there something I'm missing?
Version of
vue-chart-3
3.1.8
Version of Vue
The text was updated successfully, but these errors were encountered: