Fix focal min calc after switching to `Viz.datums_range()`..

storage_cli
Tyler Goodlet 2023-02-28 16:02:27 -05:00
parent 6df2c3d009
commit a81b51b142
1 changed files with 2 additions and 2 deletions

View File

@ -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()