Home Forums Chart Support Chart does not occupy the entire width of the parent container

Chart does not occupy the entire width of the parent container

Viewing 3 posts - 1 through 3 (of 3 total)
  • #59979

    I have added the library in my application and in some pages it’s occupying the whole width but in other pages it’s just occupying less than half the width of the parent container

    I am attaching screenshots. Please let me know if you need more details. Just need some help to troubleshoot this

    In the first screenshot, it’s working fine as its occupying the entire width of the parent container and in the second screenshot its not working fine as it’s only occupying a part of the parent container’s width

    Working fine

    not working fine

    #59983

    @discovered1086,

    The chart is currently taking 100% of the container’s width and seems to be working fine. Could you please create a JSFiddle (or Stackblitz for React/Angular apps) that reproduces the issue & share it with us so that we can look into the code, understand the scenario better and help you out?


    Vishwas R
    Team CanvasJS

    #59987

    Hi @Viswas,

    I have been able to figure out the issue while trying to reproduce the issue in JSFiddle.

    I’m all set. Thanks for your help on this.

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

You must be logged in to reply to this topic.