Fixed chart resizing on window-resize
The libraries I've been using on this project do some nice tricks...like resizing the "chapter" panels (divs) when the browser window resizes.
That's cool, but I've written my code so that I'm appending chart divs to specific chapter divs. And these were not resizing with the rest of the panels. Most people might not notice, but it was looking sloppy to me. And, if you launch the project as full screen after opening it from the project page (instead of "downloading" it), it's always noticeable ,
Here are some screenshots, showing the not-resized chart divs.
To solve this problem, I've wrapped the original resize function in a slightly more complicated function. Now, when the window is resized, the original function is called before my chart-resize code runs.
Files
Get Stickers And Stamps
Stickers And Stamps
A Penpal Data-Art Project
Status | In development |
Category | Comic |
Author | ArtAtomic |
Tags | artgame, dataviz, Indie, mapbox, penpal, Story Rich, Tilemap |
More posts
- Formatting Text in a Config.js fileAug 17, 2022
- New Version with New DataAug 14, 2022
- Accidental Better PlanJul 27, 2022
- Data Practice for Stickers And Stamps projectJul 20, 2022
- Letting go...Jul 10, 2022
- 41,683 zip codes in the US Postal systemJul 09, 2022
- Recent participants are Doing a great job!May 18, 2022
- Updated Some TextApr 30, 2022