Skip to content

Responsiveness does not play nice with Bootstrap layouts #6145

Description

@jasonpolites

Expected Behavior

Rendering of charts in the context of a Bootstrap row/column layout should behave the same as standard HTML components

Current Behavior

When using a Bootstrap row/column layout, resizing the browser causes layout which changes if you refresh. For example a 2x2 grid containing charts will render as a grid on initial load, but resizing down causes charts to render in a stack. Refreshing the browser at this moment will result in the 2x2 grid being well-formed again. Ideally this should be consistent (i.e. if the layout would be stable at a given browser window size, regardless if it was a result of a resize or an initial load/refresh at that window size.

Possible Solution

Steps to Reproduce (for bugs)

https://jsfiddle.net/456v1mhj/1/

Context

It seems difficult (impossible?) to create a grid layout of charts using Chart.js with Bootstrap without having unclear or unpredictable behavior on browser resize.

Environment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions