Skip to content

Fix autowidth on statgl_plot#43

Merged
emilmalta merged 3 commits into
StatisticsGreenland:masterfrom
emilmalta:master
May 28, 2026
Merged

Fix autowidth on statgl_plot#43
emilmalta merged 3 commits into
StatisticsGreenland:masterfrom
emilmalta:master

Conversation

@emilmalta

Copy link
Copy Markdown
Collaborator
  • statgl_plot() removes the default Highcharts border around bars and
    columns (borderWidth = 0). The 1 px outline was visually noisy,
    particularly in dark mode where the contrast made it prominent.

  • statgl_plot() now reflows the Highcharts chart inside a
    requestAnimationFrame callback after render. Fixes charts appearing
    at ~3/4 width when lazy-rendered inside a shorty shortcode
    (IntersectionObserver / <template> path) until the window is resized.

@emilmalta emilmalta merged commit 30bc1a2 into StatisticsGreenland:master May 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant