diff --git a/index.js b/index.js index 9982a44..8bf34cc 100644 --- a/index.js +++ b/index.js @@ -160,6 +160,14 @@ export default class Chart extends Visualization { this.chartInstance = Highcharts.chart(this.getChartElementId(), chartOption) } + refresh() { + try { + this.chartInstance && this.chartInstance.setSize(this.targetEl.width()) + } catch (e) { + console.warn(e) + } + } + render(data) { const { chartChanged, parameterChanged,