From ca1ba8bb31f504e4ed1c62c984f34f6277fd2ba9 Mon Sep 17 00:00:00 2001 From: Juan Thomassie Date: Mon, 8 Dec 2014 17:32:26 -0600 Subject: [PATCH] updated vis minHeights to 40px to match min heights for flexbos vis layouts, closes #2125 and #2141 --- src/kibana/components/vislib/visualizations/area_chart.js | 2 +- src/kibana/components/vislib/visualizations/column_chart.js | 2 +- src/kibana/components/vislib/visualizations/line_chart.js | 2 +- src/kibana/components/vislib/visualizations/pie_chart.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kibana/components/vislib/visualizations/area_chart.js b/src/kibana/components/vislib/visualizations/area_chart.js index 1885add41629b..9f1b446090a71 100644 --- a/src/kibana/components/vislib/visualizations/area_chart.js +++ b/src/kibana/components/vislib/visualizations/area_chart.js @@ -289,7 +289,7 @@ define(function (require) { var elWidth = this._attr.width = $elem.width(); var elHeight = this._attr.height = $elem.height(); var minWidth = 20; - var minHeight = 20; + var minHeight = 40; var div; var svg; var width; diff --git a/src/kibana/components/vislib/visualizations/column_chart.js b/src/kibana/components/vislib/visualizations/column_chart.js index 1465f2b13d002..84578f2ad7b86 100644 --- a/src/kibana/components/vislib/visualizations/column_chart.js +++ b/src/kibana/components/vislib/visualizations/column_chart.js @@ -253,7 +253,7 @@ define(function (require) { var elWidth = this._attr.width = $elem.width(); var elHeight = this._attr.height = $elem.height(); var minWidth = 20; - var minHeight = 20; + var minHeight = 40; var div; var svg; var width; diff --git a/src/kibana/components/vislib/visualizations/line_chart.js b/src/kibana/components/vislib/visualizations/line_chart.js index 3f63adeca26b4..7a7b913076273 100644 --- a/src/kibana/components/vislib/visualizations/line_chart.js +++ b/src/kibana/components/vislib/visualizations/line_chart.js @@ -220,7 +220,7 @@ define(function (require) { var xScale = this.handler.xAxis.xScale; var chartToSmallError = 'The height and/or width of this container is too small for this chart.'; var minWidth = 20; - var minHeight = 20; + var minHeight = 40; var startLineX = 0; var lineStrokeWidth = 1; var div; diff --git a/src/kibana/components/vislib/visualizations/pie_chart.js b/src/kibana/components/vislib/visualizations/pie_chart.js index 502f8d7309d18..2b4fc7786ce0f 100644 --- a/src/kibana/components/vislib/visualizations/pie_chart.js +++ b/src/kibana/components/vislib/visualizations/pie_chart.js @@ -137,7 +137,7 @@ define(function (require) { var width = $(el).width(); var height = $(el).height(); var minWidth = 20; - var minHeight = 20; + var minHeight = 40; var path; if (width <= minWidth || height <= minHeight) {