mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This commit is contained in:
parent
fcce6cd6ed
commit
e08f0c2e8a
1 changed files with 3 additions and 1 deletions
|
@ -250,8 +250,10 @@ class FlotChart extends Component {
|
||||||
|
|
||||||
if (resize.clientWidth > 0 && resize.clientHeight > 0) {
|
if (resize.clientWidth > 0 && resize.clientHeight > 0) {
|
||||||
this.rendered = true;
|
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);
|
this.handleDraw(this.plot);
|
||||||
|
|
||||||
_.defer(() => this.handleResize());
|
_.defer(() => this.handleResize());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue