VueJS component wrapping Morris.js
JavaScript Vue


Vue.js components wrapping Morris.js lib

See for documentation

Depends on Vue.js v2.1.0+


Use npm

npm install vue-morris --save


For a complete example, see files in examples directory or the project:

  • Import the component
// Do not forget to import raphael
import Raphael from 'raphael/raphael'
global.Raphael = Raphael

import Vue from 'vue'
import { DonutChart } from 'vue-morris'

new Vue({
  el: '#app',

  data: {
    donutData: [
      { label: 'Red', value: 300 },
      { label: 'Blue', value: 50 },
      { label: 'Yellow', value: 100 }

    components: {
    DonutChart, BarChart, LineChart, AreaChart
  • Use the component in html
  colors='[ "#FF6384", "#36A2EB", "#FFCE56" ]' 
  • Bar chart bar chart

  • Line chart line chart

  • Area chart area chart

  • Donut chart donut chart

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build