var __runInitializers=this&&this.__runInitializers||function(thisArg,initializers,value){for(var useValue=arguments.length>2,i=0;i=0;i--){var context={};for(var p in contextIn)context[p]="access"===p?{}:contextIn[p];for(var p in contextIn.access)context.access[p]=contextIn.access[p];context.addInitializer=function(f){if(done)throw new TypeError("Cannot add initializers after decoration has completed");extraInitializers.push(accept(f||null))};var result=(0,decorators[i])("accessor"===kind?{get:descriptor.get,set:descriptor.set}:descriptor[key],context);if("accessor"===kind){if(void 0===result)continue;if(null===result||"object"!=typeof result)throw new TypeError("Object expected");(_=accept(result.get))&&(descriptor.get=_),(_=accept(result.set))&&(descriptor.set=_),(_=accept(result.init))&&initializers.unshift(_)}else(_=accept(result))&&("field"===kind?initializers.unshift(_):descriptor[key]=_)}target&&Object.defineProperty(target,contextIn.name,descriptor),done=!0};import{TcHmiControl}from"Beckhoff.TwinCAT.HMI.Framework/index.esm.js";export var Position;!function(Position){Position[Position.Left=0]="Left",Position[Position.Right=1]="Right"}(Position||(Position={}));export var LineStyle;!function(LineStyle){LineStyle[LineStyle.Dotted=0]="Dotted",LineStyle[LineStyle.Dashed=1]="Dashed",LineStyle[LineStyle.Solid=2]="Solid"}(LineStyle||(LineStyle={}));export var Orientation;!function(Orientation){Orientation[Orientation.Horizontal=0]="Horizontal",Orientation[Orientation.Vertical=1]="Vertical"}(Orientation||(Orientation={}));export var ValueUnit;!function(ValueUnit){ValueUnit.Value="Value",ValueUnit["%"]="%"}(ValueUnit||(ValueUnit={}));let TcHmiBarChart=(()=>{var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t;let ___rebuild_decorators,___onCheckboxMouseDown_decorators,___onCheckboxTouchStart_decorators,___onResolverForSectionsBackgroundColorWatchCallback_decorators,___onResolverForBarGraphDescriptionsWatchCallback_decorators,___onResolverForBarGraphColorsWatchCallback_decorators,___onResolverForBarGraphDataWatchCallback_decorators,___onResolverForReferenceLinesWatchCallback_decorators,___onResolverForXLabelFontColorWatchCallback_decorators,___onResolverForXAxisColorWatchCallback_decorators,___onResolverForXAxisFormatWatchCallback_decorators,___executeXAxisFormatFunction_decorators,___onResolverForXAxisNameFontColorWatchCallback_decorators,___onResolverForYLabelFontColorWatchCallback_decorators,___onResolverForYAxisColorWatchCallback_decorators,___onResolverForYAxisNameFontColorWatchCallback_decorators,___onResolverForYAxisFormatWatchCallback_decorators,___executeYAxisFormatFunction_decorators,___onResolverForGridBackgroundColorWatchCallback_decorators,___onResolverForGridLineColorWatchCallback_decorators,___onResolverForSubgridLineColorWatchCallback_decorators,_classSuper=TcHmiControl.Control,_instanceExtraInitializers=[];return class TcHmiBarChart extends _classSuper{static{const _metadata="function"==typeof Symbol&&Symbol.metadata?Object.create(_classSuper[Symbol.metadata]??null):void 0;___rebuild_decorators=[TcHmi.EventHandler()],___onCheckboxMouseDown_decorators=[TcHmi.EventHandler({checkIsEnabled:!0})],___onCheckboxTouchStart_decorators=[TcHmi.EventHandler({checkIsEnabled:!0})],___onResolverForSectionsBackgroundColorWatchCallback_decorators=[(_a=TcHmi).CallbackMethod.bind(_a)],___onResolverForBarGraphDescriptionsWatchCallback_decorators=[(_b=TcHmi).CallbackMethod.bind(_b)],___onResolverForBarGraphColorsWatchCallback_decorators=[(_c=TcHmi).CallbackMethod.bind(_c)],___onResolverForBarGraphDataWatchCallback_decorators=[(_d=TcHmi).CallbackMethod.bind(_d)],___onResolverForReferenceLinesWatchCallback_decorators=[(_e=TcHmi).CallbackMethod.bind(_e)],___onResolverForXLabelFontColorWatchCallback_decorators=[(_f=TcHmi).CallbackMethod.bind(_f)],___onResolverForXAxisColorWatchCallback_decorators=[(_g=TcHmi).CallbackMethod.bind(_g)],___onResolverForXAxisFormatWatchCallback_decorators=[(_h=TcHmi).CallbackMethod.bind(_h)],___executeXAxisFormatFunction_decorators=[(_j=TcHmi).CallbackMethod.bind(_j)],___onResolverForXAxisNameFontColorWatchCallback_decorators=[(_k=TcHmi).CallbackMethod.bind(_k)],___onResolverForYLabelFontColorWatchCallback_decorators=[(_l=TcHmi).CallbackMethod.bind(_l)],___onResolverForYAxisColorWatchCallback_decorators=[(_m=TcHmi).CallbackMethod.bind(_m)],___onResolverForYAxisNameFontColorWatchCallback_decorators=[(_o=TcHmi).CallbackMethod.bind(_o)],___onResolverForYAxisFormatWatchCallback_decorators=[(_p=TcHmi).CallbackMethod.bind(_p)],___executeYAxisFormatFunction_decorators=[(_q=TcHmi).CallbackMethod.bind(_q)],___onResolverForGridBackgroundColorWatchCallback_decorators=[(_r=TcHmi).CallbackMethod.bind(_r)],___onResolverForGridLineColorWatchCallback_decorators=[(_s=TcHmi).CallbackMethod.bind(_s)],___onResolverForSubgridLineColorWatchCallback_decorators=[(_t=TcHmi).CallbackMethod.bind(_t)],__esDecorate(this,null,___rebuild_decorators,{kind:"method",name:"__rebuild",static:!1,private:!1,access:{has:obj=>"__rebuild"in obj,get:obj=>obj.__rebuild},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onCheckboxMouseDown_decorators,{kind:"method",name:"__onCheckboxMouseDown",static:!1,private:!1,access:{has:obj=>"__onCheckboxMouseDown"in obj,get:obj=>obj.__onCheckboxMouseDown},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onCheckboxTouchStart_decorators,{kind:"method",name:"__onCheckboxTouchStart",static:!1,private:!1,access:{has:obj=>"__onCheckboxTouchStart"in obj,get:obj=>obj.__onCheckboxTouchStart},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForSectionsBackgroundColorWatchCallback_decorators,{kind:"method",name:"__onResolverForSectionsBackgroundColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForSectionsBackgroundColorWatchCallback"in obj,get:obj=>obj.__onResolverForSectionsBackgroundColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForBarGraphDescriptionsWatchCallback_decorators,{kind:"method",name:"__onResolverForBarGraphDescriptionsWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForBarGraphDescriptionsWatchCallback"in obj,get:obj=>obj.__onResolverForBarGraphDescriptionsWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForBarGraphColorsWatchCallback_decorators,{kind:"method",name:"__onResolverForBarGraphColorsWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForBarGraphColorsWatchCallback"in obj,get:obj=>obj.__onResolverForBarGraphColorsWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForBarGraphDataWatchCallback_decorators,{kind:"method",name:"__onResolverForBarGraphDataWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForBarGraphDataWatchCallback"in obj,get:obj=>obj.__onResolverForBarGraphDataWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForReferenceLinesWatchCallback_decorators,{kind:"method",name:"__onResolverForReferenceLinesWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForReferenceLinesWatchCallback"in obj,get:obj=>obj.__onResolverForReferenceLinesWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForXLabelFontColorWatchCallback_decorators,{kind:"method",name:"__onResolverForXLabelFontColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForXLabelFontColorWatchCallback"in obj,get:obj=>obj.__onResolverForXLabelFontColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForXAxisColorWatchCallback_decorators,{kind:"method",name:"__onResolverForXAxisColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForXAxisColorWatchCallback"in obj,get:obj=>obj.__onResolverForXAxisColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForXAxisFormatWatchCallback_decorators,{kind:"method",name:"__onResolverForXAxisFormatWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForXAxisFormatWatchCallback"in obj,get:obj=>obj.__onResolverForXAxisFormatWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___executeXAxisFormatFunction_decorators,{kind:"method",name:"__executeXAxisFormatFunction",static:!1,private:!1,access:{has:obj=>"__executeXAxisFormatFunction"in obj,get:obj=>obj.__executeXAxisFormatFunction},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForXAxisNameFontColorWatchCallback_decorators,{kind:"method",name:"__onResolverForXAxisNameFontColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForXAxisNameFontColorWatchCallback"in obj,get:obj=>obj.__onResolverForXAxisNameFontColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForYLabelFontColorWatchCallback_decorators,{kind:"method",name:"__onResolverForYLabelFontColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForYLabelFontColorWatchCallback"in obj,get:obj=>obj.__onResolverForYLabelFontColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForYAxisColorWatchCallback_decorators,{kind:"method",name:"__onResolverForYAxisColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForYAxisColorWatchCallback"in obj,get:obj=>obj.__onResolverForYAxisColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForYAxisNameFontColorWatchCallback_decorators,{kind:"method",name:"__onResolverForYAxisNameFontColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForYAxisNameFontColorWatchCallback"in obj,get:obj=>obj.__onResolverForYAxisNameFontColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForYAxisFormatWatchCallback_decorators,{kind:"method",name:"__onResolverForYAxisFormatWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForYAxisFormatWatchCallback"in obj,get:obj=>obj.__onResolverForYAxisFormatWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___executeYAxisFormatFunction_decorators,{kind:"method",name:"__executeYAxisFormatFunction",static:!1,private:!1,access:{has:obj=>"__executeYAxisFormatFunction"in obj,get:obj=>obj.__executeYAxisFormatFunction},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForGridBackgroundColorWatchCallback_decorators,{kind:"method",name:"__onResolverForGridBackgroundColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForGridBackgroundColorWatchCallback"in obj,get:obj=>obj.__onResolverForGridBackgroundColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForGridLineColorWatchCallback_decorators,{kind:"method",name:"__onResolverForGridLineColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForGridLineColorWatchCallback"in obj,get:obj=>obj.__onResolverForGridLineColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForSubgridLineColorWatchCallback_decorators,{kind:"method",name:"__onResolverForSubgridLineColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForSubgridLineColorWatchCallback"in obj,get:obj=>obj.__onResolverForSubgridLineColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),_metadata&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:_metadata})}static#tchmiFQN="TcHmi.Controls.Beckhoff."+this.name;constructor(element,pcElement,attrs){super(element,pcElement,attrs)}__elementTemplateRoot=__runInitializers(this,_instanceExtraInitializers);__elementChart;__elementLegend;__barChart=null;__sectionsBackgroundColor;__showXAxis;__xShowLabels;__xMainTickMinValue;__xMainTickMaxValue;__xMainTickSteps;__xLabelFontFamily;__xLabelFontSize;__xLabelFontWeight;__xLabelFontColor;__xAxisWidth;__xAxisColor;__xAxisAutoScaling;__xAxisDecimalPlaces;__xAxisFormat;__showXAxisName;__xAxisName;__xAxisNameFontFamily;__xAxisNameFontSize;__xAxisNameFontWeight;__xAxisNameFontColor;__xAxisUnit;__showYAxis;__yPosition;__yLogarithmicScale;__yAxisLabeling;__yMainTickMinValue;__yMainTickMaxValue;__yMainTickSteps;__showYSubTicks;__ySubTickSteps;__yShowLabels;__yLabelFontFamily;__yLabelFontSize;__yLabelFontWeight;__yLabelFontColor;__yAxisWidth;__yAxisColor;__showYAxisName;__yAxisName;__yAxisNameFontFamily;__yAxisNameFontSize;__yAxisNameFontWeight;__yAxisNameFontColor;__yAxisAutoScaling;__yAxisDecimalPlaces;__yAxisUnit;__yAxisFormat;__barGraphDescriptions;__barGraphColors;__barGraphColorArray;__barGraphDescriptionsInternal;__barGraphDescriptionsSelected;__barGraphWidth;__barGraphData;__barGraphDataArray;__barGraphDataSelected;__barGraphArrangement;__referenceLines;__referenceLinesPosition;__showGrid;__gridBackgroundColor;__gridShowHorizontalLines;__gridShowVerticalLines;__gridLineWidth;__gridLineStyle;__gridLineColor;__subgridShowHorizontalLines;__subgridLineWidth;__subgridLineStyle;__subgridLineColor;__legendFontFamily;__legendFontSize;__legendFontStyle;__legendFontWeight;__showLegend;__storage;__activeLegendElements;__previnit(){if(this.__elementTemplateRoot=this.__element.find(".TcHmi_Controls_Beckhoff_TcHmiBarChart-template"),this.__elementChart=this.__elementTemplateRoot.find(".TcHmi_Controls_Beckhoff_TcHmiBarChart-template-chart"),this.__elementLegend=this.__elementTemplateRoot.find(".TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend"),0!==this.__elementTemplateRoot.length&&0!==this.__elementChart.length&&0!==this.__elementLegend.length||(this.__elementTemplateRoot=this.__element.find(".tchmi-bar-chart-template")),0===this.__elementTemplateRoot.length)throw new Error("Invalid Template.html");if("undefined"==typeof TcHmiCharting)throw new Error("Missing needed TcHmiCharting library");super.__previnit()}__init(){super.__init(),this.__storage=new TcHmi.LocalStorage(this,{activeLegendElements:this.getCurrentGraphLength()}),this.__activeLegendElements=this.__storage.get("activeLegendElements"),this.__destroyOnDestroy.push(TcHmi.EventProvider.registerDomEvent(this.__elementLegend,"mousedown",this.__onCheckboxMouseDown),TcHmi.EventProvider.registerDomEvent(this.__elementLegend,"touchstart",this.__onCheckboxTouchStart)),this.__keepAlive||(this.__barGraphDescriptionsInternal=this.__createInternalColorArray()),this.__createLegend(),this.__drawBarChart()}__attach(){super.__attach(),this.__destroyOnDetach.push(TcHmi.EventProvider.register(this.__id+".onResized",this.__rebuild),TcHmi.EventProvider.register("onThemeDataChanged",this.__rebuild))}__detach(){super.__detach()}destroy(){this.__keepAlive||super.destroy()}__rebuild(_event,_control){this.__drawBarChart()}__drawBarChart(){let innerWidth=this.__elementChart[0].clientWidth,innerHeight=this.__elementChart[0].clientHeight;null!==this.__barChart?this.__barChart.clear(innerWidth,innerHeight):this.__barChart=new TcHmiCharting.BarChart(this.__elementChart,innerWidth,innerHeight,TcHmi.ValueConverter.toEnum(this.__referenceLinesPosition,TcHmiCharting.IChart.Position,TcHmiCharting.IChart.Position.Background)),this.__barChart.addXAxis();let xAxis=this.__barChart.getXAxis();null!==xAxis&&(xAxis.setShowAxis(void 0===this.__showXAxis?this.getAttributeDefaultValueInternal("ShowXAxis"):this.__showXAxis),xAxis.setXAxisCallback(this.__executeXAxisFormatFunction),xAxis.setShowSubTicks(!1),xAxis.setAutoScaling(void 0===this.__xAxisAutoScaling?this.getAttributeDefaultValueInternal("XAxisAutoScaling"):this.__xAxisAutoScaling),TcHmi.isSolidColor(this.__xAxisColor)?xAxis.setAxisColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisColor)):xAxis.setAxisColor(null),xAxis.setDecimalPlaces(void 0===this.__xAxisDecimalPlaces?this.getAttributeDefaultValueInternal("XAxisDecimalPlaces"):this.__xAxisDecimalPlaces),xAxis.setAxisWidth(void 0===this.__xAxisWidth?this.getAttributeDefaultValueInternal("XAxisWidth"):this.__xAxisWidth),TcHmi.isSolidColor(this.__xLabelFontColor)?xAxis.setLabelFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__xLabelFontColor)):xAxis.setLabelFontColor(null),xAxis.setLabelFontFamily(this.__xLabelFontFamily),xAxis.setLabelFontSize(void 0===this.__xLabelFontSize?this.getAttributeDefaultValueInternal("XLabelFontSize"):this.__xLabelFontSize),xAxis.setLabelFontWeight(void 0===this.__xLabelFontWeight?this.getAttributeDefaultValueInternal("XLabelFontWeight"):this.__xLabelFontWeight),xAxis.setMainTickStartValue(void 0===this.__xMainTickMinValue?this.getAttributeDefaultValueInternal("XMainTickMinValue"):this.__xMainTickMinValue),xAxis.setMainTickSteps(void 0===this.__xMainTickSteps?this.getAttributeDefaultValueInternal("XMainTickSteps"):this.__xMainTickSteps),xAxis.setMainTickEndValue(void 0===this.__xMainTickMaxValue?this.getAttributeDefaultValueInternal("XMainTickMaxValue"):this.__xMainTickMaxValue),xAxis.setShowLabels(void 0===this.__xShowLabels?this.getAttributeDefaultValueInternal("XShowLabels"):this.__xShowLabels),xAxis.setShowAxisName(void 0===this.__showXAxisName?this.getAttributeDefaultValueInternal("ShowXAxisName"):this.__showXAxisName),xAxis.setUnit(void 0===this.__xAxisUnit?this.getAttributeDefaultValueInternal("XAxisUnit"):this.__xAxisUnit),xAxis.setAxisName(TcHmi.ValueConverter.toString(this.__xAxisName)),TcHmi.isSolidColor(this.__xAxisNameFontColor)?xAxis.setAxisNameFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisNameFontColor)):xAxis.setAxisNameFontColor(null),xAxis.setAxisNameFontFamily(this.__xAxisNameFontFamily),xAxis.setAxisNameFontSize(void 0===this.__xAxisNameFontSize?this.getAttributeDefaultValueInternal("XAxisNameFontSize"):this.__xAxisNameFontSize),xAxis.setAxisNameFontWeight(void 0===this.__xAxisNameFontWeight?this.getAttributeDefaultValueInternal("XAxisNameFontWeight"):this.__xAxisNameFontWeight)),this.__barChart.addYAxis(TcHmiBarChart.Position[this.__yPosition??this.getAttributeDefaultValueInternal("YPosition")]);let yAxis=this.__barChart.getYAxisAtPosition(0);if(yAxis.setShowAxis(void 0===this.__showYAxis?this.getAttributeDefaultValueInternal("ShowYAxis"):this.__showYAxis),null!==this.__showYAxis&&(yAxis.setAutoScaling(void 0===this.__yAxisAutoScaling?this.getAttributeDefaultValueInternal("YAxisAutoScaling"):this.__yAxisAutoScaling),yAxis.setLogarithmicScale(void 0===this.__yLogarithmicScale?this.getAttributeDefaultValueInternal("YLogarithmicScale"):this.__yLogarithmicScale),yAxis.setAxisLabeling(TcHmiCharting.IAxis.AxisLabeling[this.__yAxisLabeling??this.getAttributeDefaultValueInternal("YAxisLabeling")]),TcHmi.isSolidColor(this.__yAxisColor)?yAxis.setAxisColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__yAxisColor)):yAxis.setAxisColor(null),yAxis.setAxisName(void 0===this.__yAxisName?this.getAttributeDefaultValueInternal("YAxisName"):this.__yAxisName),TcHmi.isSolidColor(this.__yAxisNameFontColor)?yAxis.setAxisNameFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__yAxisNameFontColor)):yAxis.setAxisNameFontColor(null),yAxis.setAxisNameFontFamily(this.__yAxisNameFontFamily),yAxis.setAxisNameFontSize(void 0===this.__yAxisNameFontSize?this.getAttributeDefaultValueInternal("YAxisNameFontSize"):this.__yAxisNameFontSize),yAxis.setAxisNameFontWeight(void 0===this.__yAxisNameFontWeight?this.getAttributeDefaultValueInternal("YAxisNameFontWeight"):this.__yAxisNameFontWeight),yAxis.setDecimalPlaces(void 0===this.__yAxisDecimalPlaces?this.getAttributeDefaultValueInternal("YAxisDecimalPlaces"):this.__yAxisDecimalPlaces),TcHmi.isSolidColor(this.__yLabelFontColor)?yAxis.setLabelFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__yLabelFontColor)):yAxis.setLabelFontColor(null),yAxis.setMainTickStartValue(void 0===this.__yMainTickMinValue?this.getAttributeDefaultValueInternal("YMainTickMinValue"):this.__yMainTickMinValue),yAxis.setMainTickEndValue(void 0===this.__yMainTickMaxValue?this.getAttributeDefaultValueInternal("YMainTickMaxValue"):this.__yMainTickMaxValue),yAxis.setShowLabels(void 0===this.__yShowLabels?this.getAttributeDefaultValueInternal("YShowLabels"):this.__yShowLabels),yAxis.setShowAxisName(void 0===this.__showYAxisName?this.getAttributeDefaultValueInternal("ShowYAxisName"):this.__showYAxisName),yAxis.setUnit(void 0===this.__yAxisUnit?this.getAttributeDefaultValueInternal("YAxisUnit"):this.__yAxisUnit),yAxis.setAxisWidth(void 0===this.__yAxisWidth?this.getAttributeDefaultValueInternal("YAxisWidth"):this.__yAxisWidth),yAxis.setLabelFontFamily(this.__yLabelFontFamily),yAxis.setLabelFontSize(void 0===this.__yLabelFontSize?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSize),yAxis.setLabelFontWeight(void 0===this.__yLabelFontWeight?this.getAttributeDefaultValueInternal("YLabelFontWeight"):this.__yLabelFontWeight),yAxis.setMainTickSteps(void 0===this.__yMainTickSteps?this.getAttributeDefaultValueInternal("YMainTickSteps"):this.__yMainTickSteps),yAxis.setSubTickSteps(void 0===this.__ySubTickSteps?this.getAttributeDefaultValueInternal("YSubTickSteps"):this.__ySubTickSteps),yAxis.setShowSubTicks(void 0===this.__showYSubTicks?this.getAttributeDefaultValueInternal("ShowYSubTicks"):this.__showYSubTicks),yAxis.setYAxisCallback(value=>this.__executeYAxisFormatFunction(this.__yAxisFormat??void 0,value))),this.__showGrid){this.__barChart.addGrid();let grid=this.__barChart.getGrid();null!==grid&&(grid.setShowHorizontalLines(void 0===this.__gridShowHorizontalLines?this.getAttributeDefaultValueInternal("GridShowHorizontalLines"):this.__gridShowHorizontalLines),grid.setShowVerticalLines(void 0===this.__gridShowVerticalLines?this.getAttributeDefaultValueInternal("GridShowVerticalLines"):this.__gridShowVerticalLines),grid.setLineWidth(void 0===this.__gridLineWidth?this.getAttributeDefaultValueInternal("GridLineWidth"):this.__gridLineWidth),grid.setLineStyle(this.__gridLineStyle??this.getAttributeDefaultValueInternal("GridLineStyle")),TcHmi.isSolidColor(this.__gridLineColor)?grid.setLineColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__gridLineColor)):grid.setLineColor(null),TcHmi.isSolidColor(this.__gridBackgroundColor)?grid.setBackgroundColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__gridBackgroundColor)):grid.setBackgroundColor(null))}this.__barChart.addSubgrid();let subgrid=this.__barChart.getSubgrid();if(null!==subgrid&&(subgrid.setShowHorizontalLines(void 0===this.__subgridShowHorizontalLines?this.getAttributeDefaultValueInternal("SubgridShowHorizontalLines"):this.__subgridShowHorizontalLines),subgrid.setShowVerticalLines(!1),subgrid.setLineWidth(void 0===this.__subgridLineWidth?this.getAttributeDefaultValueInternal("SubgridLineWidth"):this.__subgridLineWidth),subgrid.setLineStyle(this.__subgridLineStyle??this.getAttributeDefaultValueInternal("SubgridLineStyle")),TcHmi.isSolidColor(this.__subgridLineColor)?subgrid.setLineColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__subgridLineColor)):subgrid.setLineColor(null)),this.__referenceLines)for(let i=0,ii=this.__referenceLines.length;i0&&this.__barGraphDataArray.length>0){for(let i=0,ii=Math.min(this.__barGraphDataArray.length,barGraphDescriptions.length);i0&&(checkboxElem=checkboxList[0])}else if(childElement.classList.contains("TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-color-element")&&childElement&&childElement.parentElement){let checkboxList=childElement.parentElement.getElementsByClassName("TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox");checkboxList&&checkboxList.length>0&&(checkboxElem=checkboxList[0])}if(checkboxElem){let checked=!checkboxElem.checked,id=checkboxElem.id,elementIndex=parseInt(id.replace(this.__id+"Element",""),10);if(!TcHmi.Access.checkAccess(this,"operate"))return void(checkboxElem.checked=checked);this.__barGraphDataSelected=[],this.__barGraphDescriptionsSelected=[];let children=this.__elementLegend.children(),activeLegendElements=[];for(let i=0,ii=children.length;i0){let checkoboxElement=checkboxList[0],id=checkoboxElement.id,checked=!checkoboxElement.checked,elementIndex=parseInt(id.replace(this.__id+"Element",""),10);if(!TcHmi.Access.checkAccess(this,"operate"))return void(checkoboxElement.checked=checked);this.__barGraphDataSelected=[],this.__barGraphDescriptionsSelected=[];let activeLegendElements=[],children=this.__elementLegend.children();for(let i=0,ii=children.length;i=this.__barGraphDataArray.length&&-1===this.__barGraphDescriptions.findIndex(x=>!x.barColor))for(const barGraphDescription of this.__barGraphDescriptions){let cloneBarGraphDescription=tchmi_clone_object(barGraphDescription);if(cloneBarGraphDescription.colorRanges)for(let j=0,jj=cloneBarGraphDescription.colorRanges.length;j0&&-1!==this.__barGraphDescriptions.findIndex(x=>x.barColor)){let defaultGraphColor=TcHmi.Theme.Resources.get(this,"DefaultGraphColor");defaultGraphColor.value||(defaultGraphColor.value={color:"#4794da"});for(const barGraphDescription of this.__barGraphDescriptions)if(barGraphDescription){let cloneBarGraphDescription=tchmi_clone_object(barGraphDescription),color=cloneBarGraphDescription.barColor;if(null==color&&(cloneBarGraphDescription.barColor=defaultGraphColor.value),cloneBarGraphDescription.colorRanges)for(let j=0,jj=cloneBarGraphDescription.colorRanges.length;j=this.__barGraphDataArray.length)for(let i=0,ii=this.__barGraphDataArray.length;i{data.error===TcHmi.Errors.NONE&&void 0!==data.result?res=data.result:TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,`Execution of function=${this.__xAxisFormat?.fn} failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}),f.destroy(),res;TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,`Execution of function=${this.__xAxisFormat.fn} was aborted because it will be processed asynchronous and a synchronous running function call is required. Either the function is running asynchronous by definition or asynchronous running symbols were added to the list of parameters.`)}return this.__xAxisUnit?result.toString()+" "+this.__xAxisUnit:result.toString()}setShowXAxisName(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ShowXAxisName")),convertedValue!==this.__showXAxisName&&(this.__showXAxisName=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ShowXAxisName"}),this.__processShowXAxisName())}getShowXAxisName(){return this.__showXAxisName}__processShowXAxisName(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setShowAxisName(void 0===this.__showXAxisName?this.getAttributeDefaultValueInternal("ShowXAxisName"):this.__showXAxisName),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisName(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisName")),convertedValue!==this.__xAxisName&&(this.__xAxisName=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisName"}),this.__processXAxisName())}getXAxisName(){return this.__xAxisName}__processXAxisName(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setAxisName(void 0===this.__xAxisName?this.getAttributeDefaultValueInternal("XAxisName"):this.__xAxisName),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisNameFontFamily(valueNew){let convertedValue=TcHmi.ValueConverter.toFontFamily(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisNameFontFamily")),convertedValue!==this.__xAxisNameFontFamily&&(this.__xAxisNameFontFamily=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisNameFontFamily"}),this.__processXAxisNameFontFamily())}getXAxisNameFontFamily(){return this.__xAxisNameFontFamily}__processXAxisNameFontFamily(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setAxisNameFontFamily(this.__xAxisNameFontFamily),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisNameFontSize(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisNameFontSize")),convertedValue!==this.__xAxisNameFontSize&&(this.__xAxisNameFontSize=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisNameFontSize"}),this.__processXAxisNameFontSize())}getXAxisNameFontSize(){return this.__xAxisNameFontSize}__processXAxisNameFontSize(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setAxisNameFontSize(void 0===this.__xAxisNameFontSize?this.getAttributeDefaultValueInternal("XAxisNameFontSize"):this.__xAxisNameFontSize),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisNameFontSizeUnit(valueNew){}getXAxisNameFontSizeUnit(){return"px"}setXAxisNameFontWeight(valueNew){let convertedValue=TcHmi.ValueConverter.toFontWeight(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisNameFontWeight")),convertedValue!==this.__xAxisNameFontWeight&&(this.__xAxisNameFontWeight=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisNameFontWeight"}),this.__processXAxisNameFontWeight())}getXAxisNameFontWeight(){return this.__xAxisNameFontWeight}__processXAxisNameFontWeight(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setAxisNameFontWeight(void 0===this.__xAxisNameFontWeight?this.getAttributeDefaultValueInternal("XAxisNameFontWeight"):this.__xAxisNameFontWeight),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisNameFontColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisNameFontColor"));let resolverInfo=this.__objectResolvers.get("xAxisNameFontColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("xAxisNameFontColor")?.type});this.__objectResolvers.set("xAxisNameFontColor",{resolver,watchCallback:this.__onResolverForXAxisNameFontColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForXAxisNameFontColorWatchCallback)})}__onResolverForXAxisNameFontColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("xAxisNameFontColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__xAxisNameFontColor)||(this.__xAxisNameFontColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisNameFontColor"}),this.__processXAxisNameFontColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"XAxisNameFontColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getXAxisNameFontColor(){return this.__xAxisNameFontColor}__processXAxisNameFontColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(TcHmi.isSolidColor(this.__xAxisNameFontColor)?xAxis.setAxisNameFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisNameFontColor)):xAxis.setAxisNameFontColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisUnit(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisUnit")),convertedValue!==this.__xAxisUnit&&(this.__xAxisUnit=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisUnit"}),this.__processXAxisUnit())}getXAxisUnit(){return this.__xAxisUnit}__processXAxisUnit(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setUnit(void 0===this.__xAxisUnit?this.getAttributeDefaultValueInternal("XAxisUnit"):this.__xAxisUnit),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setShowYAxis(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ShowYAxis")),convertedValue!==this.__showYAxis&&(this.__showYAxis=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ShowYAxis"}),this.__processShowYAxis())}getShowYAxis(){return this.__showYAxis}__processShowYAxis(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setShowAxis(void 0===this.__showYAxis?this.getAttributeDefaultValueInternal("ShowYAxis"):this.__showYAxis),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYPosition(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YPosition")),convertedValue!==this.__yPosition&&(this.__yPosition=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YPosition"}),this.__processYPosition())}getYPosition(){return this.__yPosition}__processYPosition(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setPosition(TcHmiBarChart.Position[this.__yPosition??this.getAttributeDefaultValueInternal("YPosition")]),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYLogarithmicScale(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YLogarithmicScale")),convertedValue!==this.__yLogarithmicScale&&(this.__yLogarithmicScale=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YLogarithmicScale"}),this.__processYLogarithmicScale())}getYLogarithmicScale(){return this.__yLogarithmicScale}__processYLogarithmicScale(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setLogarithmicScale(void 0===this.__yLogarithmicScale?this.getAttributeDefaultValueInternal("YLogarithmicScale"):this.__yLogarithmicScale),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisLabeling(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisLabeling")),convertedValue!==this.__yAxisLabeling&&(this.__yAxisLabeling=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisLabeling"}),this.__processYAxisLabeling())}getYAxisLabeling(){return this.__yAxisLabeling}__processYAxisLabeling(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setAxisLabeling(TcHmiCharting.IAxis.AxisLabeling[this.__yAxisLabeling??this.getAttributeDefaultValueInternal("YAxisLabeling")]),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYMainTickMinValue(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YMainTickMinValue")),convertedValue!==this.__yMainTickMinValue&&(this.__yMainTickMinValue=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YMainTickMinValue"}),this.__processYMainTickMinValue())}getYMainTickMinValue(){return this.__yMainTickMinValue}__processYMainTickMinValue(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let YAxis=this.__barChart.getYAxisAtPosition(0);null!=YAxis&&(YAxis.setMainTickStartValue(void 0===this.__yMainTickMinValue?this.getAttributeDefaultValueInternal("YMainTickMinValue"):this.__yMainTickMinValue),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYMainTickMaxValue(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YMainTickMaxValue")),convertedValue!==this.__yMainTickMaxValue&&(this.__yMainTickMaxValue=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YMainTickMaxValue"}),this.__processYMainTickMaxValue())}getYMainTickMaxValue(){return this.__yMainTickMaxValue}__processYMainTickMaxValue(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let YAxis=this.__barChart.getYAxisAtPosition(0);null!=YAxis&&(YAxis.setMainTickEndValue(void 0===this.__yMainTickMaxValue?this.getAttributeDefaultValueInternal("YMainTickMaxValue"):this.__yMainTickMaxValue),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYMainTickSteps(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YMainTickSteps")),convertedValue!==this.__yMainTickSteps&&(this.__yMainTickSteps=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YMainTickSteps"}),this.__processYMainTickSteps())}getYMainTickSteps(){return this.__yMainTickSteps}__processYMainTickSteps(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setYMainTickSteps(void 0===this.__yMainTickSteps?this.getAttributeDefaultValueInternal("YMainTickSteps"):this.__yMainTickSteps),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setShowYSubTicks(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ShowYSubTicks")),convertedValue!==this.__showYSubTicks&&(this.__showYSubTicks=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ShowYSubTicks"}),this.__processShowYSubTicks())}getShowYSubTicks(){return this.__showYSubTicks}__processShowYSubTicks(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setShowYSubTicks(void 0===this.__showYSubTicks?this.getAttributeDefaultValueInternal("ShowYSubTicks"):this.__showYSubTicks),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setYSubTickSteps(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YSubTickSteps")),convertedValue!==this.__ySubTickSteps&&(this.__ySubTickSteps=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YSubTickSteps"}),this.__processYSubTickSteps())}getYSubTickSteps(){return this.__ySubTickSteps}__processYSubTickSteps(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setYSubTickSteps(void 0===this.__ySubTickSteps?this.getAttributeDefaultValueInternal("YSubTickSteps"):this.__ySubTickSteps),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setYShowLabels(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YShowLabels")),convertedValue!==this.__yShowLabels&&(this.__yShowLabels=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YShowLabels"}),this.__processYShowLabels())}getYShowLabels(){return this.__yShowLabels}__processYShowLabels(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setYShowLabels(void 0===this.__yShowLabels?this.getAttributeDefaultValueInternal("YShowLabels"):this.__yShowLabels),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setYLabelFontFamily(valueNew){let convertedValue=TcHmi.ValueConverter.toFontFamily(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YLabelFontFamily")),convertedValue!==this.__yLabelFontFamily&&(this.__yLabelFontFamily=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YLabelFontFamily"}),this.__processYLabelFontFamily())}getYLabelFontFamily(){return this.__yLabelFontFamily}__processYLabelFontFamily(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setYLabelFontFamily(this.__yLabelFontFamily),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setYLabelFontSize(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YLabelFontSize")),convertedValue!==this.__yLabelFontSize&&(this.__yLabelFontSize=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YLabelFontSize"}),this.__processYLabelFontSize())}getYLabelFontSize(){return this.__yLabelFontSize}__processYLabelFontSize(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setYLabelFontSize(void 0===this.__yLabelFontSize?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSize),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setYLabelFontSizeUnit(valueNew){}getYLabelFontSizeUnit(){return"px"}setYLabelFontWeight(valueNew){let convertedValue=TcHmi.ValueConverter.toFontWeight(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YLabelFontWeight")),convertedValue!==this.__yLabelFontWeight&&(this.__yLabelFontWeight=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YLabelFontWeight"}),this.__processYLabelFontWeight())}getYLabelFontWeight(){return this.__yLabelFontWeight}__processYLabelFontWeight(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setYLabelFontWeight(void 0===this.__yLabelFontWeight?this.getAttributeDefaultValueInternal("YLabelFontWeight"):this.__yLabelFontWeight),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setYLabelFontColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YLabelFontColor"));let resolverInfo=this.__objectResolvers.get("yLabelFontColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("YLabelFontColor")?.type});this.__objectResolvers.set("yLabelFontColor",{resolver,watchCallback:this.__onResolverForYLabelFontColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForYLabelFontColorWatchCallback)})}__onResolverForYLabelFontColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("yLabelFontColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__yLabelFontColor)||(this.__yLabelFontColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YLabelFontColor"}),this.__processYLabelFontColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"YLabelFontColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getYLabelFontColor(){return this.__yLabelFontColor}__processYLabelFontColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let YAxis=this.__barChart.getYAxisAtPosition(0);null!=YAxis&&(TcHmi.isSolidColor(this.__yLabelFontColor)?YAxis.setLabelFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__yLabelFontColor)):YAxis.setLabelFontColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisWidth(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisWidth")),convertedValue!==this.__yAxisWidth&&(this.__yAxisWidth=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisWidth"}),this.__processYAxisWidth())}getYAxisWidth(){return this.__yAxisWidth}__processYAxisWidth(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setYAxisWidth(void 0===this.__yAxisWidth?this.getAttributeDefaultValueInternal("YAxisWidth"):this.__yAxisWidth),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setYAxisColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisColor"));let resolverInfo=this.__objectResolvers.get("yAxisColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("YAxisColor")?.type});this.__objectResolvers.set("yAxisColor",{resolver,watchCallback:this.__onResolverForYAxisColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForYAxisColorWatchCallback)})}__onResolverForYAxisColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("yAxisColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__yAxisColor)||(this.__yAxisColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisColor"}),this.__processYAxisColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"YAxisColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getYAxisColor(){return this.__yAxisColor}__processYAxisColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(TcHmi.isSolidColor(this.__yAxisColor)?yAxis.setAxisColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__yAxisColor)):yAxis.setAxisColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setShowYAxisName(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ShowYAxisName")),convertedValue!==this.__showYAxisName&&(this.__showYAxisName=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ShowYAxisName"}),this.__processShowYAxisName())}getShowYAxisName(){return this.__showYAxisName}__processShowYAxisName(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setShowAxisName(void 0===this.__showYAxisName?this.getAttributeDefaultValueInternal("ShowYAxisName"):this.__showYAxisName),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisName(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisName")),convertedValue!==this.__yAxisName&&(this.__yAxisName=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisName"}),this.__processYAxisName())}getYAxisName(){return this.__yAxisName}__processYAxisName(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setAxisName(void 0===this.__yAxisName?this.getAttributeDefaultValueInternal("YAxisName"):this.__yAxisName),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisNameFontFamily(valueNew){let convertedValue=TcHmi.ValueConverter.toFontFamily(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisNameFontFamily")),convertedValue!==this.__yAxisNameFontFamily&&(this.__yAxisNameFontFamily=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisNameFontFamily"}),this.__processYAxisNameFontFamily())}getYAxisNameFontFamily(){return this.__yAxisNameFontFamily}__processYAxisNameFontFamily(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setAxisNameFontFamily(this.__yAxisNameFontFamily),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisNameFontSize(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisNameFontSize")),convertedValue!==this.__yAxisNameFontSize&&(this.__yAxisNameFontSize=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisNameFontSize"}),this.__processYAxisNameFontSize())}getYAxisNameFontSize(){return this.__yAxisNameFontSize}__processYAxisNameFontSize(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setAxisNameFontSize(void 0===this.__yAxisNameFontSize?this.getAttributeDefaultValueInternal("YAxisNameFontSize"):this.__yAxisNameFontSize),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisNameFontSizeUnit(valueNew){}getYAxisNameFontSizeUnit(){return"px"}setYAxisNameFontWeight(valueNew){let convertedValue=TcHmi.ValueConverter.toFontWeight(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisNameFontWeight")),convertedValue!==this.__yAxisNameFontWeight&&(this.__yAxisNameFontWeight=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisNameFontWeight"}),this.__processYAxisNameFontWeight())}getYAxisNameFontWeight(){return this.__yAxisNameFontWeight}__processYAxisNameFontWeight(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setAxisNameFontWeight(void 0===this.__yAxisNameFontWeight?this.getAttributeDefaultValueInternal("YAxisNameFontWeight"):this.__yAxisNameFontWeight),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisNameFontColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisNameFontColor"));let resolverInfo=this.__objectResolvers.get("yAxisNameFontColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("YAxisNameFontColor")?.type});this.__objectResolvers.set("yAxisNameFontColor",{resolver,watchCallback:this.__onResolverForYAxisNameFontColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForYAxisNameFontColorWatchCallback)})}__onResolverForYAxisNameFontColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("yAxisNameFontColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__yAxisNameFontColor)||(this.__yAxisNameFontColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisNameFontColor"}),this.__processYAxisNameFontColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"YAxisNameFontColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getYAxisNameFontColor(){return this.__yAxisNameFontColor}__processYAxisNameFontColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(TcHmi.isSolidColor(this.__yAxisNameFontColor)?yAxis.setAxisNameFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__yAxisNameFontColor)):yAxis.setAxisNameFontColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisAutoScaling(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisAutoScaling")),convertedValue!==this.__yAxisAutoScaling&&(this.__yAxisAutoScaling=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisAutoScaling"}),this.__processYAxisAutoScaling())}getYAxisAutoScaling(){return this.__yAxisAutoScaling}__processYAxisAutoScaling(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setAutoScaling(void 0===this.__yAxisAutoScaling?this.getAttributeDefaultValueInternal("YAxisAutoScaling"):this.__yAxisAutoScaling),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisDecimalPlaces(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisDecimalPlaces")),convertedValue!==this.__yAxisDecimalPlaces&&(this.__yAxisDecimalPlaces=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisDecimalPlaces"}),this.__processYAxisDecimalPlaces())}getYAxisDecimalPlaces(){return this.__yAxisDecimalPlaces}__processYAxisDecimalPlaces(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let YAxis=this.__barChart.getYAxisAtPosition(0);null!=YAxis&&(YAxis.setDecimalPlaces(void 0===this.__yAxisDecimalPlaces?this.getAttributeDefaultValueInternal("YAxisDecimalPlaces"):this.__yAxisDecimalPlaces),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisUnit(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisUnit")),convertedValue!==this.__yAxisUnit&&(this.__yAxisUnit=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisUnit"}),this.__processYAxisUnit())}getYAxisUnit(){return this.__yAxisUnit}__processYAxisUnit(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setUnit(void 0===this.__yAxisUnit?this.getAttributeDefaultValueInternal("YAxisUnit"):this.__yAxisUnit),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setYAxisFormat(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("YAxisFormat"));let resolverInfo=this.__objectResolvers.get("yAxisFormat");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("YAxisFormat")?.type});this.__objectResolvers.set("yAxisFormat",{resolver,watchCallback:this.__onResolverForYAxisFormatWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForYAxisFormatWatchCallback)})}__onResolverForYAxisFormatWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("yAxisFormat"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__yAxisFormat)||(this.__yAxisFormat=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"YAxisFormat"}),this.__processYAxisFormat()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"YAxisFormat"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getYAxisFormat(){return this.__yAxisFormat}__processYAxisFormat(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let yAxis=this.__barChart.getYAxisAtPosition(0);null!=yAxis&&(yAxis.setYAxisCallback(value=>this.__executeYAxisFormatFunction(this.__yAxisFormat??void 0,value)),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}__executeYAxisFormatFunction(format,value){if(null!=format&&!1!==format.active){const args=[value];let res=null,f=new TcHmi.Function(format);if(f.isProcessedAsync())TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,`Execution of function=${format.fn} was aborted because it will be processed asynchronous and a synchronous running function call is required. Either the function is running asynchronous by definition or asynchronous running symbols were added to the list of parameters.`);else{const parameters=f.getDescription()?.function.arguments;if(parameters?.length){const parameterSchema=tchmi_clone_object(TcHmi.Type.getSchema(parameters[0].type));if(parameterSchema&&TcHmi.Type.Schema.matchesSchemaType(value,parameterSchema))return f.executeEx(args,data=>{data.error===TcHmi.Errors.NONE&&void 0!==data.result?res=data.result:TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"Data"},"Execution of function="+format.fn+" failed with error: "+TcHmi.Log.buildMessage(data.details))}),f.destroy(),res}}}return null!=value?value+"":""}setShowGrid(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ShowGrid")),convertedValue!==this.__showGrid&&(this.__showGrid=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ShowGrid"}),this.__processShowGrid())}getShowGrid(){return this.__showGrid}__processShowGrid(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){if(this.__showGrid){let grid=this.__barChart.getGrid();null==grid&&(this.__barChart.addGrid(),grid=this.__barChart.getGrid(),null!=grid&&(TcHmi.isSolidColor(this.__gridBackgroundColor)?grid.setBackgroundColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__gridBackgroundColor)):grid.setBackgroundColor(null),TcHmi.isSolidColor(this.__gridLineColor)?grid.setLineColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__gridLineColor)):grid.setLineColor(null),null!==this.__gridLineWidth&&grid.setLineWidth(void 0===this.__gridLineWidth?this.getAttributeDefaultValueInternal("GridLineWidth"):this.__gridLineWidth),null!==this.__gridLineStyle&&grid.setLineStyle(this.__gridLineStyle??this.getAttributeDefaultValueInternal("GridLineStyle")),null!==this.__gridShowHorizontalLines&&void 0!==this.__gridShowHorizontalLines&&grid.setShowHorizontalLines(this.__gridShowHorizontalLines),null!==this.__gridShowVerticalLines&&void 0!==this.__gridShowVerticalLines&&grid.setShowVerticalLines(this.__gridShowVerticalLines)))}else this.__barChart.deleteGrid();this.__barChart.setHasChanged(!0),this.__barChart.draw()}}setGridBackgroundColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("GridBackgroundColor"));let resolverInfo=this.__objectResolvers.get("gridBackgroundColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("GridBackgroundColor")?.type});this.__objectResolvers.set("gridBackgroundColor",{resolver,watchCallback:this.__onResolverForGridBackgroundColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForGridBackgroundColorWatchCallback)})}__onResolverForGridBackgroundColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("gridBackgroundColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__gridBackgroundColor)||(this.__gridBackgroundColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"GridBackgroundColor"}),this.__processGridBackgroundColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"GridBackgroundColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getGridBackgroundColor(){return this.__gridBackgroundColor}__processGridBackgroundColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let grid=this.__barChart.getGrid();null!=grid&&(TcHmi.isSolidColor(this.__gridBackgroundColor)?grid.setBackgroundColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__gridBackgroundColor)):grid.setBackgroundColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setGridShowHorizontalLines(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("GridShowHorizontalLines")),convertedValue!==this.__gridShowHorizontalLines&&(this.__gridShowHorizontalLines=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"GridShowHorizontalLines"}),this.__processGridShowHorizontalLines())}getGridShowHorizontalLines(){return this.__gridShowHorizontalLines}__processGridShowHorizontalLines(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let grid=this.__barChart.getGrid();null!=grid&&(grid.setShowHorizontalLines(void 0===this.__gridShowHorizontalLines?this.getAttributeDefaultValueInternal("GridShowHorizontalLines"):this.__gridShowHorizontalLines),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setGridShowVerticalLines(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("GridShowVerticalLines")),convertedValue!==this.__gridShowVerticalLines&&(this.__gridShowVerticalLines=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"GridShowVerticalLines"}),this.__processGridShowVerticalLines())}getGridShowVerticalLines(){return this.__gridShowVerticalLines}__processGridShowVerticalLines(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let grid=this.__barChart.getGrid();null!=grid&&(grid.setShowVerticalLines(void 0===this.__gridShowVerticalLines?this.getAttributeDefaultValueInternal("GridShowVerticalLines"):this.__gridShowVerticalLines),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setGridLineWidth(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("GridLineWidth")),convertedValue!==this.__gridLineWidth&&(this.__gridLineWidth=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"GridLineWidth"}),this.__processGridLineWidth())}getGridLineWidth(){return this.__gridLineWidth}__processGridLineWidth(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let grid=this.__barChart.getGrid();null!=grid&&(grid.setLineWidth(void 0===this.__gridLineWidth?this.getAttributeDefaultValueInternal("GridLineWidth"):this.__gridLineWidth),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setGridLineStyle(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("GridLineStyle")),convertedValue!==this.__gridLineStyle&&(this.__gridLineStyle=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"GridLineStyle"}),this.__processGridLineStyle())}getGridLineStyle(){return this.__gridLineStyle}__processGridLineStyle(){if(null!==this.__barChart&&void 0!==this.__barChart){let grid=this.__barChart.getGrid();null!=grid&&(grid.setLineStyle(this.__gridLineStyle??this.getAttributeDefaultValueInternal("GridLineStyle")),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setGridLineColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("GridLineColor"));let resolverInfo=this.__objectResolvers.get("gridLineColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("GridLineColor")?.type});this.__objectResolvers.set("gridLineColor",{resolver,watchCallback:this.__onResolverForGridLineColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForGridLineColorWatchCallback)})}__onResolverForGridLineColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("gridLineColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__gridLineColor)||(this.__gridLineColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"GridLineColor"}),this.__processGridLineColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"GridLineColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getGridLineColor(){return this.__gridLineColor}__processGridLineColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let grid=this.__barChart.getGrid();null!=grid&&(TcHmi.isSolidColor(this.__gridLineColor)?grid.setLineColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__gridLineColor)):grid.setLineColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setSubgridShowHorizontalLines(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("SubgridShowHorizontalLines")),convertedValue!==this.__subgridShowHorizontalLines&&(this.__subgridShowHorizontalLines=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"SubgridShowHorizontalLines"}),this.__processSubgridShowHorizontalLines())}getSubgridShowHorizontalLines(){return this.__subgridShowHorizontalLines}__processSubgridShowHorizontalLines(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let subgrid=this.__barChart.getSubgrid();null!=subgrid&&(subgrid.setShowHorizontalLines(void 0===this.__subgridShowHorizontalLines?this.getAttributeDefaultValueInternal("SubgridShowHorizontalLines"):this.__subgridShowHorizontalLines),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setSubgridShowVerticalLines(valueNew){}getSubgridShowVerticalLines(){return!1}setSubgridLineWidth(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("SubgridLineWidth")),convertedValue!==this.__subgridLineWidth&&(this.__subgridLineWidth=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"SubgridLineWidth"}),this.__processSubgridLineWidth())}getSubgridLineWidth(){return this.__subgridLineWidth}__processSubgridLineWidth(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let subgrid=this.__barChart.getSubgrid();null!=subgrid&&(subgrid.setLineWidth(void 0===this.__subgridLineWidth?this.getAttributeDefaultValueInternal("SubgridLineWidth"):this.__subgridLineWidth),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setSubgridLineStyle(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("SubgridLineStyle")),convertedValue!==this.__subgridLineStyle&&(this.__subgridLineStyle=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"SubgridLineStyle"}),this.__processSubgridLineStyle())}getSubgridLineStyle(){return this.__subgridLineStyle}__processSubgridLineStyle(){if(null!==this.__barChart&&void 0!==this.__barChart){let subgrid=this.__barChart.getSubgrid();null!=subgrid&&(subgrid.setLineStyle(this.__subgridLineStyle??this.getAttributeDefaultValueInternal("SubgridLineStyle")),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setSubgridLineColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("SubgridLineColor"));let resolverInfo=this.__objectResolvers.get("subgridLineColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("SubgridLineColor")?.type});this.__objectResolvers.set("subgridLineColor",{resolver,watchCallback:this.__onResolverForSubgridLineColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForSubgridLineColorWatchCallback)})}__onResolverForSubgridLineColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("subgridLineColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__subgridLineColor)||(this.__subgridLineColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"SubgridLineColor"}),this.__processSubgridLineColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"SubgridLineColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getSubgridLineColor(){return this.__subgridLineColor}__processSubgridLineColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let subgrid=this.__barChart.getSubgrid();null!=subgrid&&(TcHmi.isSolidColor(this.__subgridLineColor)?subgrid.setLineColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__subgridLineColor)):subgrid.setLineColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setShowLegend(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ShowLegend")),convertedValue!==this.__showLegend&&(this.__showLegend=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ShowLegend"}),this.__processShowLegend())}getShowLegend(){return this.__showLegend}__processShowLegend(){if(this.__barGraphDescriptionsInternal=this.__createInternalColorArray(),this.__barGraphDataSelected=[],this.__barGraphDescriptionsSelected=[],this.__barGraphDataArray&&this.__barGraphDescriptionsInternal){for(let i=0,ii=Math.min(this.__barGraphDescriptionsInternal.length,this.__barGraphDataArray.length);i