Home Forums Chart Support How do I refresh the graphic when the screen changes?

How do I refresh the graphic when the screen changes?

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

    I am not sure if this problem is related to you. When the browser is resized, your graphical elements change instantly, yes responsively. However, when the width of an object in the browser changes, such as a div or vidget, it does not refresh. The mouse has to make a small tap holding the edge of the browser, thus forcing the browser to resize. The code in this thread resizes the graphic, I thought maybe it would work, but it didn’t render itself.

    What I want to do is to make the chart automatically position itself inside when the content of the page is resized or the width of the widget is triggered.
    For better understanding I recorded a video, it is 30 seconds long, I would appreciate if you watch it… thanks

    https://jmp.sh/s/WIplJPDCsZIXn2LenXRg

    #44656

    @codetonight,

    To fit in the chart content within the container, you can re-render the chart each time the container is resized. If you are still facing issues, create a JSFiddle with your use case and share it with us so that we can look into it and assist you further.

    __
    Sachin Bisht
    Team CanvasJS

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

You must be logged in to reply to this topic.