Home forums Using CanvasJS Axis labels overflowing

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  Vishwas R 7 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6503

    tomi
    Participant

    I have been trying to figure out if there is a way to add some kind of margin on the chart. This is what I get:

    Part of the leftmost axisY label gets hidden.

    I tried adding axisY: { margin: xx }, but this just added more white space around the chart area. And the overflowing text still gets hidden.

    #6504

    Sunil Urs
    Keymaster

    Tomi,

    It does makes sense to not clip labels to the left when margin is applied. I’ve made changes accordingly. Please download the intermediate build (v1.5) from here. It’ll be released next week.


    Sunil Urs

    #6506

    tomi
    Participant

    Thank you. Margin works now with the new version 🙂

    #6507

    tomi
    Participant

    Well now I noticed it adds the margin to left side only. What should I do if I am having overflow on the right side?

    #6512

    Sunil Urs
    Keymaster

    Tomi,

    There is no way around for this yet. But in general we suggest setting labelAngle to 90 when you have very long labels.


    Sunil Urs

    #10320

    Vishwas R
    Keymaster

    Tomi,
    We just release v1.8.1 Beta, label-clipping issue has been resolved.

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

You must be logged in to reply to this topic.