All Projects → weizhenye → Vue Highcharts

weizhenye / Vue Highcharts

Licence: mit
📊 Highcharts component for Vue

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Highcharts

react-learning-resources
A curated list of resources to learn React and related web technologies as fast as possible.
Stars: ✭ 65 (-83.79%)
Mutual labels:  highcharts
highcharts-themes-collection
Highcharts themes collection
Stars: ✭ 30 (-92.52%)
Mutual labels:  highcharts
Gochart
A chart plotting tool implemented by Golang and Highcharts.
Stars: ✭ 293 (-26.93%)
Mutual labels:  highcharts
cdn
Highcharts中文网开放CDN服务
Stars: ✭ 37 (-90.77%)
Mutual labels:  highcharts
django-highcharts-example
Code samples used in the blog post "How to Integrate Highcharts.js with Django"
Stars: ✭ 28 (-93.02%)
Mutual labels:  highcharts
data-visualization
🔗 configurable data visualization
Stars: ✭ 18 (-95.51%)
Mutual labels:  highcharts
scalajs-highcharts
Scala.js static typed facades for Highcharts library
Stars: ✭ 30 (-92.52%)
Mutual labels:  highcharts
Redispapa
another redis monitor by using flask, angular, socket.io
Stars: ✭ 389 (-2.99%)
Mutual labels:  highcharts
ng-highcharts
Angular Directive for Highcharts
Stars: ✭ 12 (-97.01%)
Mutual labels:  highcharts
JimuReport
「低代码可视化报表」类似excel操作风格,在线拖拽完成设计!功能涵盖: 报表设计、图形报表、打印设计、大屏设计等,完全免费!秉承“简单、易用、专业”的产品理念,极大的降低报表开发难度、缩短开发周期、解决各类报表难题。
Stars: ✭ 2,895 (+621.95%)
Mutual labels:  highcharts
Tweet-Analysis-With-Kafka-and-Spark
A real time analytics dashboard to analyze the trending hashtags and @ mentions at any location using kafka and spark streaming.
Stars: ✭ 18 (-95.51%)
Mutual labels:  highcharts
chart
📊📉 Add beautiful and reusable charts with one line of ruby for Rails 5.x
Stars: ✭ 42 (-89.53%)
Mutual labels:  highcharts
vue3-highcharts
Vue 3 component wrapper for Highcharts.js
Stars: ✭ 41 (-89.78%)
Mutual labels:  highcharts
Ecommerce
Angular 6 Ecommerce Application POC
Stars: ✭ 46 (-88.53%)
Mutual labels:  highcharts
React Jsx Highcharts
Highcharts built with proper React components
Stars: ✭ 336 (-16.21%)
Mutual labels:  highcharts
VPS-Monitor
Watch cpu load, ram usage, hdd usage and some more stuff on your website
Stars: ✭ 36 (-91.02%)
Mutual labels:  highcharts
highcharts-webcomponent
Highcharts Web Component usable with any Framework
Stars: ✭ 21 (-94.76%)
Mutual labels:  highcharts
Angular2 Highcharts
📊 📈 Highcharts for your Angular project
Stars: ✭ 393 (-2%)
Mutual labels:  highcharts
Aachartcore Kotlin
📈📊⛰⛰⛰An elegant modern declarative data visualization chart framework for Android . Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types.极其精美而又强大的 Android 数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
Stars: ✭ 332 (-17.21%)
Mutual labels:  highcharts
highcharts-export-clientside
Module for Highcharts to exports charts client-side
Stars: ✭ 49 (-87.78%)
Mutual labels:  highcharts

vue-highcharts

GitHub Action Coverage NPM version License File size Download jsDelivr

Highcharts component for Vue.

Requirements

  • Vue >= 3.0.0
  • Highcharts >= 4.2.0

Installation

npm i -S vue-highcharts

For Vue 2, please run npm i -S [email protected], and checkout document here.

Usage

Registering globally

import { createApp } from 'vue';
import Highcharts from 'highcharts';
import VueHighcharts from 'vue-highcharts';

import App from './App.vue';

const app = createApp(App);
app.use(VueHighcharts, { Highcharts });
// now <Highcharts /> is available in components
Direct <script> include
<script src="/path/to/vue/dist/vue.global.prod.js"></script>
<script src="/path/to/highcharts/highcharts.js"></script>
<script src="/path/to/vue-highcharts/dist/vue-highcharts.js"></script>
<script>
const { createApp } = window.Vue;
const app = createApp();
app.use(window.VueHighcharts['default'], { Highcharts: window.Highcharts });
</script>

Highstock, Highmaps and any other add-ons

import { createApp } from 'vue';
import Highcharts from 'highcharts';
import VueHighcharts from 'vue-highcharts';

import App from './App.vue';

// load these modules as your need
import loadStock from 'highcharts/modules/stock.js';
import loadMap from 'highcharts/modules/map.js';
import loadGantt from 'highcharts/modules/gantt.js';
import loadDrilldown from 'highcharts/modules/drilldown.js';
// some charts like solid gauge require `highcharts-more.js`, you can find it in official document.
import loadHighchartsMore from 'highcharts/highcharts-more.js';
import loadSolidGauge from 'highcharts/modules/solid-gauge.js';

loadStock(Highcharts);
loadMap(Highcharts);
loadGantt(Highcharts);
loadDrilldown(Highcharts);
loadHighchartsMore(Highcharts);
loadSolidGauge(Highcharts);

const app = createApp(App);
app.use(VueHighcharts, { Highcharts });
// now <Highcharts />, <Highstock />, <Highmaps />, <HighchartsGantt /> is available in components
// drilldown and solid gauge are work with <Highcharts />

Registering in components

<template>
  <Highcharts />
  <Highmaps />
</template>

<script>
import Highcharts from 'highcharts';
import { createHighcharts } from 'vue-highcharts';

import loadMap from 'highcharts/modules/map.js';

loadMap(Highcharts);

export default {
  components: {
    Highcharts: createHighcharts('Highcharts', Highcharts),
    Highmaps: createHighcharts('Highmaps', Highcharts),
    // Highstock: createHighcharts('Highstock', Highcharts),
    // HighchartsGantt: createHighcharts('HighchartsGantt', Highcharts),
  },
};
</script>

Typing:

type ChartName = 'Highcharts' | 'Highstock' | 'Highmaps' | 'HighchartsGantt';
function createHighcharts(name: ChartName, Highcharts: Highcharts): VueComponent | null

Configuration options and the chart instance

<template>
  <Highcharts ref="highchartsRef" :options="chartOptions" />
  <Highstock :options="stockOptions" />
  <Highmaps :options="mapsOptions" />
  <HighchartsGantt :options="ganttOptions" />
</template>

<script>
import { ref, onMounted } from 'vue';

export default {
  setup() {
    const highchartsRef = ref(null);
    onMounted(() => {
      // access the `chart` instance with template refs
      const { chart } = highchartsRef.value;
    });
    return {
      highchartsRef,
      chartOptions: {},
      stockOptions: {},
      mapsOptions: {},
      ganttOptions: {},
    };
  },
};
</script>

The options object can be found in Highcharts API Reference.

The chart instance can be accessed with template refs.

Demo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].