fixing metric reporting issue (#13933)

This commit is contained in:
Peter Pisljar 2017-09-11 16:51:25 +02:00 committed by GitHub
parent 5a4a4f5ad6
commit d82cc0f4ad

View file

@ -52,7 +52,7 @@ export function GaugeChartProvider(Private) {
const gauges = self.gauge.drawGauge(g, series, width, height);
if (self.gaugeConfig.type === 'simple') {
const bbox = svg.node().children[0].getBBox();
const bbox = svg.node().firstChild.getBBox();
const finalWidth = bbox.width + containerMargin * 2;
const finalHeight = bbox.height + containerMargin * 2;
svg