diff --git a/src/legacy/core_plugins/metrics/public/visualizations/components/flot_chart.js b/src/legacy/core_plugins/metrics/public/visualizations/components/flot_chart.js index 980cc4b244e7..0e83bf76019c 100644 --- a/src/legacy/core_plugins/metrics/public/visualizations/components/flot_chart.js +++ b/src/legacy/core_plugins/metrics/public/visualizations/components/flot_chart.js @@ -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());