w-highcharts-vue

A vue component for highcharts and highstock.
5,592
Install
npm install w-highcharts-vue
Latest Version:1.0.27
Vue:2
License:MIT
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: semisphere

w-highcharts-vue

A vue component for highcharts and highstock.

language language npm version license npm download npm download jsdelivr download

Highcharts and vue-highcharts are bundled in this package, no need to load them from cdn.

Documentation

To view documentation or get support, visit docs.

Example

To view some examples for more understanding, visit examples:

all components: web [source code]

Installation

Using npm(ES6 module):

npm i w-highcharts-vue

Import all components:

//choose component
<w-highcharts-vue
    ...
></w-highcharts-vue>

//import
import WHighchartsVue from 'w-highcharts-vue'

//use
Vue.use(WHighchartsVue)

Import one component:

//choose component
<w-highcharts-vue
    ...
></w-highcharts-vue>

//import
import WHighchartsVue from 'w-highcharts-vue/src/components/WHighchartsVue.vue'

//component
Vue.component('w-highcharts-vue',WHighchartsVue)
//or
export default {
    components: {
        WHighchartsVue,
        //or
        'w-highcharts-vue': WHighchartsVue,
    },
    ...
}

In a browser(UMD module):

Add script for vue.

<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>

Add script for w-highcharts-vue.

<script src="https://cdn.jsdelivr.net/npm/w-highcharts-vue@1.0.27/dist/w-highcharts-vue.umd.js"></script>

Directly use:

//app and component
<div id="app">
    <w-highcharts-vue
        ...
    ></w-highcharts-vue>
</div>

//use
Vue.use(window['w-highcharts-vue'])

//new
new Vue({
    el: '#app',
    data: {
        ...
    }
})

Components

component tag description
WHighchartsVue w-highcharts-vue Highcharts chart, use options for highcharts settings
WHighstockVue w-highstock-vue Highstock chart, use options for highstock settings

Use $refs for accessing the inner chart instance:

//template
<w-highcharts-vue
    ref="hc"
    :options="options"
></w-highcharts-vue>

//chart, an instance of Highcharts.Chart
let chart = this.$refs.hc.$refs.$self.chart

Related Packages

w-echarts-vue

A vue component for echarts.

4,581 0
@bryntum/chart-vue-3-thin

Vue 3 wrappers for Bryntum Chart JavaScript component

2,715
plotscope-vue

PlotScope as a Vue component

1,106
vue-highcharts

Highcharts component for Vue

180,359 404
vue-chart-js

Chart.js for VueJs.

10,491 33

Version History

Version Released License
1.0.27 MIT
1.0.26 MIT
1.0.25 MIT
1.0.24 MIT
1.0.23 MIT