vue-highchart

0.0.2 • Public • Published

vue-highchart

A HighCharts component for Vue.js

Installation

npm install -S vue-highchart

Usage

You can simply import it and use it.

import Vue from 'vue';
import VueHighcharts from 'vue-highchart';
 
Vue.use(VueHighcharts);

If you want use china-map, world-map or any other add-on, you should import them on.

import mapData from 'vue-highchart/map/china';
import worldData from 'vue-highchart/map/world';

use these components in the template.

<template>
    <div class="index">
        <v-chart :config="chartConf"></v-chart>
        <v-map :config="mapConf"></v-map>
        <v-map :config="worldConf"></v-map>
    </div>
</template>

If you want to choose theme, you can use :theme.

<template>
    <div class="index">
        <v-chart :config="chartConf" :theme="theme"></v-chart>
    </div>
</template>

/vue-highchart/

    Package Sidebar

    Install

    npm i vue-highchart

    Weekly Downloads

    2

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    2.7 MB

    Total Files

    19

    Last publish

    Collaborators

    • akashi_sai