Skip to content
Projects Vue.js Projects
Vue Morris

Vue Morris

VueJS component wrapping Morris.js

3.8K viewsAdded Jan 12, 2019

VueJS component wrapping Morris.js

Install

Use npm

npm install vue-morris --save

Examples

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

<donut-chart
                                    id="donut"
                                    :data="donutData"
                                    colors='[ "#FF6384", "#36A2EB", "#FFCE56" ]'
                                    resize="true">
</donut-chart>

Vue.js Projects

A hand-picked collection of projects made with Vue.js: UI components, input elements, apps, plugins, examples and frameworks.

Newsletter

Get the best new Vue projects in your inbox.

© 2026 vuejsprojects.com