How Long Will it Take to Save? (Includes Calculator) (2024)

p&&(p=t.label.textPxLength)}),this.maxLabelLength=p,this.autoRotation)l

c.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=l;if(!d)for(var f="clip",l=i.length;!s&&l--;){var g=i[l];(g=o[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f))&&(g.specificTextOverflow="ellipsis")}}h.rotation&&(u=p>.5*t.chartHeight?.33*t.chartHeight:p,d||(f="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(h.align=this.labelAlign),i.forEach(function(t){var e=(t=o[t])&&t.label,i=r.width,n={};e&&(e.attr(h),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u=this.min&&t<=this.max||null!=(i=this.grid)&&i.isColumn)&&(n[t]||(n[t]=new x(this,t)),o&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},n.prototype.render=function(){var i,n,o=this,r=o.chart,s=o.logarithmic,t=o.options,e=o.isLinked,a=o.tickPositions,l=o.axisTitle,h=o.ticks,c=o.minorTicks,d=o.alternateBands,p=t.stackLabels,u=t.alternateGridColor,f=o.tickmarkOffset,g=o.axisLine,m=o.showAxis,y=b(r.renderer.globalAnimation);o.labelEdge.length=0,o.overlap=!1,[h,c,d].forEach(function(t){E(t,function(t){t.isActive=!1})}),(o.hasData()||e)&&(o.minorTickInterval&&!o.categories&&o.getMinorTickPositions().forEach(function(t){o.renderMinorTick(t)}),a.length&&(a.forEach(function(t,e){o.renderTick(t,e)}),f)&&(0===o.min||o.single)&&(h[-1]||(h[-1]=new x(o,-1,null,!0)),h[-1].render(-1)),u&&a.forEach(function(t,e){n=void 0!==a[e+1]?a[e+1]+f:o.max-f,0==e%2&&tthis.max&&e>this.max,i&&o)for(t&&(n=i.toString()===o.toString(),a=0),t=0;tt){h=l;break}if(a[h]&&s.substr(a[h])!=="01-01 00:00:00.000".substr(a[h]))break;"week"!==h&&(l=h)}return o=h?r.resolveDTLFormat(n[h]).main:o},n.prototype.getLabel=function(){var t,e,i,n,o,r=this,s=this.chart.renderer,a=this.chart.styledMode,l=this.options,h="tooltip"+(u(l.className)?" "+l.className:""),c=(null==(d=l.style)?void 0:d.pointerEvents)||(!this.followPointer&&l.stickOnContact?"auto":"none"),d=function(){r.inContact=!0};return this.label||(this.outside&&(this.container=e=L.doc.createElement("div"),e.className="highcharts-tooltip-container",p(e,{position:"absolute",top:"1px",pointerEvents:c,zIndex:3}),L.doc.body.appendChild(e),this.renderer=s=new L.Renderer(e,0,0,null==(t=this.chart.options.chart)?void 0:t.style,void 0,void 0,s.styledMode)),this.split?this.label=s.g(h):(this.label=s.label("",0,0,l.shape||"callout",null,null,l.useHTML,null,h).attr({padding:l.padding,r:l.borderRadius}),a||this.label.attr({fill:l.backgroundColor,"stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:c}).shadow(l.shadow)),a&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),r.outside&&!r.split&&(i=this.label,n=i.xSetter,o=i.ySetter,i.xSetter=function(t){n.call(i,r.distance),e.style.left=t+"px"},i.ySetter=function(t){o.call(i,r.distance),e.style.top=t+"px"}),this.label.on("mouseenter",d).on("mouseleave",function(){var t=r.chart.hoverSeries;r.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()}).attr({zIndex:8}).add()),this.label},n.prototype.getPosition=function(i,n,o){function t(t){var e="x"===t;return[t,e?l:h,e?i:n].concat(a?[e?g(i):m(n),e?c.left-p+g(o.plotX+s.plotLeft):c.top-p+m(o.plotY+s.plotTop),0,e?l:h]:[e?i:n,e?o.plotX+s.plotLeft:o.plotY+s.plotTop,e?s.plotLeft:s.plotTop,e?s.plotLeft+s.plotWidth:s.plotTop+s.plotHeight])}var r,s=this.chart,p=this.distance,u={},f=s.inverted&&o.h||0,a=this.outside,l=a?S.documentElement.clientWidth-2*p:s.chartWidth,h=a?Math.max(S.body.scrollHeight,S.documentElement.scrollHeight,S.body.offsetHeight,S.documentElement.offsetHeight,S.documentElement.clientHeight):s.chartHeight,c=s.pointer.getChartPosition(),e=s.containerScaling,g=function(t){return e?t*e.scaleX:t},m=function(t){return e?t*e.scaleY:t},d=t("y"),y=t("x"),v=!this.followPointer&&O(o.ttBelow,!s.inverted==!!o.negative),x=function(t,e,i,n,o,r,s){var a=("y"===t?m:g)(p),l=(i-n)/2,h=n=b+y&&l.pos+a<=b+y+g-x&&(c=l.pos+a)),h=D(h,T.left-C,T.right+C),"number"==typeof c?(s=s.height+1,a=k?k.call(f,o,s,i):p(h,c,n,o),t.push({align:k?0:void 0,anchorX:h,anchorY:c,boxWidth:o,point:i,rank:O(a.rank,n?1:0),size:s,target:a.y,tt:e,x:a.x})):e.isActive=!1),t},[]),!k&&t.some(function(t){return t.xt.series.index?-1:1)),n&&(s=t)}),s)},s.prototype.getChartCoordinatesFromPoint=function(t,e){var i=(n=t.series).xAxis,n=n.yAxis,o=b(t.clientX,t.plotX),r=t.shapeArgs;return i&&n?e?{chartX:i.len+i.pos-o,chartY:n.len+n.pos-t.plotY}:{chartX:o+i.pos,chartY:t.plotY+n.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},s.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=r(this.chart.container))},s.prototype.getCoordinates=function(e){var i={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(t){i[t.isXAxis?"xAxis":"yAxis"].push({axis:t,value:t.toValue(e[t.horiz?"chartX":"chartY"])})}),i},s.prototype.getHoverData=function(t,e,i,n,o,r){var s,a=[],l=(n=!(!n||!t),e&&!e.stickyTracking),h={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};return m(this,"beforeGetHoverData",h),l=l?[e]:i.filter(function(t){return h.filter?h.filter(t):t.visible&&!(!o&&t.directTouch)&&b(t.options.enableMouseTracking,!0)&&t.stickyTracking}),e=(s=n||!r?t:this.findNearestKDPoint(l,o,r))&&s.series,s&&(o&&!e.noSharedTooltip?(l=i.filter(function(t){return h.filter?h.filter(t):t.visible&&!(!o&&t.directTouch)&&b(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})).forEach(function(t){var e=d(t.points,function(t){return t.x===s.x&&!t.isNull});x(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))}):a.push(s)),m(this,"afterGetHoverData",h={hoverPoint:s}),{hoverPoint:h.hoverPoint,hoverSeries:e,hoverPoints:a}},s.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},s.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},s.prototype.inClass=function(t,e){for(var i;t;){if(i=n(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},s.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=b(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},s.prototype.normalize=function(t,e){var i=t.touches,n=i?i.length?i.item(0):b(i.changedTouches,t.changedTouches)[0]:t;return e=e||this.getChartPosition(),i=n.pageX-e.left,e=n.pageY-e.top,(n=this.chart.containerScaling)&&(i/=n.scaleX,e/=n.scaleY),g(t,{chartX:Math.round(i),chartY:Math.round(e)})},s.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint,n=(t=this.normalize(t),e.plotLeft),o=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(m(i.series,"click",g(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(g(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-o)&&m(e,"click",t)))},s.prototype.onContainerMouseDown=function(t){var e=1==(1&(t.buttons||t.button));t=this.normalize(t),l.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),void 0!==t.button&&!e||(this.zoomOption(t),e&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},s.prototype.onContainerMouseLeave=function(t){var e=h[b(l.hoverChartIndex,-1)],i=this.chart.tooltip;t=this.normalize(t),e&&(t.relatedTarget||t.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=void 0),i&&!i.isHidden&&this.reset()},s.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},s.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},s.prototype.onDocumentTouchEnd=function(t){h[l.hoverChartIndex]&&h[l.hoverChartIndex].pointer.drop(t)},s.prototype.onContainerTouchMove=function(t){this.touch(t)},s.prototype.onContainerTouchStart=function(t){this.zoomOption(t),this.touch(t,!0)},s.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition,n=(t=this.normalize(t,i),e.tooltip);!i||n&&n.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},s.prototype.onDocumentMouseUp=function(t){var e=h[b(l.hoverChartIndex,-1)];e&&e.pointer.drop(t)},s.prototype.pinch=function(t){var e=this,s=e.chart,i=e.pinchDown,n=t.touches||[],o=n.length,r=e.lastValidTouch,a=e.hasZoom,l=e.selectionMarker,h={},c=1===o&&(e.inClass(t.target,"highcharts-tracker")&&s.runTrackerClick||e.runChartClick),d={};1x.max&&(e=x.max-l,c=!0),c?(C-=.8*(C-s[p][0]),"number"==typeof k&&(k-=.8*(k-s[p][1])),i()):s[p]=[C,k],v||(r[p]=h-m,r[g]=l),r=v?1/y:y,o[g]=l,o[p]=e,n[v?t?"scaleY":"scaleX":"scale"+u]=y,n["translate"+u]=r*m+(C-r*w)},s.prototype.reset=function(e,t){var i=this.chart,n=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,s=i.tooltip,a=s&&s.shared?r:o;e&&a&&w(a).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?s&&a&&w(a).length&&(s.refresh(a),s.shared&&r?r.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair)&&t.series.yAxis.drawCrosshair(null,t)}):o&&(o.setState(o.state,!0),i.axes.forEach(function(t){t.crosshair&&o.series[t.coll]===t&&t.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(t){t.setState()}),n&&n.onMouseOut(),s&&s.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},s.prototype.runPointActions=function(n,t){var o=this.chart,e=o.tooltip&&o.tooltip.options.enabled?o.tooltip:void 0,i=!!e&&e.shared,r=(s=t||o.hoverPoint)&&s.series||o.hoverSeries,s=(r=this.getHoverData(s,r,o.series,(!n||"touchmove"!==n.type)&&(!!t||r&&r.directTouch&&this.isDirectTouch),i,n)).hoverPoint,a=r.hoverPoints;if(t=(r=r.hoverSeries)&&r.tooltipOptions.followPointer,i=i&&r&&!r.noSharedTooltip,s&&(s!==o.hoverPoint||e&&e.isHidden)){if((o.hoverPoints||[]).forEach(function(t){-1===a.indexOf(t)&&t.setState()}),o.hoverSeries!==r&&r.onMouseOver(),this.applyInactiveState(a),(a||[]).forEach(function(t){t.setState("hover")}),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!s.series)return;o.hoverPoints=a,(o.hoverPoint=s).firePointEvent("mouseOver"),e&&e.refresh(i?a:s,n)}else t&&e&&!e.isHidden&&(s=e.getAnchor([{}],n),e.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=c(o.container.ownerDocument,"mousemove",function(t){var e=h[l.hoverChartIndex];e&&e.pointer.onDocumentMouseMove(t)})),o.axes.forEach(function(e){var t,i=b((e.crosshair||{}).snap,!0);(t=!i||(t=o.hoverPoint)&&t.series[e.coll]===e?t:d(a,function(t){return t.series[e.coll]===e}))||!i?e.drawCrosshair(n,t):e.hideCrosshair()})},s.prototype.scaleGroups=function(e,i){var n,o=this.chart;o.series.forEach(function(t){n=e||t.getPlotBox(),t.xAxis&&t.xAxis.zoomEnabled&&t.group&&(t.group.attr(n),t.markerGroup&&(t.markerGroup.attr(n),t.markerGroup.clip(i?o.clipRect:null)),t.dataLabelsGroup)&&t.dataLabelsGroup.attr(n)}),o.clipRect.attr(i||o.clipBox)},s.prototype.setDOMEvents=function(){var t=this.chart.container,e=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=c(t,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=c(t,"mouseleave",this.onContainerMouseLeave.bind(this)),l.unbindDocumentMouseUp||(l.unbindDocumentMouseUp=c(e,"mouseup",this.onDocumentMouseUp.bind(this))),l.hasTouch&&(c(t,"touchstart",this.onContainerTouchStart.bind(this)),c(t,"touchmove",this.onContainerTouchMove.bind(this)),l.unbindDocumentTouchEnd||(l.unbindDocumentTouchEnd=c(e,"touchend",this.onDocumentTouchEnd.bind(this))))},s.prototype.setHoverChartIndex=function(){var t=this.chart,e=l.charts[b(l.hoverChartIndex,-1)];e&&e!==t&&e.pointer.onContainerMouseLeave({relatedTarget:!0}),e&&e.mouseIsDown||(l.hoverChartIndex=t.index)},s.prototype.touch=function(t,e){var i,n=this.chart;this.setHoverChartIndex(),1===t.touches.length?(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop)&&!n.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(i=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2))),b(i,!0)&&this.pinch(t)):e&&this.reset()):2===t.touches.length&&this.pinch(t)},s.prototype.zoomOption=function(t){var e=(n=this.chart).options.chart,i=e.zoomType||"",n=n.inverted;/touch/.test(t.type)&&(i=b(e.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=i=/y/.test(i),this.zoomHor=t&&!n||i&&n,this.zoomVert=i&&!n||t&&n,this.hasZoom=t||i},l.Pointer=t=s}),t(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(r,t,e){function i(t,e,i,n){var o;"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a[r.hoverChartIndex]||(n(t),(n=a[r.hoverChartIndex].pointer)[e]({type:i,target:t.currentTarget,preventDefault:h,touches:((o=[]).item=function(t){return this[t]},p(f,function(t){o.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),o)}))}var n,o,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=r.charts,l=r.doc,h=r.noop,c=e.addEvent,d=e.css,p=e.objectEach,u=e.removeEvent,f={},g=!!r.win.PointerEvent;return s(m,o=t),m.prototype.batchMSEvents=function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(l,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},m.prototype.destroy=function(){this.batchMSEvents(u),o.prototype.destroy.call(this)},m.prototype.init=function(t,e){o.prototype.init.call(this,t,e),this.hasZoom&&d(t.container,{"-ms-touch-action":"none","touch-action":"none"})},m.prototype.onContainerPointerDown=function(t){i(t,"onContainerTouchStart","touchstart",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},m.prototype.onContainerPointerMove=function(t){i(t,"onContainerTouchMove","touchmove",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)})},m.prototype.onDocumentPointerUp=function(t){i(t,"onDocumentTouchEnd","touchend",function(t){delete f[t.pointerId]})},m.prototype.setDOMEvents=function(){o.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(c)},m;function m(){return null!==o&&o.apply(this,arguments)||this}}),t(e,"Core/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){var c=t.animObject,d=t.setAnimation,n=i.addEvent,a=i.css,l=i.defined,o=i.discardElement,h=i.find,p=i.fireEvent,r=i.format,u=i.isNumber,m=i.merge,x=i.pick,f=i.relativeLength,g=i.stableSort,y=i.syncTimeout,v=(t=i.wrap,i=e.isFirefox,e.marginNames),s=e.win,b=(w.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),n(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=n(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},w.prototype.setOptions=function(t){var e=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=m(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},w.prototype.update=function(t,e){var i=this.chart;this.setOptions(m(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,x(e,!0)&&i.redraw(),p(this,"afterUpdate")},w.prototype.colorizeItem=function(t,e){var i,n,o,r,s,a,l,h;t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),this.chart.styledMode||(s=this.options,i=t.legendItem,n=t.legendLine,o=t.legendSymbol,r=this.itemHiddenStyle.color,s=e?s.itemStyle.color:r,a=e&&t.color||r,l=t.options&&t.options.marker,h={fill:a},i&&i.css({fill:s,color:s}),n&&n.attr({stroke:a}),o&&(l&&o.isMarker&&(h=t.pointAttribs(),e||(h.stroke=h.fill=r)),o.attr(h))),p(this,"afterColorizeItem",{item:t,visible:e})},w.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},w.prototype.positionItem=function(t){var e=this,i=(o=this.options).symbolPadding,n=!o.rtl,o=(r=t._legendItemPos)[0],r=r[1],s=t.checkbox,a=t.legendGroup;a&&a.element&&(i={translateX:n?o:this.legendWidth-o-2*i-4,translateY:r},n=function(){p(e,"afterPositionItem",{item:t})},l(a.translateY)?a.animate(i,void 0,n):(a.attr(i),n())),s&&(s.x=o,s.y=r)},w.prototype.destroyItem=function(e){var t=e.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),t&&o(e.checkbox)},w.prototype.destroy=function(){function e(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach(function(t){["legendItem","legendGroup"].forEach(e,t)}),"clipRect up down pager nav box title group".split(" ").forEach(e,this),this.display=null},w.prototype.positionCheckboxes=function(){var n,o=this.group&&this.group.alignAttr,r=this.clipHeight||this.legendHeight,s=this.titleHeight;o&&(n=o.translateY,this.allItems.forEach(function(t){var e,i=t.checkbox;i&&(e=n+s+i.y+(this.scrollOffset||0)+3,a(i,{left:o.translateX+t.checkboxOffset+i.x-20+"px",top:e+"px",display:this.proximate||n-6l?this.maxItemWidth:t.itemWidth;n&&this.itemX-i+e>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=s+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=e:(this.itemY+=s+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},w.prototype.getAllItems=function(){var i=[];return this.chart.series.forEach(function(t){var e=t&&t.options;t&&x(e.showInLegend,!l(e.linkedTo)&&void 0,!0)&&(i=i.concat(t.legendItems||("point"===e.legendType?t.data:t)))}),p(this,"afterGetAllItems",{allItems:i}),i},w.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},w.prototype.adjustMargins=function(i,n){var o=this.chart,r=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(t,e){t.test(s)&&!l(i[e])&&(o[v[e]]=Math.max(o[v[e]],o.legend[(e+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][e]*r[e%2?"x":"y"]+x(r.margin,12)+n[e]+(o.titleOffset[e]||0)))})},w.prototype.proximatePositions=function(){var o=this.chart,r=[],s="left"===this.options.align;this.allItems.forEach(function(t){var e,i,n=s;t.yAxis&&(t.xAxis.options.reversed&&(n=!n),t.points&&(e=h(n?t.points:t.points.slice(0).reverse(),function(t){return u(t.plotY)})),n=this.itemMarginTop+t.legendItem.getBBox().height+this.itemMarginBottom,i=t.yAxis.top-o.plotTop,t.visible?(e=e?e.plotY:t.yAxis.height,e+=i-.3*n):e=i+t.yAxis.height,r.push({target:e,size:n,item:t}))},this),e.distribute(r,o.plotHeight),r.forEach(function(t){t.item._legendItemPos[1]=o.plotTop-o.spacing[0]+t.pos})},w.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,n=this.box,o=this.options,r=this.padding,s=(this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=f(o.width,t.spacingBox.width-r),t.spacingBox.width-2*r-o.x),a=(-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),this.getAllItems()),l=(g(a,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),o.reversed&&a.reverse(),this.allItems=a,this.display=s=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+r,this.lastItemY+this.lastLineHeight+this.titleHeight),l=this.handleOverflow(l);l+=r,n||(this.box=n=e.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(i),n.isNew=!0),t.styledMode||n.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0r&&(s||i)!==y[o-1])&&(y.push(s||i),o++),t.pageIx=o-1,s&&(v[e-1].pageIx=o-1),e===v.length-1&&i+n-y[o-1]>r&&i!==s&&(y.push(i),t.pageIx=o),i!==s&&(s=i)}),p||(p=n.clipRect=a.clipRect(0,c,9999,0),n.contentGroup.clip(p)),e(r),m||(this.nav=m=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,g,g).add(m),i("upTracker").on("click",function(){n.scroll(-1,f)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),o.styledMode||this.pager.css(u.style),this.pager.add(m),this.down=a.symbol("triangle-down",0,0,g,g).add(m),i("downTracker").on("click",function(){n.scroll(1,f)})),n.scroll(0),t=h):m&&(e(),this.nav=m.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},w.prototype.scroll=function(t,e){var i=this,n=this.chart,o=this.pages,r=o.length,s=this.currentPage+t,a=(t=this.clipHeight,this.options.navigation),l=this.pager,h=this.padding;0<(s=r=n.value;)n=t[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},y.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},y.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=n(this.id)?this.id:m(),this.resolveColor(),t.chart.pointCount++,r(this,"afterInit"),this},y.prototype.optionsToObject=function(t){var e={},i=this.series,n=i.options.keys,o=n||i.pointArrayMap||["y"],r=o.length,s=0,a=0;if(d(t)||null===t)e[o[0]]=t;else if(c(t))for(!n&&t.length>r&&("string"===(i=typeof t[0])?e.name=t[0]:"number"===i&&(e.x=t[0]),s++);a=O(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return O(e,t.length-1)},bindAxes:function(){var i,n=this,o=n.options,t=n.chart;E(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(e){t[e].forEach(function(t){i=t.options,(o[e]===i.index||void 0!==o[e]&&o[e]===i.id||void 0===o[e]&&0===i.index)&&(n.insert(t.series),(n[e]=t).isDirty=!0)}),n[e]||n.optionalAxis===e||b(18,!0,t)})}),E(this,"afterBindAxes")},updateParallelArrays:function(i,n){var o=i.series,e=arguments,t=D(n)?function(t){var e="y"===t&&o.toYData?o.toYData(i):i[t];o[t+"Data"][n]=e}:function(t){Array.prototype[n].apply(o[t+"Data"],Array.prototype.slice.call(e,2))};o.parallelArrays.forEach(t)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?n-this.cropStart:n),n=!i&&s[n]&&s[n].touched?void 0:n},drawLegendSymbol:n.drawLineMarker,updateData:function(t,e){var o,i,r,s=this.options,a=s.dataSorting,l=this.points,h=[],c=this.requireSorting,d=t.length===l.length,n=!0;if(this.xIncrement=null,t.forEach(function(t,e){var i=P(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},n=i.x;i.id||D(n)?(-1===(n=this.findPointIndex(i,r))||void 0===n?h.push(t):l[n]&&t!==s.data[n]?(l[n].update(t,!1,null,!1),l[n].touched=!0,c&&(r=n+1)):l[n]&&(l[n].touched=!0),(!d||e!==n||a&&a.enabled||this.hasDerivedData)&&(o=!0)):h.push(t)},this),o)for(t=l.length;t--;)(i=l[t])&&!i.touched&&i.remove&&i.remove(!1,e);else!d||a&&a.enabled?n=!1:(t.forEach(function(t,e){l[e].update&&t!==l[e].y&&l[e].update(t,!1,null,!1)}),h.length=0);return l.forEach(function(t){t&&(t.touched=!1)}),!!n&&(h.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=g(this.xData),this.autoIncrement()),!0)},setData:function(t,e,i,n){var o,r=this,s=r.points,a=s&&s.length||0,l=r.options,h=r.chart,c=l.dataSorting,d=r.xAxis,p=l.turboThreshold,u=this.xData,f=this.yData,g=(x=r.pointArrayMap)&&x.length,m=l.keys,y=0,v=1,x=(t=t||[]).length;if(e=O(e,!0),c&&c.enabled&&(t=this.sortData(t)),!(o=!1!==n&&x&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting?this.updateData(t,i):o)){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach(function(t){r[t+"Data"].length=0}),p&&pi?(r=[],s=[]):this.yData&&(r[0]i)&&(r=(l=this.cropData(this.xData,this.yData,e,i)).xData,s=l.yData,l=l.start,n=!0)),d=r.length||1;--d;)0<(a=c?t(r[d])-t(r[d-1]):r[d]-r[d-1])&&(void 0===o||a=i){a=Math.max(0,r-o);break}for(i=r;in){l=i+o;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},generatePoints:function(){var t,e,i=(c=this.options).data,n=this.data,o=this.processedXData,r=this.processedYData,s=this.pointClass,a=o.length,l=this.cropStart||0,h=this.hasGroupedData,c=c.keys,d=[];for(n||h||((n=[]).length=i.length,n=this.data=n),c&&h&&(this.options.keys=!1),e=0;e=l&&(r[i-c]||p)<=h;if(f&&p)if(f=u.length)for(;f--;)D(u[f])&&(s[a++]=u[f]);else s[a++]=u}return t={dataMin:m(s),dataMax:g(s)},E(this,"afterGetExtremes",{dataExtremes:t}),t},applyExtremes:function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},getFirstValidPoint:function(t){for(var e=null,i=t.length,n=0;null===e&&n=o.enabledThreshold*o.radius);if(!1!==o.enabled||this._hasPointMarkers)for(t=0;th.max,c.resetZones&&0===i&&(i=void 0)}),this.clips=u):c.visible&&(f&&f.show(!0),g)&&g.show(!0)},invertGroups:function(e){function t(){["group","markerGroup"].forEach(function(t){i[t]&&(n.renderer.isVML&&i[t].attr({width:i.yAxis.len,height:i.xAxis.len}),i[t].width=i.yAxis.len,i[t].height=i.xAxis.len,i[t].invert(!i.isRadialSeries&&e))})}var i=this,n=i.chart;i.xAxis&&(i.eventsToUnbind.push(s(n,"resize",t)),t(),i.invertGroups=t)},plotGroup:function(t,e,i,n,o){var r=this[t],s=!r;return i={visibility:i,zIndex:n||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),s&&(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(P(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[s?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0):C(this)},render:function(){var t=this,e=t.chart,i=t.options,n=d(i.animation),o=!t.finishedAnimating&&e.renderer.isSVG&&n.duration,r=t.visible?"inherit":"hidden",s=i.zIndex,a=t.hasRendered,l=e.seriesGroup,h=e.inverted,c=(E(this,"render"),t.plotGroup("group","series",r,s,l));t.markerGroup=t.plotGroup("markerGroup","markers",r,s,l),o&&t.animate&&t.animate(!0),c.inverted=!(!t.isCartesian&&!t.invertable)&&h,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(h),!1===i.clip||t.sharedClipKey||a||c.clip(e.clipRect),o&&t.animate&&t.animate(),a||(o&&n.defer&&(o+=n.defer),t.animationTimeout=k(function(){t.afterAnimate()},o||0)),t.isDirty=!1,t.hasRendered=!0,E(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,o=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:O(n&&n.left,t.plotLeft),translateY:O(o&&o.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},buildKDTree:function(t){this.buildingKdTree=!0;var s=this,e=-1u;)f--;this.updateParallelArrays(p,"splice",f,0,0),this.updateParallelArrays(p,f),h&&p.name&&(h[u]=p.name),c.splice(f,0,t),r&&(this.data.splice(f,0,null),this.processData()),"point"===s.legendType&&this.generatePoints(),i&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(p,"shift"),c.shift())),!1!==o&&w(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&l.redraw(n)},removePoint:function(t,e,i){function n(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),o.options.data.splice(t,1),o.updateParallelArrays(s||{series:o},"splice",t,1),s&&s.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&l.redraw()}var o=this,r=o.data,s=r[t],a=o.points,l=o.chart;h(i,l),e=P(e,!0),s?s.firePointEvent("remove",null,n):n()},remove:function(t,e,i,n){function o(){r.destroy(n),r.remove=null,s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),P(t,!0)&&s.redraw(e)}var r=this,s=r.chart;!1!==i?w(r,"remove",null,o):o()},update:function(t,e){t=g.cleanRecursively(t,this.userOptions),w(this,"update",{options:t});var i,n,o=this,r=o.chart,s=o.userOptions,a=o.initialType||o.type,l=r.options.plotOptions,h=t.type||s.type||r.options.chart.type,c=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||o.hasOptionChanged("dataGrouping")||o.hasOptionChanged("pointStart")||o.hasOptionChanged("pointInterval")||o.hasOptionChanged("pointIntervalUnit")||o.hasOptionChanged("keys")),d=m[a].prototype,p=["eventOptions","navigatorSeries","baseSeries"],u=o.finishedAnimating&&{animation:!1},f={};for(i in c&&(p.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&p.push("area","graph"),o.parallelArrays.forEach(function(t){p.push(t+"Data")}),t.data)&&(t.dataSorting&&b(o.options.dataSorting,t.dataSorting),this.setData(t.data,!1)),t=A(s,u,{index:(void 0===s.index?o:s).index,pointStart:P(l&&l.series&&l.series.pointStart,s.pointStart,o.xData[0])},!c&&{data:o.options.data},t),c&&t.data&&(t.data=o.options.data),(p=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p)).forEach(function(t){p[t]=o[t],delete o[t]}),o.remove(!1,null,!1,!0),d)o[i]=void 0;m[h||a]?b(o,m[h||a].prototype):x(17,!0,r,{missingModuleFor:h||a}),p.forEach(function(t){o[t]=p[t]}),o.init(r,t),c&&this.points&&(!1===(n=o.options).visible?(f.graphic=1,f.dataLabel=1):o._hasPointLabels||(t=n.marker,s=n.dataLabels,t&&(!1===t.enabled||"symbol"in t)&&(f.graphic=1),s&&!1===s.enabled&&(f.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(f).length&&t.destroyElements(f),!1===n.showInLegend)&&t.legendItem&&r.legend.destroyItem(t)},this)),o.initialType=a,r.linkSeries(),w(this,"afterUpdate"),P(e,!0)&&r.redraw(c&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},hasOptionChanged:function(t){var e=this.options[t],i=this.chart.options.plotOptions,n=this.userOptions[t];return n?e!==n:e!==P(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)}}),b(a.prototype,{update:function(t,e){var i=this.chart,n=t&&t.events||{};t=A(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),M(i.options[this.coll].events,function(t,e){void 0===n[e]&&(n[e]=void 0)}),this.destroy(!0),this.init(i,b(t,{events:n})),i.isDirtyBox=!0,P(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,o=n.length;o--;)n[o]&&n[o].remove(!1);v(e.axes,this),v(e[i],this),C(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,P(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}),t(e,"Series/AreaSeries.js",[e["Core/Series/Series.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var l=e.parse,r=o.objectEach,y=o.pick,v=i.Series;t.seriesType("area","line",{threshold:0},{singleStacks:!1,getStackPoints:function(t){var l,e=[],h=[],i=this.xAxis,n=this.yAxis,c=n.stacking.stacks[this.stackKey],d={},p=this.index,o=n.series,u=o.length,f=y(n.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(l=0;ly?i-y:m-(e?y:0)),T(t.options.pointWidth)&&(o=a=Math.ceil(t.options.pointWidth),s-=Math.round((o-x)/2)),p.centerInCategory&&(s=c.adjustForMissingColumns(s,o,t,v)),t.barX=s,t.pointWidth=o,t.tooltipPos=d.inverted?[f.len+f.pos-d.plotLeft-n,u.len+u.pos-d.plotTop-(r||0)-w-a/2,h]:[s+a/2,n+f.pos-d.plotTop,h],t.shapeType=c.pointClass.prototype.shapeType||"rect",t.shapeArgs=c.crispCol.apply(c,t.isNull?[s,m,a,0]:[s,l,a,h])})},getSymbol:t,drawLegendSymbol:o.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i,n=this.options,o=(h=this.pointAttrToOptions||{}).stroke||"borderColor",r=h["stroke-width"]||"borderWidth",s=t&&t.color||this.color,a=t&&t[o]||n[o]||this.color||s,l=t&&t[r]||n[r]||this[r]||0,h=t&&t.options.dashStyle||n.dashStyle,c=M(t&&t.opacity,n.opacity,1);return t&&this.zones.length&&(i=t.getZone(),s=t.options.color||i&&(i.color||t.nonZonedColor)||this.color,i)&&(a=i.borderColor||a,h=i.dashStyle||h,l=i.borderWidth||l),e&&t&&(e=(t=p(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&d(s).brighten(t.brightness).get()||s,a=t[o]||a,l=t[r]||l,h=t.dashStyle||h,c=M(t.opacity,c)),o={fill:s,stroke:a,"stroke-width":l,opacity:c},h&&(o.dashstyle=h),o},drawPoints:function(){var o,r=this,s=this.chart,a=r.options,l=s.renderer,h=a.animationLimit||250;r.points.forEach(function(t){var e=t.graphic,i=!!e,n=e&&s.pointCount

How Long Will it Take to Save? (Includes Calculator) (2024)
Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 6009

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.