vuejs-highcharts

1.0.14 • Public • Published

Vue.js Highcharts

GitHub npm npm npm

Wrapper for Highcharts library for Vue.js 2.x.

Documentation

For more features, access ederssouza.github.io/vuejs-highcharts.

Installation

$ npm install vuejs-highcharts --save
# OR
$ yarn add vuejs-highcharts

Basic usage

<template>
  <ColumnChart
    :xAxis="chart.xAxis"
    :series="chart.series"
  />
</template>

<script>
import { ColumnChart } from 'vuejs-highcharts'

export default {
  name: 'BasicChartSample',
  components: {
    ColumnChart
  },
  data () {
    return {
      chart: {
        xAxis: {
          categories: [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007]
        },
        series: [
          {
            name: 'Installation',
            color: '#03bbd4',
            data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
          },
          {
            name: 'Manufacturing',
            color: '#f7a35c',
            data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
          }
        ]
      }
    }
  }
}
</script>

Package Sidebar

Install

npm i vuejs-highcharts

Weekly Downloads

6

Version

1.0.14

License

MIT

Unpacked Size

3.53 MB

Total Files

55

Last publish

Collaborators

  • ederssouza