text: var TcHmi;!function(A){var t,e,r,i,o,l,n;function d(t,e,i){var o=r.call(this,t,e,i)||this;return o.__lineChart=null,o.__tooltipInformation={show:!1,isActive:!1,lineGraph:null,point:{x:0,y:0}},o.__resizedEventDestroyEvent=null,o.__themeDataLoadedEventDestroyEvent=null,o.__holdTimer=0,o.__holdTimerDuration=300,o.__manipulationInfo={mousePosition:{x:0,y:0},offset:{left:0,top:0}},o.__objectResolvers=new Map,o.__onResolverForSectionsBackgroundColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__sectionsBackgroundColor)||(o.__sectionsBackgroundColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getSectionsBackgroundColor"]),o.__processSectionsBackgroundColor())},o.__onResolverForXLabelFontColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__xLabelFontColor)||(o.__xLabelFontColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getXLabelFontColor"]),o.__processXLabelFontColor())},o.__onResolverForXAxisColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__xAxisColor)||(o.__xAxisColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getXAxisColor"]),o.__processXAxisColor())},o.__onResolverForXAxisNameFontColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__xAxisNameFontColor)||(o.__xAxisNameFontColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getXAxisNameFontColor"]),o.__processXAxisNameFontColor())},o.__onResolverForXAxisFormatWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__xAxisFormat)||(o.__xAxisFormat=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getXAxisFormat"]),o.__processXAxisFormat())},o.__onResolverForYAxisWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__yAxis)||(o.__yAxis=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getYAxis"]),o.__processYAxis())},o.__onResolverForLineGraphDescriptionsWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__lineGraphDescriptions)||(o.__lineGraphDescriptions=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getLineGraphDescriptions"]),o.__processLineGraphDescriptions())},o.__onResolverForLineGraphDataWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__lineGraphData)||(o.__lineGraphData=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getLineGraphData"]),o.__processLineGraphData())},o.__onResolverForGridBackgroundColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__gridBackgroundColor)||(o.__gridBackgroundColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getGridBackgroundColor"]),o.__processGridBackgroundColor())},o.__onResolverForGridLineColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__gridLineColor)||(o.__gridLineColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getGridLineColor"]),o.__processGridLineColor())},o.__onResolverForSubgridLineColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__subgridLineColor)||(o.__subgridLineColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getSubgridLineColor"]),o.__processSubgridLineColor())},o.__onResolverForTooltipFormatWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__tooltipFormat)||(o.__tooltipFormat=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getTooltipFormat"]),o.__processTooltipFormat())},o.__onResolverForTooltipFontColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__tooltipFontColor)||(o.__tooltipFontColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getTooltipFontColor"]),o.__processTooltipFontColor())},o.__onResolverForTooltipBackgroundColorWatchCallback=function(t){!1===o.__isAttached&&t.destroy&&t.destroy(),tchmi_equal(t.value,o.__tooltipBackgroundColor)||(o.__tooltipBackgroundColor=t.value,A.EventProvider.raise(o.__id+".onFunctionResultChanged",["getTooltipBackgroundColor"]),o.__processTooltipBackgroundColor())},o.__mousedownHandler=o.__onMouseDown(),o.__mousemoveHandler=o.__onMouseMoveTooltip(),o.__touchstartHandler=o.__onTouchStart(),o.__touchmoveHandler=o.__onTouchMove(),o.__touchendHandler=o.__onTouchEnd(),o}t=A.Controls||(A.Controls={}),e=t.Beckhoff||(t.Beckhoff={}),r=A.Controls.System.TcHmiControl,__extends(d,r),d.prototype.__previnit=function(){if(this.__elementTemplateRoot=this.__element.find(".tchmi-line-chart-template"),this.__elementChart=this.__elementTemplateRoot.find(".tchmi-line-chart-template-chart"),this.__elementTooltip=this.__elementTemplateRoot.find(".tchmi-line-chart-template-tooltip"),this.__elementTooltipText=this.__elementTemplateRoot.find(".tchmi-line-chart-template-tooltip-text"),this.__elementTooltipArrow=this.__elementTemplateRoot.find(".tchmi-line-chart-template-tooltip-arrow"),0===this.__elementTemplateRoot.length||0===this.__elementChart.length||0===this.__elementTooltip.length||0===this.__elementTooltipText.length||0===this.__elementTooltipArrow.length)throw new Error("Invalid Template.html");if("undefined"==typeof TcHmiCharting)throw new Error("Missing needed TcHmiCharting library");r.prototype.__previnit.call(this)},d.prototype.__init=function(){r.prototype.__init.call(this)},d.prototype.__attach=function(){r.prototype.__attach.call(this),this.__resizedEventDestroyEvent=A.EventProvider.register(this.__id+".onResized",this.__rebuild()),this.__themeDataLoadedEventDestroyEvent=A.EventProvider.register("onThemeDataChanged",this.__rebuild()),document.addEventListener("touchend",this.__touchendHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&{passive:!1,capture:!1}),this.__objectResolvers.forEach(function(t){return t.resolver.watch(t.watchCallback)})},d.prototype.__detach=function(){r.prototype.__detach.call(this),null!==this.__resizedEventDestroyEvent&&(this.__resizedEventDestroyEvent(),this.__resizedEventDestroyEvent=null),null!==this.__themeDataLoadedEventDestroyEvent&&(this.__themeDataLoadedEventDestroyEvent(),this.__themeDataLoadedEventDestroyEvent=null);var t={passive:!0,capture:!1},e={passive:!1,capture:!1};if(document.removeEventListener("touchend",this.__touchendHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&e),null!==this.__lineChart&&void 0!==this.__lineChart){var i=this.__lineChart.getCanvasDrawing();null!==i&&(i[0].removeEventListener("mousemove",this.__mousemoveHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&t),i[0].removeEventListener("mousedown",this.__mousedownHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&t),i[0].removeEventListener("touchstart",this.__touchstartHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&e),i[0].removeEventListener("touchmove",this.__touchmoveHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&e)),this.__lineChart.remove(),this.__lineChart=null}this.__holdTimer&&(window.clearTimeout(this.__holdTimer),this.__holdTimer=0),this.__objectResolvers.forEach(function(t){t.watchDestroyer&&(t.watchDestroyer(),t.watchDestroyer=null)})},d.prototype.destroy=function(){this.__objectResolvers.forEach(function(t){t.watchDestroyer&&t.watchDestroyer(),t.resolver.destroy()}),this.__objectResolvers.clear(),r.prototype.destroy.call(this)},d.prototype.__rebuild=function(){var i=this;return function(t,e){i.__drawLineChart()}},d.prototype.__drawLineChart=function(){if(this.__invisibleTooltip(),null!==this.__lineChart)this.__lineChart.clear();else{this.__lineChart=new TcHmiCharting.Chart(this.__elementChart).Line();var t=this.__lineChart.getCanvasDrawing();if(null!==t){var e={passive:!0,capture:!1},i={passive:!1,capture:!1};t[0].addEventListener("mousemove",this.__mousemoveHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&e),t[0].addEventListener("mousedown",this.__mousedownHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&e),t[0].addEventListener("touchstart",this.__touchstartHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&i),t[0].addEventListener("touchmove",this.__touchmoveHandler,!!TCHMI_EVENT_OPTION_OBJECT_SUPPORTED&&i)}}this.__lineChart.addXAxis();var o=this.__lineChart.getXAxis();if(null!==o&&(o.setShowLabels(void 0===this.__xShowLabels?this.getAttributeDefaultValueInternal("XShowLabels"):this.__xShowLabels),o.setXAxisCallback(this.__executeXAxisFormatFunction()),o.setShowAxis(void 0===this.__showXAxis?this.getAttributeDefaultValueInternal("ShowXAxis"):this.__showXAxis),o.setShowSubTicks(void 0===this.__showXSubTicks?this.getAttributeDefaultValueInternal("ShowXSubTicks"):this.__showXSubTicks),o.setShowAxisName(void 0===this.__showXAxisName?this.getAttributeDefaultValueInternal("ShowXAxisName"):this.__showXAxisName),o.setAutoScaling(void 0===this.__xAxisAutoScaling?this.getAttributeDefaultValueInternal("XAxisAutoScaling"):this.__xAxisAutoScaling),A.isSolidColor(this.__xAxisColor)?o.setAxisColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisColor)):o.setAxisColor(null),o.setDecimalPlaces(void 0===this.__xAxisDecimalPlaces?this.getAttributeDefaultValueInternal("XAxisDecimalPlaces"):this.__xAxisDecimalPlaces),o.setAxisName(void 0===this.__xAxisName?this.getAttributeDefaultValueInternal("XAxisName"):this.__xAxisName),A.isSolidColor(this.__xAxisNameFontColor)?o.setAxisNameFontColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisNameFontColor)):o.setAxisNameFontColor(null),o.setAxisNameFontFamily(this.__xAxisNameFontFamily),o.setAxisNameFontSize(void 0===this.__xAxisNameFontSize?this.getAttributeDefaultValueInternal("XAxisNameFontSize"):this.__xAxisNameFontSize),o.setAxisNameFontSizeUnit(void 0===this.__xAxisNameFontSizeUnit?this.getAttributeDefaultValueInternal("XAxisNameFontSizeUnit"):this.__xAxisNameFontSizeUnit),o.setAxisNameFontWeight(void 0===this.__xAxisNameFontWeight?this.getAttributeDefaultValueInternal("XAxisNameFontWeight"):this.__xAxisNameFontWeight),o.setUnit(void 0===this.__xAxisUnit?this.getAttributeDefaultValueInternal("XAxisUnit"):this.__xAxisUnit),o.setAxisWidth(void 0===this.__xAxisWidth?this.getAttributeDefaultValueInternal("XAxisWidth"):this.__xAxisWidth),A.isSolidColor(this.__xLabelFontColor)?o.setLabelFontColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__xLabelFontColor)):o.setLabelFontColor(null),o.setLabelFontFamily(this.__xLabelFontFamily),o.setLabelFontSize(void 0===this.__xLabelFontSize?this.getAttributeDefaultValueInternal("XLabelFontSize"):this.__xLabelFontSize),o.setLabelFontSizeUnit(void 0===this.__xLabelFontSizeUnit?this.getAttributeDefaultValueInternal("XLabelFontSizeUnit"):this.__xLabelFontSizeUnit),o.setLabelFontWeight(void 0===this.__xLabelFontWeight?this.getAttributeDefaultValueInternal("XLabelFontWeight"):this.__xLabelFontWeight),o.setMainTickStartValue(void 0===this.__xMainTickMinValue?this.getAttributeDefaultValueInternal("XMainTickMinValue"):this.__xMainTickMinValue),o.setMainTickSteps(void 0===this.__xMainTickSteps?this.getAttributeDefaultValueInternal("XMainTickSteps"):this.__xMainTickSteps),o.setMainTickEndValue(void 0===this.__xMainTickMaxValue?this.getAttributeDefaultValueInternal("XMainTickMaxValue"):this.__xMainTickMaxValue),o.setSubTickSteps(void 0===this.__xSubTickSteps?this.getAttributeDefaultValueInternal("XSubTickSteps"):this.__xSubTickSteps)),this.__yAxis)for(var r=0,l=this.__yAxis.length;r<l;r++){var n=this.__yAxis[r];this.__lineChart.addYAxis(A.ValueConverter.toEnum(n.position,d.Position,d.Position.Left));var s=this.__lineChart.getYAxisAtPosition(r);s.setShowAxis(!0),s.setAutoScaling(A.ValueConverter.toBoolean(n.autoScaling,!1)),A.isSolidColor(n.axisColor)?s.setAxisColor(A.StyleProvider.resolveSolidColorAsCssValue(n.axisColor)):s.setAxisColor(null),s.setAxisName(A.ValueConverter.toString(n.axisName)),A.isSolidColor(n.axisNameFontColor)?s.setAxisNameFontColor(A.StyleProvider.resolveSolidColorAsCssValue(n.axisNameFontColor)):s.setAxisNameFontColor(null),s.setAxisNameFontFamily(A.ValueConverter.toFontFamily(n.axisNameFontFamily)),s.setAxisNameFontSize(A.ValueConverter.toNumber(n.axisNameFontSize)),void 0!==n.axisNameFontSizeUnit?s.setAxisNameFontSizeUnit(n.axisNameFontSizeUnit):s.setAxisNameFontSizeUnit(null),void 0!==n.axisNameFontWeight?s.setAxisNameFontWeight(n.axisNameFontWeight):s.setAxisNameFontWeight(null),s.setDecimalPlaces(A.ValueConverter.toNumber(n.decimalPlaces)),A.isSolidColor(n.labelFontColor)?s.setLabelFontColor(A.StyleProvider.resolveSolidColorAsCssValue(n.labelFontColor)):s.setLabelFontColor(null),s.setMainTickStartValue(A.ValueConverter.toNumber(n.mainTickMinValue)),s.setMainTickEndValue(A.ValueConverter.toNumber(n.mainTickMaxValue)),s.setShowLabels(A.ValueConverter.toBoolean(n.showLabels,!0)),s.setShowAxisName(A.ValueConverter.toBoolean(n.showAxisName,!0)),s.setUnit(A.ValueConverter.toString(n.unit)),s.setAxisWidth(void 0===this.__yAxisWidth?this.getAttributeDefaultValueInternal("YAxisWidth"):this.__yAxisWidth),s.setLabelFontFamily(this.__yLabelFontFamily),s.setLabelFontSize(void 0===this.__yLabelFontSize?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSize),s.setLabelFontSizeUnit(void 0===this.__yLabelFontSizeUnit?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSizeUnit),s.setLabelFontWeight(void 0===this.__yLabelFontWeight?this.getAttributeDefaultValueInternal("YLabelFontWeight"):this.__yLabelFontWeight),s.setMainTickSteps(void 0===this.__yMainTickSteps?this.getAttributeDefaultValueInternal("YMainTickSteps"):this.__yMainTickSteps),s.setSubTickSteps(void 0===this.__ySubTickSteps?this.getAttributeDefaultValueInternal("YSubTickSteps"):this.__ySubTickSteps),s.setShowSubTicks(void 0===this.__showYSubTicks?this.getAttributeDefaultValueInternal("ShowYSubTicks"):this.__showYSubTicks)}if(this.__showGrid){this.__lineChart.addGrid();var a=this.__lineChart.getGrid();null!==a&&(a.setShowHorizontalLines(void 0===this.__gridShowHorizontalLines?this.getAttributeDefaultValueInternal("GridShowHorizontalLines"):this.__gridShowHorizontalLines),a.setShowVerticalLines(void 0===this.__gridShowVerticalLines?this.getAttributeDefaultValueInternal("GridShowVerticalLines"):this.__gridShowVerticalLines),a.setLineWidth(void 0===this.__gridLineWidth?this.getAttributeDefaultValueInternal("GridLineWidth"):this.__gridLineWidth),a.setLineStyle(void 0===this.__gridLineStyle?this.getAttributeDefaultValueInternal("GridLineStyle"):this.__gridLineStyle),A.isSolidColor(this.__gridLineColor)?a.setLineColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__gridLineColor)):a.setLineColor(null),A.isSolidColor(this.__gridBackgroundColor)?a.setBackgroundColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__gridBackgroundColor)):a.setBackgroundColor(null))}this.__lineChart.addSubgrid();var _=this.__lineChart.getSubgrid();if(null!==_&&(_.setShowHorizontalLines(void 0===this.__subgridShowHorizontalLines?this.getAttributeDefaultValueInternal("SubgridShowHorizontalLines"):this.__subgridShowHorizontalLines),_.setShowVerticalLines(void 0===this.__subgridShowVerticalLines?this.getAttributeDefaultValueInternal("SubgridShowVerticalLines"):this.__subgridShowVerticalLines),_.setLineWidth(void 0===this.__subgridLineWidth?this.getAttributeDefaultValueInternal("SubgridLineWidth"):this.__subgridLineWidth),_.setLineStyle(void 0===this.__subgridLineStyle?this.getAttributeDefaultValueInternal("SubgridLineStyle"):this.__subgridLineStyle),A.isSolidColor(this.__subgridLineColor)?_.setLineColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__subgridLineColor)):_.setLineColor(null)),this.__lineGraphDescriptions&&this.__lineGraphData&&this.__lineGraphData.length>=this.__lineGraphDescriptions.length)for(r=0,l=this.__lineGraphDescriptions.length;r<l;r++)if(this.__yAxis)for(var h=0,u=this.__yAxis.length;h<u;h++)if(this.__yAxis[h].id===this.__lineGraphDescriptions[r].yAxisId){var c=this.__lineGraphDescriptions[r];this.__lineChart.addGraph({points:this.__lineGraphData[r],yAxis:this.__lineChart.getYAxisAtPosition(h)});var p=this.__lineChart.getLineGraphsAtPosition(r);null!=p&&(A.isSolidColor(c.lineColor)?p.setLineColor(A.StyleProvider.resolveSolidColorAsCssValue(c.lineColor)):p.setLineColor(null),null!==c.lineWidth&&void 0!==c.lineWidth?p.setLineWidth(A.ValueConverter.toNumber(c.lineWidth)):p.setLineWidth(null),p.setPointDot(A.ValueConverter.toBoolean(c.pointDot,!1)),A.isSolidColor(c.pointDotFillColor)?p.setPointDotFillColor(A.StyleProvider.resolveSolidColorAsCssValue(c.pointDotFillColor)):p.setPointDotFillColor(null),null!==c.pointDotRadius&&void 0!==c.pointDotRadius?p.setPointDotRadius(A.ValueConverter.toNumber(c.pointDotRadius)):p.setPointDotRadius(null),A.isSolidColor(c.pointDotStrokeColor)?p.setPointDotStrokeColor(A.StyleProvider.resolveSolidColorAsCssValue(c.pointDotStrokeColor)):p.setPointDotStrokeColor(null),null!==c.pointDotStrokeWidth&&void 0!==c.pointDotStrokeWidth?p.setPointDotStrokeWidth(A.ValueConverter.toNumber(c.pointDotStrokeWidth)):p.setPointDotStrokeWidth(null))}this.__lineChart.setYAxisWidth(void 0===this.__yAxisWidth?this.getAttributeDefaultValueInternal("YAxisWidth"):this.__yAxisWidth),this.__lineChart.setYLabelFontFamily(this.__yLabelFontFamily),this.__lineChart.setYLabelFontSize(void 0===this.__yLabelFontSize?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSize),this.__lineChart.setYLabelFontSizeUnit(void 0===this.__yLabelFontSizeUnit?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSizeUnit),this.__lineChart.setYLabelFontWeight(void 0===this.__yLabelFontWeight?this.getAttributeDefaultValueInternal("YLabelFontWeight"):this.__yLabelFontWeight),this.__lineChart.setYMainTickSteps(void 0===this.__yMainTickSteps?this.getAttributeDefaultValueInternal("YMainTickSteps"):this.__yMainTickSteps),this.__lineChart.setYSubTickSteps(void 0===this.__ySubTickSteps?this.getAttributeDefaultValueInternal("YSubTickSteps"):this.__ySubTickSteps),this.__lineChart.setShowYSubTicks(void 0===this.__showYSubTicks?this.getAttributeDefaultValueInternal("ShowYSubTicks"):this.__showYSubTicks),this.__lineChart.draw()},d.prototype.__onMouseDown=function(){var f=this;return function(t){if(null!==t.target){var e=t.target;if("tchmi-chart-canvas-drawing"===e.className){var i=null;if(null!==e.parentElement&&null!==e.parentElement.parentElement&&null!==e.parentElement.parentElement.parentElement&&(i=e.parentElement.parentElement.parentElement.id),i===f.__id&&f.__lineChart)for(var o=f.__lineChart.getLineGraphs(),r=0,l=o.length;r<l;r++){var n=o[r],s=n.getPointDotRadius();if(null!==s&&n.getPointDot()){var a=n.getPoints();if(null!=a)for(var _=0,h=a.length;_<h;_++){var u=f.__lineChart.getYAxisAtPosition(0).getAxisWidth();if(null!==u){var c=f.__lineChart.getYAxisAtPosition(0).getDiffEndLabelAndLine()+u/2,p=f.__lineChart.getXAxis(),d=0;if(null!==p){d=p.getXAxisLeftWidth()||0;var C=f.__lineChart.getYAxis();if(null!=C){var g=C[0].getLineHeight();if(t.offsetX>=d&&t.offsetX<=d+p.getLineWidth()&&t.offsetY>=c&&t.offsetY<=c+g&&a[_].x-s<=t.offsetX&&t.offsetX<=a[_].x+s&&a[_].y-s<=t.offsetY&&a[_].y+s>=t.offsetY){if(f.__elementTooltip.css("visibility","visible"),null!==f.__lineGraphData&&void 0!==f.__lineGraphData){var v=f.__executeTooltipFormatFunction(f.__lineGraphData[r][_].x,f.__lineGraphData[r][_].y);f.__elementTooltipText[0].innerHTML=v;var m=n.getLineColor();A.isSolidColor(f.__tooltipFontColor)&&(m=A.StyleProvider.resolveSolidColorAsCssValue(f.__tooltipFontColor)),null!=m&&f.__elementTooltipText.css("color",m);var S=f.__elementTooltip.width(),b=f.__elementTooltip.height(),x=a[_].x-S/2;a[_].y-b-s/2>c?d<=x&&x+S<=d+p.getLineWidth()?(f.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-bottom"),f.__elementTooltip.css({top:a[_].y-b-4,left:x})):a[_].x+4+S<=d+p.getLineWidth()?(f.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-left"),f.__elementTooltip.css({top:a[_].y-b/2,left:a[_].x+4})):(f.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-right"),f.__elementTooltip.css({top:a[_].y-b/2,left:a[_].x-4-S})):d<=x&&x+S<=d+p.getLineWidth()?(f.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-top"),f.__elementTooltip.css({top:a[_].y+4,left:x})):a[_].x+4+S<=d+p.getLineWidth()?(f.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-left"),f.__elementTooltip.css({top:a[_].y-b/2,left:a[_].x+4})):(f.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-right"),f.__elementTooltip.css({top:a[_].y-b/2,left:a[_].x-4-S})),f.__tooltipInformation={show:!0,isActive:!0,lineGraph:n,point:{x:f.__lineGraphData[r][_].x,y:f.__lineGraphData[r][_].x}}}return}}}}}}}f.__invisibleTooltip()}else f.__invisibleTooltip()}}},d.prototype.__onMouseMoveTooltip=function(){var e=this;return function(t){if(!e.__tooltipInformation.isActive&&e.__showTooltip){var S=e,b=t.offsetX,x=t.offsetY;requestAnimationFrame(function(){if(null!==S.__lineChart&&void 0!==S.__lineChart)for(var t=S.__lineChart.getLineGraphs(),e=0,i=t.length;e<i;e++){var o=t[e],r=o.getPointDotRadius();if(null!==r&&o.getPointDot()){var l=o.getPoints();if(null!=l)for(var n=0,s=l.length;n<s;n++){var a=S.__lineChart.getYAxisAtPosition(0).getAxisWidth();if(null!==a){var _=S.__lineChart.getYAxisAtPosition(0).getDiffEndLabelAndLine()+a/2,h=S.__lineChart.getXAxis(),u=0;if(null!==h){u=h.getXAxisLeftWidth()||0;var c=S.__lineChart.getYAxis();if(null!=c){var p=c[0].getLineHeight();if(u<=b&&b<=u+h.getLineWidth()&&_<=x&&x<=_+p&&l[n].x-r<=b&&b<=l[n].x+r&&l[n].y-r<=x&&l[n].y+r>=x){if(S.__elementTooltip.css("visibility","visible"),null!==S.__lineGraphData&&void 0!==S.__lineGraphData){var d=S.__executeTooltipFormatFunction(S.__lineGraphData[e][n].x,S.__lineGraphData[e][n].y);S.__elementTooltipText[0].innerHTML=d;var C=o.getLineColor();A.isSolidColor(S.__tooltipFontColor)&&(C=A.StyleProvider.resolveSolidColorAsCssValue(S.__tooltipFontColor)),null!=C&&S.__elementTooltipText.css("color",C);var g=S.__elementTooltip.width(),v=S.__elementTooltip.height(),m=l[n].x-g/2;l[n].y-v-r/2>_?u<=m&&m+g<=u+h.getLineWidth()?(S.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-bottom"),S.__elementTooltip.css({top:l[n].y-v-4,left:m})):l[n].x+4+g<=u+h.getLineWidth()?(S.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-left"),S.__elementTooltip.css({top:l[n].y-v/2,left:l[n].x+4})):(S.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-right"),S.__elementTooltip.css({top:l[n].y-v/2,left:l[n].x-4-g})):u<=m&&m+g<=u+h.getLineWidth()?(S.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-top"),S.__elementTooltip.css({top:l[n].y+4,left:m})):l[n].x+4+g<=u+h.getLineWidth()?(S.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-left"),S.__elementTooltip.css({top:l[n].y-v/2,left:l[n].x+4})):(S.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-right"),S.__elementTooltip.css({top:l[n].y-v/2,left:l[n].x-4-g})),S.__tooltipInformation={show:!0,isActive:!1,lineGraph:o,point:{x:S.__lineGraphData[e][n].x,y:S.__lineGraphData[e][n].x}}}return}}}}}}}}),S.__invisibleTooltip()}}},d.prototype.__invisibleTooltip=function(){this.__elementTooltip.css("visibility","hidden"),this.__tooltipInformation={show:!1,isActive:!1,lineGraph:null,point:{x:0,y:0}}},d.prototype.__onTouchStart=function(){var n=this;return function(t){if(t.preventDefault(),null!==n.__lineChart){if(!n.getIsEnabled())return;var e=t.target.getBoundingClientRect(),i=t.touches[0],o=i.clientX-e.left,r=i.clientY-e.top;n.__manipulationInfo={mousePosition:{x:o,y:r},offset:{left:e.left,top:e.top}};var l=n;n.__holdTimer=setTimeout(function(){l.__createTooltipFromTouch(o,r)},n.__holdTimerDuration)}}},d.prototype.__onTouchMove=function(){var r=this;return function(t){if(r.getIsEnabled()){var e=t.touches[0],i=e.clientX-r.__manipulationInfo.offset.left,o=e.clientY-r.__manipulationInfo.offset.top;5<Math.sqrt(Math.pow(r.__manipulationInfo.mousePosition.x-i,2)+Math.pow(r.__manipulationInfo.mousePosition.y-o,2))&&r.__holdTimer&&(clearTimeout(r.__holdTimer),r.__holdTimer=0)}}},d.prototype.__onTouchEnd=function(){var e=this;return function(t){e.getIsEnabled()&&(e.__holdTimer&&(clearTimeout(e.__holdTimer),e.__holdTimer=0),e.__manipulationInfo={mousePosition:{x:0,y:0},offset:{left:0,top:0}})}},d.prototype.__createTooltipFromTouch=function(t,e){if(this.__holdTimer&&(clearTimeout(this.__holdTimer),this.__holdTimer=0),this.__manipulationInfo={offset:{left:0,top:0},mousePosition:{x:0,y:0}},this.__elementTooltip.css("visibility","hidden"),this.__tooltipInformation={show:!1,isActive:!1,point:{x:0,y:0},lineGraph:null},this.__lineChart)for(var i=this.__lineChart.getLineGraphs(),o=0,r=i.length;o<r;o++){var l=i[o],n=l.getPointDotRadius();if(null!==n&&l.getPointDot()){var s=l.getPoints();if(null!=s)for(var a=0,_=s.length;a<_;a++){var h=this.__lineChart.getYAxisAtPosition(0).getAxisWidth();if(null!==h){var u=this.__lineChart.getYAxisAtPosition(0).getDiffEndLabelAndLine()+h/2,c=this.__lineChart.getXAxis(),p=0;if(null!==c){p=c.getXAxisLeftWidth()||0;var d=this.__lineChart.getYAxis();if(null!=d){var C=d[0].getLineHeight();if(p-10<=t&&t<=p+c.getLineWidth()+10&&u-10<=e&&e<=u+C+10&&Math.sqrt(Math.pow(t-s[a].x,2)+Math.pow(e-s[a].y,2))<=10+n){if(this.__elementTooltip.css("visibility","visible"),null!==this.__lineGraphData&&void 0!==this.__lineGraphData){var g=this.__executeTooltipFormatFunction(this.__lineGraphData[o][a].x,this.__lineGraphData[o][a].y);this.__elementTooltipText[0].innerHTML=g;var v=l.getLineColor();A.isSolidColor(this.__tooltipFontColor)&&(v=A.StyleProvider.resolveSolidColorAsCssValue(this.__tooltipFontColor)),null!=v&&this.__elementTooltipText.css("color",v);var m=this.__elementTooltip.width(),S=this.__elementTooltip.height(),b=s[a].x-m/2;s[a].y-S-n/2>u?p<=b&&b+m<=p+c.getLineWidth()?(this.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-bottom"),this.__elementTooltip.css({top:s[a].y-S-4,left:b})):s[a].x+4+m<=p+c.getLineWidth()?(this.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-left"),this.__elementTooltip.css({top:s[a].y-S/2,left:s[a].x+4})):(this.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-right"),this.__elementTooltip.css({top:s[a].y-S/2,left:s[a].x-4-m})):p<=b&&b+m<=p+c.getLineWidth()?(this.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-top"),this.__elementTooltip.css({top:s[a].y+4,left:b})):s[a].x+4+m<=p+c.getLineWidth()?(this.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-left"),this.__elementTooltip.css({top:s[a].y-S/2,left:s[a].x+4})):(this.__elementTooltipArrow.removeClass("tchmi-line-chart-template-tooltip-arrow-top tchmi-line-chart-template-tooltip-arrow-bottom tchmi-line-chart-template-tooltip-arrow-left tchmi-line-chart-template-tooltip-arrow-right").addClass("tchmi-line-chart-template-tooltip-arrow-right"),this.__elementTooltip.css({top:s[a].y-S/2,left:s[a].x-4-m})),this.__tooltipInformation={show:!0,isActive:!0,lineGraph:l,point:{x:this.__lineGraphData[o][a].x,y:this.__lineGraphData[o][a].x}}}return}}}}}}}},d.prototype.setSectionsBackgroundColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("SectionsBackgroundColor"));var i=this.__objectResolvers.get("sectionsBackgroundColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("sectionsBackgroundColor",{resolver:o,watchCallback:this.__onResolverForSectionsBackgroundColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForSectionsBackgroundColorWatchCallback)})},d.prototype.getSectionsBackgroundColor=function(){return this.__sectionsBackgroundColor},d.prototype.__processSectionsBackgroundColor=function(){A.StyleProvider.processBackgroundColor(this.__elementTemplateRoot,this.__sectionsBackgroundColor)},d.prototype.setYAxisWidth=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("YAxisWidth")),e!==this.__yAxisWidth&&(this.__yAxisWidth=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getYAxisWidth"]),this.__processYAxisWidth())},d.prototype.getYAxisWidth=function(){return this.__yAxisWidth},d.prototype.__processYAxisWidth=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setYAxisWidth(void 0===this.__yAxisWidth?this.getAttributeDefaultValueInternal("YAxisWidth"):this.__yAxisWidth),this.__lineChart.draw())},d.prototype.setYLabelFontFamily=function(t){var e=A.ValueConverter.toFontFamily(t);null===e&&(e=this.getAttributeDefaultValueInternal("YLabelFontFamily")),e!==this.__yLabelFontFamily&&(this.__yLabelFontFamily=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getYLabelFontFamily"]),this.__processYLabelFontFamily())},d.prototype.getYLabelFontFamily=function(){return this.__yLabelFontFamily},d.prototype.__processYLabelFontFamily=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setYLabelFontFamily(this.__yLabelFontFamily),this.__lineChart.draw())},d.prototype.setYLabelFontSize=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("YLabelFontSize")),e!==this.__yLabelFontSize&&(this.__yLabelFontSize=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getYLabelFontSize"]),this.__processYLabelFontSize())},d.prototype.getYLabelFontSize=function(){return this.__yLabelFontSize},d.prototype.__processYLabelFontSize=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setYLabelFontSize(void 0===this.__yLabelFontSize?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSize),this.__lineChart.draw())},d.prototype.setYLabelFontSizeUnit=function(t){var e=A.ValueConverter.toFontSizeUnit(t);null===e&&(e=this.getAttributeDefaultValueInternal("YLabelFontSize")),e!==this.__yLabelFontSizeUnit&&(this.__yLabelFontSizeUnit=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getYLabelFontSizeUnit"]),this.__processYLabelFontSizeUnit())},d.prototype.getYLabelFontSizeUnit=function(){return this.__yLabelFontSizeUnit},d.prototype.__processYLabelFontSizeUnit=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setYLabelFontSizeUnit(void 0===this.__yLabelFontSizeUnit?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSizeUnit),this.__lineChart.draw())},d.prototype.setYLabelFontWeight=function(t){var e=A.ValueConverter.toFontWeight(t);null===e&&(e=this.getAttributeDefaultValueInternal("YLabelFontWeight")),e!==this.__yLabelFontWeight&&(this.__yLabelFontWeight=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getYLabelFontWeight"]),this.__processYLabelFontWeight())},d.prototype.getYLabelFontWeight=function(){return this.__yLabelFontWeight},d.prototype.__processYLabelFontWeight=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setYLabelFontWeight(void 0===this.__yLabelFontWeight?this.getAttributeDefaultValueInternal("YLabelFontWeight"):this.__yLabelFontWeight),this.__lineChart.draw())},d.prototype.setYMainTickSteps=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("YMainTickSteps")),e!==this.__yMainTickSteps&&(this.__yMainTickSteps=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getYMainTickSteps"]),this.__processYMainTickSteps())},d.prototype.getYMainTickSteps=function(){return this.__yMainTickSteps},d.prototype.__processYMainTickSteps=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setYMainTickSteps(void 0===this.__yMainTickSteps?this.getAttributeDefaultValueInternal("YMainTickSteps"):this.__yMainTickSteps),this.__lineChart.draw())},d.prototype.setShowYSubTicks=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("ShowYSubTicks")),e!==this.__showYSubTicks&&(this.__showYSubTicks=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getShowYSubTicks"]),this.__processShowYSubTicks())},d.prototype.getShowYSubTicks=function(){return this.__showYSubTicks},d.prototype.__processShowYSubTicks=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setShowYSubTicks(void 0===this.__showYSubTicks?this.getAttributeDefaultValueInternal("ShowYSubTicks"):this.__showYSubTicks),this.__lineChart.draw())},d.prototype.setYSubTickSteps=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("YSubTickSteps")),e!==this.__ySubTickSteps&&(this.__ySubTickSteps=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getYSubTickSteps"]),this.__processYSubTickSteps())},d.prototype.getYSubTickSteps=function(){return this.__ySubTickSteps},d.prototype.__processYSubTickSteps=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&(this.__lineChart.setYSubTickSteps(void 0===this.__ySubTickSteps?this.getAttributeDefaultValueInternal("YSubTickSteps"):this.__ySubTickSteps),this.__lineChart.draw())},d.prototype.setShowXAxis=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("ShowXAxis")),e!==this.__showXAxis&&(this.__showXAxis=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getShowXAxis"]),this.__processShowXAxis())},d.prototype.getShowXAxis=function(){return this.__showXAxis},d.prototype.__processShowXAxis=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setShowAxis(void 0===this.__showXAxis?this.getAttributeDefaultValueInternal("ShowXAxis"):this.__showXAxis),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXShowLabels=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("XShowLabels")),e!==this.__xShowLabels&&(this.__xShowLabels=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXShowLabels"]),this.__processXShowLabels())},d.prototype.getXShowLabels=function(){return this.__xShowLabels},d.prototype.__processXShowLabels=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setShowLabels(void 0===this.__xShowLabels?this.getAttributeDefaultValueInternal("XShowLabels"):this.__xShowLabels),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXMainTickMinValue=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XMainTickMinValue")),e!==this.__xMainTickMinValue&&(this.__xMainTickMinValue=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXMainTickMinValue"]),this.__processXMainTickMinValue())},d.prototype.getXMainTickMinValue=function(){return this.__xMainTickMinValue},d.prototype.__processXMainTickMinValue=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setMainTickStartValue(void 0===this.__xMainTickMinValue?this.getAttributeDefaultValueInternal("XMainTickMinValue"):this.__xMainTickMinValue),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXMainTickMaxValue=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XMainTickMaxValue")),e!==this.__xMainTickMaxValue&&(this.__xMainTickMaxValue=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXMainTickMaxValue"]),this.__processXMainTickMaxValue())},d.prototype.getXMainTickMaxValue=function(){return this.__xMainTickMaxValue},d.prototype.__processXMainTickMaxValue=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setMainTickEndValue(void 0===this.__xMainTickMaxValue?this.getAttributeDefaultValueInternal("XMainTickMaxValue"):this.__xMainTickMaxValue),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXMainTickSteps=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XMainTickSteps")),e!==this.__xMainTickSteps&&(this.__xMainTickSteps=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXMainTickSteps"]),this.__processXMainTickSteps())},d.prototype.getXMainTickSteps=function(){return this.__xMainTickSteps},d.prototype.__processXMainTickSteps=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setMainTickSteps(void 0===this.__xMainTickSteps?this.getAttributeDefaultValueInternal("XMainTickSteps"):this.__xMainTickSteps),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setShowXSubTicks=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("ShowXSubTicks")),e!==this.__showXSubTicks&&(this.__showXSubTicks=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getShowXSubTicks"]),this.__processShowXSubTicks())},d.prototype.getShowXSubTicks=function(){return this.__showXSubTicks},d.prototype.__processShowXSubTicks=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setShowSubTicks(void 0===this.__showXSubTicks?this.getAttributeDefaultValueInternal("ShowXSubTicks"):this.__showXSubTicks),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXSubTickSteps=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XSubTickSteps")),e!==this.__xSubTickSteps&&(this.__xSubTickSteps=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXSubTickSteps"]),this.__processXSubTickSteps())},d.prototype.getXSubTickSteps=function(){return this.__xSubTickSteps},d.prototype.__processXSubTickSteps=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setSubTickSteps(void 0===this.__xSubTickSteps?this.getAttributeDefaultValueInternal("XSubTickSteps"):this.__xSubTickSteps),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXLabelFontFamily=function(t){var e=A.ValueConverter.toFontFamily(t);null===e&&(e=this.getAttributeDefaultValueInternal("XLabelFontFamily")),e!==this.__xLabelFontFamily&&(this.__xLabelFontFamily=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXLabelFontFamily"]),this.__processXLabelFontFamily())},d.prototype.getXLabelFontFamily=function(){return this.__xLabelFontFamily},d.prototype.__processXLabelFontFamily=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setLabelFontFamily(this.__xLabelFontFamily),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXLabelFontSize=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XLabelFontSize")),e!==this.__xLabelFontSize&&(this.__xLabelFontSize=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXLabelFontSize"]),this.__processXLabelFontSize())},d.prototype.getXLabelFontSize=function(){return this.__xLabelFontSize},d.prototype.__processXLabelFontSize=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setLabelFontSize(void 0===this.__xLabelFontSize?this.getAttributeDefaultValueInternal("XLabelFontSize"):this.__xLabelFontSize),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXLabelFontSizeUnit=function(t){var e=A.ValueConverter.toFontSizeUnit(t);null===e&&(e=this.getAttributeDefaultValueInternal("XLabelFontSizeUnit")),e!==this.__xLabelFontSizeUnit&&(this.__xLabelFontSizeUnit=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXLabelFontSizeUnit"]),this.__processXLabelFontSizeUnit())},d.prototype.getXLabelFontSizeUnit=function(){return this.__xLabelFontSizeUnit},d.prototype.__processXLabelFontSizeUnit=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setLabelFontSizeUnit(void 0===this.__xLabelFontSizeUnit?this.getAttributeDefaultValueInternal("XLabelFontSizeUnit"):this.__xLabelFontSizeUnit),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXLabelFontWeight=function(t){var e=A.ValueConverter.toFontWeight(t);null===e&&(e=this.getAttributeDefaultValueInternal("XLabelFontWeight")),e!==this.__xLabelFontWeight&&(this.__xLabelFontWeight=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXLabelFontWeight"]),this.__processXLabelFontWeight())},d.prototype.getXLabelFontWeight=function(){return this.__xLabelFontWeight},d.prototype.__processXLabelFontWeight=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setLabelFontWeight(void 0===this.__xLabelFontWeight?this.getAttributeDefaultValueInternal("XLabelFontWeight"):this.__xLabelFontWeight),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXLabelFontColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("XLabelFontColor"));var i=this.__objectResolvers.get("xLabelFontColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("xLabelFontColor",{resolver:o,watchCallback:this.__onResolverForXLabelFontColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForXLabelFontColorWatchCallback)})},d.prototype.getXLabelFontColor=function(){return this.__xLabelFontColor},d.prototype.__processXLabelFontColor=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(A.isSolidColor(this.__xLabelFontColor)?t.setLabelFontColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__xLabelFontColor)):t.setLabelFontColor(null),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisWidth=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisWidth")),e!==this.__xAxisWidth&&(this.__xAxisWidth=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisWidth"]),this.__processXAxisWidth())},d.prototype.getXAxisWidth=function(){return this.__xAxisWidth},d.prototype.__processXAxisWidth=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setAxisWidth(void 0===this.__xAxisWidth?this.getAttributeDefaultValueInternal("XAxisWidth"):this.__xAxisWidth),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisColor"));var i=this.__objectResolvers.get("xAxisColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("xAxisColor",{resolver:o,watchCallback:this.__onResolverForXAxisColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForXAxisColorWatchCallback)})},d.prototype.getXAxisColor=function(){return this.__xAxisColor},d.prototype.__processXAxisColor=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(A.isSolidColor(this.__xAxisColor)?t.setAxisColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisColor)):t.setAxisColor(null),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setShowXAxisName=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("ShowXAxisName")),e!==this.__showXAxisName&&(this.__showXAxisName=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getShowXAxisName"]),this.__processShowXAxisName())},d.prototype.getShowXAxisName=function(){return this.__showXAxisName},d.prototype.__processShowXAxisName=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setShowAxisName(void 0===this.__showXAxisName?this.getAttributeDefaultValueInternal("ShowXAxisName"):this.__showXAxisName),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisName=function(t){var e=A.ValueConverter.toString(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisName")),e!==this.__xAxisName&&(this.__xAxisName=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisName"]),this.__processXAxisName())},d.prototype.getXAxisName=function(){return this.__xAxisName},d.prototype.__processXAxisName=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setAxisName(void 0===this.__xAxisName?this.getAttributeDefaultValueInternal("XAxisName"):this.__xAxisName),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisNameFontFamily=function(t){var e=A.ValueConverter.toFontFamily(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisNameFontFamily")),e!==this.__xAxisNameFontFamily&&(this.__xAxisNameFontFamily=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisNameFontFamily"]),this.__processXAxisNameFontFamily())},d.prototype.getXAxisNameFontFamily=function(){return this.__xAxisNameFontFamily},d.prototype.__processXAxisNameFontFamily=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setAxisNameFontFamily(this.__xAxisNameFontFamily),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisNameFontSize=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisNameFontSize")),e!==this.__xAxisNameFontSize&&(this.__xAxisNameFontSize=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisNameFontSize"]),this.__processXAxisNameFontSize())},d.prototype.getXAxisNameFontSize=function(){return this.__xAxisNameFontSize},d.prototype.__processXAxisNameFontSize=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setAxisNameFontSize(void 0===this.__xAxisNameFontSize?this.getAttributeDefaultValueInternal("XAxisNameFontSize"):this.__xAxisNameFontSize),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisNameFontSizeUnit=function(t){var e=A.ValueConverter.toFontSizeUnit(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisNameFontSizeUnit")),e!==this.__xAxisNameFontSizeUnit&&(this.__xAxisNameFontSizeUnit=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisNameFontSizeUnit"]),this.__processXAxisNameFontSizeUnit())},d.prototype.getXAxisNameFontSizeUnit=function(){return this.__xAxisNameFontSizeUnit},d.prototype.__processXAxisNameFontSizeUnit=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setAxisNameFontSizeUnit(void 0===this.__xAxisNameFontSizeUnit?this.getAttributeDefaultValueInternal("XAxisNameFontSizeUnit"):this.__xAxisNameFontSizeUnit),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisNameFontWeight=function(t){var e=A.ValueConverter.toFontWeight(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisNameFontWeight")),e!==this.__xAxisNameFontWeight&&(this.__xAxisNameFontWeight=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisNameFontWeight"]),this.__processXAxisNameFontWeight())},d.prototype.getXAxisNameFontWeight=function(){return this.__xAxisNameFontWeight},d.prototype.__processXAxisNameFontWeight=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setAxisNameFontWeight(void 0===this.__xAxisNameFontWeight?this.getAttributeDefaultValueInternal("XAxisNameFontWeight"):this.__xAxisNameFontWeight),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisNameFontColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisNameFontColor"));var i=this.__objectResolvers.get("xAxisNameFontColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("xAxisNameFontColor",{resolver:o,watchCallback:this.__onResolverForXAxisNameFontColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForXAxisNameFontColorWatchCallback)})},d.prototype.getXAxisNameFontColor=function(){return this.__xAxisNameFontColor},d.prototype.__processXAxisNameFontColor=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(A.isSolidColor(this.__xAxisNameFontColor)?t.setAxisNameFontColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisNameFontColor)):t.setAxisNameFontColor(null),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisDecimalPlaces=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisDecimalPlaces")),e!==this.__xAxisDecimalPlaces&&(this.__xAxisDecimalPlaces=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisDecimalPlaces"]),this.__processXAxisDecimalPlaces())},d.prototype.getXAxisDecimalPlaces=function(){return this.__xAxisDecimalPlaces},d.prototype.__processXAxisDecimalPlaces=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setDecimalPlaces(void 0===this.__xAxisDecimalPlaces?this.getAttributeDefaultValueInternal("XAxisDecimalPlaces"):this.__xAxisDecimalPlaces),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisUnit=function(t){var e=A.ValueConverter.toString(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisUnit")),e!==this.__xAxisUnit&&(this.__xAxisUnit=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisUnit"]),this.__processXAxisUnit())},d.prototype.getXAxisUnit=function(){return this.__xAxisUnit},d.prototype.__processXAxisUnit=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setUnit(void 0===this.__xAxisUnit?this.getAttributeDefaultValueInternal("XAxisUnit"):this.__xAxisUnit),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisAutoScaling=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisAutoScaling")),e!==this.__xAxisAutoScaling&&(this.__xAxisAutoScaling=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getXAxisAutoScaling"]),this.__processXAxisAutoScaling())},d.prototype.getXAxisAutoScaling=function(){return this.__xAxisAutoScaling},d.prototype.__processXAxisAutoScaling=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getXAxis();null!=t&&(t.setAutoScaling(void 0===this.__xAxisAutoScaling?this.getAttributeDefaultValueInternal("XAxisAutoScaling"):this.__xAxisAutoScaling),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setXAxisFormat=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("XAxisFormat"));var i=this.__objectResolvers.get("xAxisFormat");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("xAxisFormat",{resolver:o,watchCallback:this.__onResolverForXAxisFormatWatchCallback,watchDestroyer:o.watch(this.__onResolverForXAxisFormatWatchCallback)})},d.prototype.getXAxisFormat=function(){return this.__xAxisFormat},d.prototype.__processXAxisFormat=function(){if(this.__lineChart){var t=this.__lineChart.getXAxis();t&&(t.setXAxisCallback(this.__executeXAxisFormatFunction()),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.__executeXAxisFormatFunction=function(){var r=this;return function(t){if(void 0===r.__xAxisFormat||null===r.__xAxisFormat||!1===r.__xAxisFormat.active)return""!==r.__xAxisUnit&&null!==r.__xAxisUnit&&void 0!==r.__xAxisUnit?t+" "+r.__xAxisUnit:t.toString();var e=[t],i=null,o=new A.Function(r.__xAxisFormat);return o.executeEx(e,function(t){t.error===A.Errors.NONE?i=t.result:A.Log.error("[Source=Control, Module=TcHmi.Controls.Beckhoff.TcHmiLineChart, Id="+r.getId()+"] Execution of function="+r.__xAxisFormat.fn+" failed with error: "+A.Log.buildMessage(t.details))}),o.destroy(),i}},d.prototype.setYAxis=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("YAxis"));var i=this.__objectResolvers.get("yAxis");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("yAxis",{resolver:o,watchCallback:this.__onResolverForYAxisWatchCallback,watchDestroyer:o.watch(this.__onResolverForYAxisWatchCallback)})},d.prototype.getYAxis=function(){return this.__yAxis},d.prototype.__processYAxis=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&this.__drawLineChart()},d.prototype.setLineGraphDescriptions=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("LineGraphDescriptions"));var i=this.__objectResolvers.get("lineGraphDescriptions");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("lineGraphDescriptions",{resolver:o,watchCallback:this.__onResolverForLineGraphDescriptionsWatchCallback,watchDestroyer:o.watch(this.__onResolverForLineGraphDescriptionsWatchCallback)})},d.prototype.getLineGraphDescriptions=function(){return this.__lineGraphDescriptions},d.prototype.__processLineGraphDescriptions=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&this.__drawLineChart()},d.prototype.setLineGraphData=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("LineGraphData"));var i=this.__objectResolvers.get("lineGraphData");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("lineGraphData",{resolver:o,watchCallback:this.__onResolverForLineGraphDataWatchCallback,watchDestroyer:o.watch(this.__onResolverForLineGraphDataWatchCallback)})},d.prototype.getLineGraphData=function(){return this.__lineGraphData},d.prototype.__processLineGraphData=function(){null!==this.__lineChart&&void 0!==this.__lineChart&&this.__drawLineChart()},d.prototype.setShowGrid=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("ShowGrid")),e!==this.__showGrid&&(this.__showGrid=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getShowGrid"]),this.__processShowGrid())},d.prototype.getShowGrid=function(){return this.__showGrid},d.prototype.__processShowGrid=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){if(this.__showGrid){var t=this.__lineChart.getGrid();null==t&&(this.__lineChart.addGrid(),null!=(t=this.__lineChart.getGrid())&&(A.isSolidColor(this.__gridBackgroundColor)?t.setBackgroundColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__gridBackgroundColor)):t.setBackgroundColor(null),A.isSolidColor(this.__gridLineColor)?t.setLineColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__gridLineColor)):t.setLineColor(null),t.setLineWidth(void 0===this.__gridLineWidth?this.getAttributeDefaultValueInternal("GridLineWidth"):this.__gridLineWidth),t.setLineStyle(void 0===this.__gridLineStyle?this.getAttributeDefaultValueInternal("GridLineStyle"):this.__gridLineStyle),t.setShowHorizontalLines(void 0===this.__gridShowHorizontalLines?this.getAttributeDefaultValueInternal("GridShowHorizontalLines"):this.__gridShowHorizontalLines),t.setShowVerticalLines(void 0===this.__gridShowVerticalLines?this.getAttributeDefaultValueInternal("GridShowVerticalLines"):this.__gridShowVerticalLines)))}else this.__lineChart.deleteGrid();this.__lineChart.setHasChanged(!0),this.__lineChart.draw()}},d.prototype.setGridBackgroundColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("GridBackgroundColor"));var i=this.__objectResolvers.get("gridBackgroundColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("gridBackgroundColor",{resolver:o,watchCallback:this.__onResolverForGridBackgroundColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForGridBackgroundColorWatchCallback)})},d.prototype.getGridBackgroundColor=function(){return this.__gridBackgroundColor},d.prototype.__processGridBackgroundColor=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getGrid();null!=t&&(A.isSolidColor(this.__gridBackgroundColor)?t.setBackgroundColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__gridBackgroundColor)):t.setBackgroundColor(null),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setGridShowHorizontalLines=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("GridShowHorizontalLines")),e!==this.__gridShowHorizontalLines&&(this.__gridShowHorizontalLines=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getGridShowHorizontalLines"]),this.__processGridShowHorizontalLines())},d.prototype.getGridShowHorizontalLines=function(){return this.__gridShowHorizontalLines},d.prototype.__processGridShowHorizontalLines=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getGrid();null!=t&&(t.setShowHorizontalLines(void 0===this.__gridShowHorizontalLines?this.getAttributeDefaultValueInternal("GridShowHorizontalLines"):this.__gridShowHorizontalLines),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setGridShowVerticalLines=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("GridShowVerticalLines")),e!==this.__gridShowVerticalLines&&(this.__gridShowVerticalLines=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getGridShowVerticalLines"]),this.__processGridShowVerticalLines())},d.prototype.getGridShowVerticalLines=function(){return this.__gridShowVerticalLines},d.prototype.__processGridShowVerticalLines=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getGrid();null!=t&&(t.setShowVerticalLines(void 0===this.__gridShowVerticalLines?this.getAttributeDefaultValueInternal("GridShowVerticalLines"):this.__gridShowVerticalLines),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setGridLineWidth=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("GridLineWidth")),e!==this.__gridLineWidth&&(this.__gridLineWidth=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getGridLineWidth"]),this.__processGridLineWidth())},d.prototype.getGridLineWidth=function(){return this.__gridLineWidth},d.prototype.__processGridLineWidth=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getGrid();null!=t&&(t.setLineWidth(void 0===this.__gridLineWidth?this.getAttributeDefaultValueInternal("GridLineWidth"):this.__gridLineWidth),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setGridLineStyle=function(t){var e=A.ValueConverter.toString(t);null===e&&(e=this.getAttributeDefaultValueInternal("GridLineStyle")),e!==this.__gridLineStyle&&(this.__gridLineStyle=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getGridLineStyle"]),this.__processGridLineStyle())},d.prototype.getGridLineStyle=function(){return this.__gridLineStyle},d.prototype.__processGridLineStyle=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getGrid();null!=t&&(t.setLineStyle(void 0===this.__gridLineStyle?this.getAttributeDefaultValueInternal("GridLineStyle"):this.__gridLineStyle),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setGridLineColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("GridLineColor"));var i=this.__objectResolvers.get("gridLineColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("gridLineColor",{resolver:o,watchCallback:this.__onResolverForGridLineColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForGridLineColorWatchCallback)})},d.prototype.getGridLineColor=function(){return this.__gridLineColor},d.prototype.__processGridLineColor=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getGrid();null!=t&&(A.isSolidColor(this.__gridLineColor)?t.setLineColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__gridLineColor)):t.setLineColor(null),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setSubgridShowHorizontalLines=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("SubgridShowHorizontalLines")),e!==this.__subgridShowHorizontalLines&&(this.__subgridShowHorizontalLines=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getSubgridShowHorizontalLines"]),this.__processSubgridShowHorizontalLines())},d.prototype.getSubgridShowHorizontalLines=function(){return this.__subgridShowHorizontalLines},d.prototype.__processSubgridShowHorizontalLines=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getSubgrid();null!=t&&(t.setShowHorizontalLines(void 0===this.__subgridShowHorizontalLines?this.getAttributeDefaultValueInternal("SubgridShowHorizontalLines"):this.__subgridShowHorizontalLines),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setSubgridShowVerticalLines=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("SubgridShowVerticalLines")),e!==this.__subgridShowVerticalLines&&(this.__subgridShowVerticalLines=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getSubgridShowVerticalLines"]),this.__processSubgridShowVerticalLines())},d.prototype.getSubgridShowVerticalLines=function(){return this.__subgridShowVerticalLines},d.prototype.__processSubgridShowVerticalLines=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getSubgrid();null!=t&&(t.setShowVerticalLines(void 0===this.__subgridShowVerticalLines?this.getAttributeDefaultValueInternal("SubgridShowVerticalLines"):this.__subgridShowVerticalLines),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setSubgridLineWidth=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("SubgridLineWidth")),e!==this.__subgridLineWidth&&(this.__subgridLineWidth=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getSubgridLineWidth"]),this.__processSubgridLineWidth())},d.prototype.getSubgridLineWidth=function(){return this.__subgridLineWidth},d.prototype.__processSubgridLineWidth=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getSubgrid();null!=t&&(t.setLineWidth(void 0===this.__subgridLineWidth?this.getAttributeDefaultValueInternal("SubgridLineWidth"):this.__subgridLineWidth),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setSubgridLineStyle=function(t){var e=A.ValueConverter.toString(t);null===e&&(e=this.getAttributeDefaultValueInternal("SubgridLineStyle")),e!==this.__subgridLineStyle&&(this.__subgridLineStyle=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getSubgridLineStyle"]),this.__processSubgridLineStyle())},d.prototype.getSubgridLineStyle=function(){return this.__subgridLineStyle},d.prototype.__processSubgridLineStyle=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getSubgrid();null!=t&&(t.setLineStyle(void 0===this.__subgridLineStyle?this.getAttributeDefaultValueInternal("SubgridLineStyle"):this.__subgridLineStyle),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setSubgridLineColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("SubgridLineColor"));var i=this.__objectResolvers.get("subgridLineColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("subgridLineColor",{resolver:o,watchCallback:this.__onResolverForSubgridLineColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForSubgridLineColorWatchCallback)})},d.prototype.getSubgridLineColor=function(){return this.__subgridLineColor},d.prototype.__processSubgridLineColor=function(){if(null!==this.__lineChart&&void 0!==this.__lineChart){var t=this.__lineChart.getSubgrid();null!=t&&(A.isSolidColor(this.__subgridLineColor)?t.setLineColor(A.StyleProvider.resolveSolidColorAsCssValue(this.__subgridLineColor)):t.setLineColor(null),this.__lineChart.setHasChanged(!0),this.__lineChart.draw())}},d.prototype.setShowTooltip=function(t){var e=A.ValueConverter.toBoolean(t);null===e&&(e=this.getAttributeDefaultValueInternal("YAxisWidth")),e!==this.__showTooltip&&(this.__showTooltip=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getShowTooltip"]),this.__processShowTooltip())},d.prototype.getShowTooltip=function(){return this.__showTooltip},d.prototype.__processShowTooltip=function(){},d.prototype.setTooltipFormat=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("TooltipFormat"));var i=this.__objectResolvers.get("tooltipFormat");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("tooltipFormat",{resolver:o,watchCallback:this.__onResolverForTooltipFormatWatchCallback,watchDestroyer:o.watch(this.__onResolverForTooltipFormatWatchCallback)})},d.prototype.getTooltipFormat=function(){return this.__tooltipFormat},d.prototype.__processTooltipFormat=function(){if(this.__tooltipInformation.show){var t=this.__executeTooltipFormatFunction(this.__tooltipInformation.point.x,this.__tooltipInformation.point.y);this.__elementTooltipText[0].innerHTML=t}},d.prototype.__executeTooltipFormatFunction=function(t,e){if(void 0===this.__tooltipFormat||null===this.__tooltipFormat||!1===this.__tooltipFormat.active)return"x: "+t+"<br/>y: "+e;var i=[t,e],o=null,r=new A.Function(this.__tooltipFormat),l=this;return r.executeEx(i,function(t){t.error===A.Errors.NONE?o=t.result:A.Log.error("[Source=Control, Module=TcHmi.Controls.Beckhoff.TcHmiLineChart, Id="+l.getId()+"] Execution of function="+l.__tooltipFormat.fn+" failed with error: "+A.Log.buildMessage(t.details))}),r.destroy(),o},d.prototype.setTooltipFontFamily=function(t){var e=A.ValueConverter.toFontFamily(t);null===e&&(e=this.getAttributeDefaultValueInternal("TooltipFontFamily")),e!==this.__tooltipFontFamily&&(this.__tooltipFontFamily=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getTooltipFontFamily"]),this.__processTooltipFontFamily())},d.prototype.getTooltipFontFamily=function(){return this.__tooltipFontFamily},d.prototype.__processTooltipFontFamily=function(){A.StyleProvider.setSimpleElementStyle(this.__elementTooltip,{"font-family":this.__tooltipFontFamily})},d.prototype.setTooltipFontSize=function(t){var e=A.ValueConverter.toNumber(t);null===e&&(e=this.getAttributeDefaultValueInternal("TooltipFontSize")),e!==this.__tooltipFontSize&&(this.__tooltipFontSize=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getTooltipFontSize"]),this.__processTooltipFontSize())},d.prototype.getTooltipFontSize=function(){return this.__tooltipFontSize},d.prototype.__processTooltipFontSize=function(){A.StyleProvider.setSimpleElementStyle(this.__elementTooltip,{"font-size":(void 0===this.__tooltipFontSize?this.getAttributeDefaultValueInternal("TooltipFontSize"):this.__tooltipFontSize)+(void 0===this.__tooltipFontSizeUnit?this.getAttributeDefaultValueInternal("TooltipFontSizeUnit"):this.__tooltipFontSizeUnit)})},d.prototype.setTooltipFontSizeUnit=function(t){var e=A.ValueConverter.toFontSizeUnit(t);null===e&&(e=this.getAttributeDefaultValueInternal("TooltipFontSizeUnit")),e!==this.__tooltipFontSizeUnit&&(this.__tooltipFontSizeUnit=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getTooltipFontSizeUnit"]),this.__processTooltipFontSizeUnit())},d.prototype.getTooltipFontSizeUnit=function(){return this.__tooltipFontSizeUnit},d.prototype.__processTooltipFontSizeUnit=function(){return this.__processTooltipFontSize()},d.prototype.setTooltipFontWeight=function(t){var e=A.ValueConverter.toFontWeight(t);null===e&&(e=this.getAttributeDefaultValueInternal("TooltipFontWeight")),e!==this.__tooltipFontWeight&&(this.__tooltipFontWeight=e,A.EventProvider.raise(this.__id+".onFunctionResultChanged",["getTooltipFontWeight"]),this.__processTooltipFontWeight())},d.prototype.getTooltipFontWeight=function(){return this.__tooltipFontWeight},d.prototype.__processTooltipFontWeight=function(){A.StyleProvider.setSimpleElementStyle(this.__elementTooltip,{"font-weight":this.__tooltipFontWeight})},d.prototype.setTooltipFontColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("TooltipFontColor"));var i=this.__objectResolvers.get("tooltipFontColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("tooltipFontColor",{resolver:o,watchCallback:this.__onResolverForTooltipFontColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForTooltipFontColorWatchCallback)})},d.prototype.getTooltipFontColor=function(){return this.__tooltipFontColor},d.prototype.__processTooltipFontColor=function(){var t=null,e=this.__tooltipInformation.lineGraph;null!==e&&(t=e.getLineColor()),A.isSolidColor(this.__tooltipFontColor)&&(t=A.StyleProvider.resolveSolidColorAsCssValue(this.__tooltipFontColor)),null!=t&&this.__elementTooltipText.css("color",t)},d.prototype.setTooltipBackgroundColor=function(t){var e=A.ValueConverter.toObject(t);null===e&&(e=this.getAttributeDefaultValueInternal("TooltipBackgroundColor"));var i=this.__objectResolvers.get("tooltipBackgroundColor");i&&(i.watchDestroyer&&i.watchDestroyer(),i.resolver.destroy());var o=new A.Symbol.ObjectResolver(e);this.__objectResolvers.set("tooltipBackgroundColor",{resolver:o,watchCallback:this.__onResolverForTooltipBackgroundColorWatchCallback,watchDestroyer:o.watch(this.__onResolverForTooltipBackgroundColorWatchCallback)})},d.prototype.getTooltipBackgroundColor=function(){return this.__tooltipBackgroundColor},d.prototype.__processTooltipBackgroundColor=function(){A.StyleProvider.processBackgroundColor(this.__elementTooltipText,this.__tooltipBackgroundColor),A.StyleProvider.processBackgroundColor(this.__elementTooltipArrow,this.__tooltipBackgroundColor)},n=d,e.TcHmiLineChart=n,i=n=e.TcHmiLineChart||(e.TcHmiLineChart={}),(o=i.Position||(i.Position={}))[o.Left=0]="Left",o[o.Right=1]="Right",(l=i.LineStyle||(i.LineStyle={}))[l.Dotted=0]="Dotted",l[l.Dashed=1]="Dashed",l[l.Solid=2]="Solid",t.register("tchmi-line-chart",A.Controls.Beckhoff.TcHmiLineChart,"Beckhoff/TcHmiLineChart/","Beckhoff/TcHmiLineChart/Template.html")}(TcHmi=TcHmi||{});