Fix focal min calc after switching to `Viz.datums_range()`..
parent
6df2c3d009
commit
a81b51b142
|
@ -509,7 +509,7 @@ class ChartView(ViewBox):
|
||||||
|
|
||||||
# don't zoom more then the min points setting
|
# don't zoom more then the min points setting
|
||||||
viz = chart.get_viz(chart.name)
|
viz = chart.get_viz(chart.name)
|
||||||
_, vl, lbar, rbar, vr, _ = viz.datums_range()
|
_, vl, lbar, rbar, vr, r = viz.datums_range()
|
||||||
|
|
||||||
# TODO: max/min zoom limits incorporating time step size.
|
# TODO: max/min zoom limits incorporating time step size.
|
||||||
# rl = vr - vl
|
# rl = vr - vl
|
||||||
|
@ -556,7 +556,7 @@ class ChartView(ViewBox):
|
||||||
xl = viz.graphics.x_last()
|
xl = viz.graphics.x_last()
|
||||||
focal = min(
|
focal = min(
|
||||||
xl,
|
xl,
|
||||||
vr,
|
r,
|
||||||
)
|
)
|
||||||
|
|
||||||
self._resetTarget()
|
self._resetTarget()
|
||||||
|
|
Loading…
Reference in New Issue