Multibar Horizontal Chart - long labels are cut
See original GitHub issueI wanted to do some charts and I noticed when I type long names/labels they are cut.
This is my code:
$scope.options = { chart: { type: 'multiBarHorizontalChart', height: 450, x: function(d) { return d.label; }, y: function(d) { return d.value; }, showControls: false, showValues: false, "showLegend": false, "showXAxis": true, "showYAxis": false, duration: 500, xAxis: { showMaxMin: false }, yAxis: { "showMaxMin": false, tickFormat: function(d) { return d3.format(',.2f')(d); } } } };
Can I make it working somehow?
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top GitHub Comments
If you can compute the label width before the rendering then you could set the margin accordingly. I used that to compute min and max for X and Y axes regarding the fetched data.
Yes, I am dumb. Thank you