From 97c6834fdbda3dcfd5e8d3029cb3ad23953e1a7d Mon Sep 17 00:00:00 2001 From: xidedix Date: Thu, 5 Apr 2018 15:14:35 +0200 Subject: [PATCH] refactor(social-box-chart-example): props --- src/views/dashboard/SocialBoxChartExample.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/dashboard/SocialBoxChartExample.vue b/src/views/dashboard/SocialBoxChartExample.vue index 1d948111..9c03f4bf 100644 --- a/src/views/dashboard/SocialBoxChartExample.vue +++ b/src/views/dashboard/SocialBoxChartExample.vue @@ -3,7 +3,16 @@ import { Line } from 'vue-chartjs' export default { extends: Line, - props: ['data', 'height'], + props: { + data: { + type: Array, + default: () => [0, 22, 34, 46, 58, 70, 46] + }, + height: { + type: String, + default: '100' + } + }, mounted () { this.renderChart({ labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],