Support for limiting min/max zoom/scale level #1312
Labels
enhancement
Feature requests, and general improvements.
good first issue
Good issue for first-time contributors.
Is your feature request related to a problem? Please describe.
We have a somewhat basic requirement - limiting how much the chart can zoom,
e.g. this universally looks bad and we should never allow zooming into that much detail:
Describe the solution you'd like
Ideally a config option limiting max diff between from & to - either in logical representation or in time diff.
Less ideally, being able to return
null
orfalse
fromsubscribeVisibleTimeRangeChange
to prevent changing the visible time range.Additional context
Tried calling
setVisibleRange
from insidesubscribeVisibleTimeRangeChange
but unfortunately UI 'jumps' to the scrolled to position first, and only after applies the range insetVisibleRange
which comes with obvious UX issues.Willing to lend a hand in a PR if this is something you guys would consider adding.
Thanks!
The text was updated successfully, but these errors were encountered: