cognitedata / griff-react

High performance charting library for time series data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CollapsedAxis zoom all y axis

martincognite opened this issue · comments

This is a bit more complicated than I initially thought, especially wrt making it smooth for the user.

I would propose that when axisDisplayMode === COLLAPSED we reset all the yTransformations at the current yDomain it has. This way, we could apply the native zoom transformation for the CollapsedAxis to every single series without any "jumps" in the zooms. It would also have to be reset back when axisDisplayMode leaves the COLLAPSED state.