Home Forums Chart Support Changing the size of the canvas

Changing the size of the canvas

Viewing 2 posts - 1 through 2 (of 2 total)
  • #25877

    Hello Support.

    We have a chart with “Countries” running down the X-axis.

    https://imgur.com/c8YP3za

    Since there are so many of them, we decided to switch it to the Y-axis.

    https://imgur.com/qu9ou7a

    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.

    #25892

    @driven13,

    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.


    Shashi Ranjan
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.