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.
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
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 | |
| 1.0.22 | MIT | |
| 1.0.21 | MIT | |
| 1.0.20 | MIT | |
| 1.0.19 | MIT | |
| 1.0.18 | MIT | |
| 1.0.17 | MIT | |
| 1.0.16 | MIT | |
| 1.0.15 | MIT | |
| 1.0.14 | MIT | |
| 1.0.13 | MIT | |
| 1.0.12 | MIT | |
| 1.0.11 | MIT | |
| 1.0.10 | MIT | |
| 1.0.9 | MIT | |
| 1.0.8 | MIT | |
| 1.0.7 | MIT | |
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT |