"use strict";import Axis from"../../Core/Axis/Axis.js";import U from"../../Core/Utilities.js";var addEvent=U.addEvent,pick=U.pick;addEvent(Axis,"afterGetSeriesExtremes",function(){var i,t,s=this.series;this.isXAxis&&(i=pick(this.dataMax,-Number.MAX_VALUE),s.forEach(function(s){s.x2Data&&s.x2Data.forEach(function(s){s>i&&(i=s,t=!0)})}),t&&(this.dataMax=i))});