EmmanuelDodoo / modav

Data Visualization tool written in Rust and with Iced
2 stars 1 forks source link

Scrollable / Zoomable Graphs #33

Open EmmanuelDodoo opened 3 weeks ago

EmmanuelDodoo commented 3 weeks ago

Some of the issues with the current implementation of the graph could be solved by having it being scrollable and or zoomable. With such a feature, the graph axis could have an arbitrary number of intervals between points without crowding the graph

EmmanuelDodoo commented 2 weeks ago

Been thinking about a zoomable canvas. It seems like all zooms occur about a point. Let's say the canvas contains two points x and y, and a zoom is initiated about x with a magnitude of z. Then the distance between x and y is changed by d which is related to z.

if y is to the left of x then d is -d else d. Something similar for the top-down direction as well.

Also the thickness of any strokes would also increase by d