mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix TSVB flot chart render after index pattern change (#29949)
This commit is contained in:
parent
2e37de7bc0
commit
403348b388
1 changed files with 3 additions and 1 deletions
|
@ -250,8 +250,10 @@ class FlotChart extends Component {
|
|||
|
||||
if (resize.clientWidth > 0 && resize.clientHeight > 0) {
|
||||
this.rendered = true;
|
||||
this.plot = $.plot(this.target, [], this.getOptions(this.props));
|
||||
const { series } = this.props;
|
||||
const data = this.calculateData(series, this.props.show);
|
||||
|
||||
this.plot = $.plot(this.target, data, this.getOptions(this.props));
|
||||
this.handleDraw(this.plot);
|
||||
|
||||
_.defer(() => this.handleResize());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue