Skip to content

Commit

Permalink
[ZEPPELIN-3177]Add refresh function
Browse files Browse the repository at this point in the history
  • Loading branch information
sravan-s authored Jan 22, 2018
2 parents 072f878 + c5a5e09 commit 1a0bc43
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1a0bc43

Please sign in to comment.