plottable icon indicating copy to clipboard operation
plottable copied to clipboard

Scales don't obey zoom limits on initialization

Open istarnx opened this issue 8 years ago • 2 comments

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.

istarnx avatar Jul 20 '15 21:07 istarnx

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.

bluong avatar Jul 20 '15 21:07 bluong

Is there any workaround for this?

yocontra avatar Jul 20 '16 23:07 yocontra