Home › forums › Using CanvasJS › Changing the size of the canvas
We have a chart with “Countries” running down the X-axis.
View post on imgur.com
Since there are so many of them, we decided to switch it to the Y-axis.
But it is all scrunched up, as you can see.
We want to keep the countries on the Y-axis. But, how would I make the Y-axis expand “on demand” as the country list grows over time and not look the way it is looking now…??
Thanks in advance.
Labels are skipped to avoid overlapping. However, to show all the labels, you can set the interval to 1 in axisX (vertical in case of the bar chart). Also, you can increase the height of the chart to allocate more space for the axis to accommodate labels.
If this doesn’t fulfill your requirement, kindly create sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the sample data so that we can run it locally at our end, understand the scenario better and help you resolve.
You must be logged in to reply to this topic.