Merge pull request #16 from Ag47/master

Update README.md
This commit is contained in:
Jakub
2016-11-07 10:05:21 +01:00
committed by GitHub

View File

@@ -68,7 +68,7 @@ You can overwrite the default chart options. Just pass the options object as a s
import { Line } from 'vue-chartjs' import { Line } from 'vue-chartjs'
export default Line.extend({ export default Line.extend({
props: [data, options], props: ["data", "options"],
mounted () { mounted () {
this.renderChart(this.data, this.options) this.renderChart(this.data, this.options)
} }
@@ -107,8 +107,8 @@ The mixins automatically create `chartData` as a prop or data. And add a watcher
import { Line, reactiveProp } from 'vue-chartjs' import { Line, reactiveProp } from 'vue-chartjs'
export default Line.extend({ export default Line.extend({
mixins: [reactiveProp] mixins: [reactiveProp],
props: [chartData, options], props: ["chartData", "options"],
mounted () { mounted () {
this.renderChart(this.chartData, this.options) this.renderChart(this.chartData, this.options)
} }