提交 eec42e05 编写于 作者: J Jason Park

auto resize chart

上级 a7263f75
...@@ -35,7 +35,9 @@ class ChartTracer extends Tracer { ...@@ -35,7 +35,9 @@ class ChartTracer extends Tracer {
}] }]
}, },
animation: false, animation: false,
legend: false legend: false,
responsive: true,
maintainAspectRatio: false
} }
}; };
this.chart = this.capsule.chart = new Chart(this.$wrapper, data); this.chart = this.capsule.chart = new Chart(this.$wrapper, data);
...@@ -99,6 +101,12 @@ class ChartTracer extends Tracer { ...@@ -99,6 +101,12 @@ class ChartTracer extends Tracer {
super.processStep(step, options); super.processStep(step, options);
} }
} }
resize() {
super.resize();
this.chart.resize();
}
} }
const initView = (tracer) => { const initView = (tracer) => {
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册