Skip to content

Chartjs component is based on chart.js for Vue Bulma

License

Notifications You must be signed in to change notification settings

vue-bulma/chartjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chartjs

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

Installation

$ npm install vue-bulma-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


fundon.me  ·  GitHub @fundon  ·  Twitter @_fundon

About

Chartjs component is based on chart.js for Vue Bulma

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages