From ecfd5f8501815f27824bac9eb9806bd4e6673e45 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 22 Sep 2020 16:08:44 +0300 Subject: [PATCH] Migrated charts to v3 --- src/components/chart/Chart.vue | 10 ++++++++-- src/views/chart/ChartDoc.vue | 8 ++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/chart/Chart.vue b/src/components/chart/Chart.vue index ce08e2b02..d8e712ff2 100755 --- a/src/components/chart/Chart.vue +++ b/src/components/chart/Chart.vue @@ -12,8 +12,14 @@ export default { type: String, data: null, options: null, - width: Number, - height: Number + width: { + type: Number, + default: 300 + }, + height: { + type: Number, + default: 150 + }, }, chart: null, mounted() { diff --git a/src/views/chart/ChartDoc.vue b/src/views/chart/ChartDoc.vue index b872ace82..64b6a115f 100755 --- a/src/views/chart/ChartDoc.vue +++ b/src/views/chart/ChartDoc.vue @@ -112,14 +112,14 @@ options: { width - string - null + number + 300 Width of the chart in non-responsive mode. height - string - null + number + 150 Height of the chart in non-responsive mode.