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.