visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
29 stars 3 forks source link

Canvas layout improvements #1567

Open ptbrowne opened 4 weeks ago

ptbrowne commented 4 weeks ago

Wrapping behavior

Right now, when moving charts around, the way they move themselves is a bit suboptimal and a "wrapping" behavior could enhance it. An initial PR had been made for this, but was not pursued further for the V1 of the grid.

Responsiveness

Right now the canvas layout is always initialized in large screen mode, and modifications of the chart update the large screen mode. We should review what happens when updating the chart when the screen is narrower and see if everything is correct.

When using layouts, it is best to supply as many breakpoints as possible, especially the largest one. If the largest is provided, RGL will attempt to interpolate the rest.

https://github.com/react-grid-layout/react-grid-layout