You must be logged in to post your query.
Home › Forums › Report Bugs › Columns does not fit chart
Tagged: Column
Hi there!
Columns does not fit the chart when more than 6 series with same labels are declared. Please see this link.
http://jsfiddle.net/chris0000/3QxxL/4/
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.
http://jsfiddle.net/chris0000/3QxxL/6/
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. Thank you!
-chris
I found my temporary solution to this. I’ve modified the maxBarWidth variable of the Chart.prototype.renderColumn function in the canvasjs.js.
From 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!
Chris,
Here is a new build that fixes the issue. Please try the same and let me know if its working as expected.
— Sunil Urs
You must be logged in to reply to this topic. Login/Register