Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow for multi-column-width charts and improve responsivity #114

Merged
merged 9 commits into from
Oct 25, 2023

Conversation

davidlougheed
Copy link
Member

@davidlougheed davidlougheed commented Sep 28, 2023

also stores widths in localstorage + redraws charts on width change

making the charts (other than map) behave nicely w/ width change is a separate thing for bento_charts...

@davidlougheed davidlougheed changed the base branch from refact/upgrade-and-clean-up to main September 29, 2023 03:44
@davidlougheed davidlougheed changed the title [WIP] feat: allow for multi-column-width charts and improve responsivity feat: allow for multi-column-width charts and improve responsivity Oct 24, 2023
@davidlougheed davidlougheed requested a review from gsfk October 24, 2023 22:31
Copy link
Member

@gsfk gsfk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appears to work as expected, strictly in terms of adjusting the parent container width. (I don't have any map data to try).

A few design notes:

  • pages with mixed widths are not filled optimally, since charts always appear in fixed order. I don't know if freeing up the order will make charts harder to manage or not.
  • it's a bit confusing that the width control isn't on the chart itself, although "manage charts" does seem like a reasonable place to put this
  • we should probably add some width elements to the public config:
    • it would be useful to have a configurable default width per chart, since we know in advance for some charts that they will look better wider
    • we might not want width controls on all charts (do pie charts need them?). Here I'm mostly thinking of the amount of clutter the controls add to "manage charts". If every chart has controls this won't really matter

@davidlougheed
Copy link
Member Author

@gsfk regarding point 3a, there is a configurable default width per chart in config now - although existing configs will not have them and default to 1. good point w/ 3b though...

@gsfk
Copy link
Member

gsfk commented Oct 25, 2023

ah, I guess I only have an "old" config

@davidlougheed davidlougheed merged commit b67fdf5 into main Oct 25, 2023
2 checks passed
@davidlougheed davidlougheed deleted the feat/configurable-width branch October 31, 2023 13:36
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.

2 participants