diff --git a/src/components/svgChart.vue b/src/components/svgChart.vue index 2e1a8e3..19d92d4 100644 --- a/src/components/svgChart.vue +++ b/src/components/svgChart.vue @@ -1,7 +1,7 @@ @@ -13,10 +13,10 @@ components: { svgChartLine }, - props: ["lines", "options", "svg"], + props: ["lines", "options","width","height"], computed: { viewbox() { - return `0 0 ${this.svg.w} ${this.svg.h}`; + return `0 0 ${this.width} ${this.height}`; } } } diff --git a/src/components/svgChartLine.vue b/src/components/svgChartLine.vue index ed05a3c..e9ae9a3 100644 --- a/src/components/svgChartLine.vue +++ b/src/components/svgChartLine.vue @@ -7,7 +7,7 @@ export default { name: "svgChartLine", - props: ["d", "o", "svg"], + props: ["d", "o"], computed: { styles() { return {