mirror of
https://github.com/pi-hole/web.git
synced 2026-04-19 08:19:59 +01:00
Update scripts/pi-hole/js/index.js
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br> Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
This commit is contained in:
@@ -432,8 +432,8 @@ $(function () {
|
||||
},
|
||||
mode: "y",
|
||||
onZoom: function ({ chart }) {
|
||||
// The first time the chart is zoomed, save the absolute maximum value
|
||||
if (!chart.absMax) chart.absMax = chart.scales.y.max;
|
||||
// The first time the chart is zoomed, save the maximum initial scale bound
|
||||
if (!chart.absMax) chart.absMax = chart.getInitialScaleBounds().y.max;
|
||||
// Calculate the maximum value to be shown for the current zoom level
|
||||
const zoomMax = chart.absMax / chart.getZoomLevel();
|
||||
// Update the y axis scale
|
||||
|
||||
Reference in New Issue
Block a user