1.0.6 • Published 6 years ago

vb-chartjs v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Chartjs

Chartjs component is based on chart.js for Vue Bulma.

Installation

$ npm install vb-chartjs

Examples

<template>
  <chart :type="'pie'" :data="data" :options="options"></chart>
</template>

<script>
import Chart from 'vue-bulma-chartjs'

export default {
  components: {
    Chart
  },

  data () {
    return {
      data: {
        labels: ['Sleeping', 'Designing', 'Coding', 'Cycling'],
          datasets: [{
          data: [20, 40, 5, 35],
          backgroundColor: [
            '#1fc8db',
            '#fce473',
            '#42afe3',
            '#ed6c63',
            '#97cd76'
          ]
        }]
      },
      options: {
        segmentShowStroke: false
      }
    }
  }
}
</script>

Badges

npm.io npm.io


fundon.me  ·  GitHub @fundon  ·  Twitter @_fundon