Chart not filling available space, until something nudges the display

Created on 16 November 2017, over 7 years ago
Updated 11 March 2025, 2 months ago

I'm using Views integration to display a chart in a block display. In the views preview, the chart initially displays narrow and quickly expands to fill the available horizontal space, all of the labels display without problems. In the live view, the chart displays narrow and does not expand, as in the "graph narrow.png" image below. Also note that the legend is cropped and the y-axis title overlaps the labels.

When I open the browser's inspector, the code pane fills the right half of my screen and the page's width is reduced to the the left half. Then, the chart grows to fill the available space, as in the "graph_med.png" image below. The growth is very slow and the titles and legend pop in at the completion of the growth.

Then, if I close the inspector such that the page returns to its original width, the chart grows again - very slowly - to fill the available horizontal space, with the legend and titles popping in at the last instant. See the "graph wide.png" image.

All of this growing takes quite a bit of time and I can't figure out how to make it happen without that change in page aspect ratio. Refreshing the screen doesn't work. Am I missing a setting somewhere?

Thanks!

πŸ› Bug report
Status

Closed: outdated

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States mastoll

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    Thank you for your contributions to this issue. As Drupal 7 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.

Production build 0.71.5 2024