Created
May 4, 2019 15:12
-
-
Save malgamves/f390b53cf4449e159e6df414fbe37a84 to your computer and use it in GitHub Desktop.
Chart.js BarChart Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CommitChart.js | |
import { HorizontalBar, mixins } from 'vue-chartjs' | |
const { reactiveProp } = mixins | |
export default { | |
extends: HorizontalBar, | |
mixins: [reactiveProp], | |
props: { | |
chartData: { | |
type: Object, | |
default: null | |
}, | |
options: { | |
type: Object, | |
default: null | |
} | |
}, | |
mounted () { | |
this.renderChart(this.chartData, this.options) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment