Library for VueJS graphics creation?

2

I need to do graphing, and I'm using the VueJS framework along with Quasar. I wonder if anyone knows or knows any library so I can generate these graphs; I've seen some, but the documentation is in Chinese, which makes it very difficult. Thanks in advance.

    
asked by anonymous 03.08.2017 / 21:17

1 answer

2

You can use Vue-Chartjs , it's very simple to use, in addition to being one of the most beautiful.

import VueCharts from 'vue-chartjs'    
import { Bar } from 'vue-chartjs'

export default Bar.extend({
  mounted () {
    this.renderChart({
      labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
      datasets: [
        {
          label: 'GitHub Commits',
          backgroundColor: '#f87979',
          data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 11]
        }
      ]
    })
  }
})
    
02.10.2017 / 15:21