@laramab/x-chart

A simple snippet vue-chartjs code base.

Usage no npm install needed!

<script type="module">
  import laramabXChart from 'https://cdn.skypack.dev/@laramab/x-chart';
</script>

README

x-chart

A simple snippet vue-chartjs code base.

Installation

npm install @laramab/x-chart --save

Nuxtjs

npm install vue-chartjs chart.js --save

Import the package into main.js file

import Vue from 'vue'
import XChart from '@laramab/x-chart'

Vue.use(XChart)

Usage

Example.vue

<template>
  <x-chart-line/>
  <x-chart-doughnut/>
  <x-chart-bar/>
</template>

<script>
export default {
  
}
</script>

<style scoped>

</style>

Plugins

  • chartjs-plugin-datalabels@1