Home › forums › Report Bugs › Columns does not fit chart
This topic contains 2 replies, has 2 voices, and was last updated by Sunil Urs 5 years ago.
Columns does not fit the chart when more than 6 series with same labels are declared.
Please see this link.
How to set the default width for the columns?
If the width can’t be changed, do you have other ways to make those columns fit?
I’ve tried this.
But as you can see, the other label can be seen with no columns in it.
Is it possible to hide the second label? That would be better for now.
If you have better ways, please help.
I found my temporary solution to this.
I’ve modified the maxBarWidth variable of the Chart.prototype.renderColumn function in the canvasjs.js.
var maxBarWidth = (this.width * .15);
, I changed it into
var maxBarWidth = (this.width * .063); //or whatever value you like to fit in the chart
Still, its temporary.
Hope the width setting will be available soon.
Thanks in advance!
Here is a new build that fixes the issue. Please try the same and let me know if its working as expected.
You must be logged in to reply to this topic.