Skip to content

Instantly share code, notes, and snippets.

@nidhi-canopas
Last active August 16, 2022 06:23
Show Gist options
  • Select an option

  • Save nidhi-canopas/f29bf7e048f2f63911e5926a7f5c70bd to your computer and use it in GitHub Desktop.

Select an option

Save nidhi-canopas/f29bf7e048f2f63911e5926a7f5c70bd to your computer and use it in GitHub Desktop.
<template>
<Bar />
</template>
<script >
import { Bar } from "vue-chartjs";
import {
Chart as ChartJS,
Title,
Tooltip,
Legend,
BarElement,
CategoryScale,
LinearScale,
} from "chart.js";
ChartJS.register(
Title,
Tooltip,
Legend,
BarElement,
CategoryScale,
LinearScale
);
export default {
components: {
Bar,
},
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment