Skip to content

Commit

Permalink
No height computation for bar charts: let Highcharts do it...
Browse files Browse the repository at this point in the history
  • Loading branch information
louisantoinem committed Oct 25, 2016
1 parent f0cc61d commit 7710248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editablegrid_charts.js
Expand Up @@ -217,15 +217,17 @@ EditableGrid.prototype.renderBarChart = function(divId, title, labelColumnIndexO
}

// auto height based on number of bars
/*
if (type == 'bar') {
var stacks = {};
chart.chart.height = 100; // margin
chart.chart.height = 200; // margin
for (var s = 0; s < chart.series.length; s++) {
if (chart.series[s].stack in stacks) continue; // count height only once per stack
stacks[chart.series[s].stack] = true;
chart.chart.height += serie.data.length * 40;
}
}
*/

// render chart
$('#' + divId).highcharts(chart, function (chart) {
Expand Down

0 comments on commit 7710248

Please sign in to comment.