plottable
plottable copied to clipboard
Scales don't obey zoom limits on initialization
Best to describe this with an example:
If scale.domain = [0, 100] and I set panZoom.maxDomainExtent(50), the chart renders with the entire extent of the domain, [0, 100]. Similarly, if I do panZoom.minDomainExtent(150), the chart will still show [0, 100].
My suggestion is to consider having the scale immediately obey the zoom's domain extent settings.
Just stating in case it's not immediately obvious. One annoyance with the current state is that if the maxDomainExtent is currently less than the current domain extent, then we run into a situation where zooming out is disallowed but zooming in is allowed.
Is there any workaround for this?