Fix TSVB flot chart render after index pattern change (#29949) (#30052)

This commit is contained in:
Daniil Suleiman 2019-02-05 14:58:36 +03:00 committed by GitHub
parent fcce6cd6ed
commit e08f0c2e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());