Files
infineon_plc/Packages/Beckhoff.TwinCAT.HMI.Controls.14.4.1/runtimes/native1.12-tchmi/dist/TcHmiBarChart/TcHmiBarChart.esm.js
m.heisig 2d11c43579 Added minimal functionality for Robot teaching
- Added minimal HMI
- Added possibility to open and close all chamber doors
2026-01-17 09:20:39 +01:00

1 line
107 KiB
JavaScript

var __runInitializers=this&&this.__runInitializers||function(thisArg,initializers,value){for(var useValue=arguments.length>2,i=0;i<initializers.length;i++)value=useValue?initializers[i].call(thisArg,value):initializers[i].call(thisArg);return useValue?value:void 0},__esDecorate=this&&this.__esDecorate||function(ctor,descriptorIn,decorators,contextIn,initializers,extraInitializers){function accept(f){if(void 0!==f&&"function"!=typeof f)throw new TypeError("Function expected");return f}for(var _,kind=contextIn.kind,key="getter"===kind?"get":"setter"===kind?"set":"value",target=!descriptorIn&&ctor?contextIn.static?ctor:ctor.prototype:null,descriptor=descriptorIn||(target?Object.getOwnPropertyDescriptor(target,contextIn.name):{}),done=!1,i=decorators.length-1;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;i<ii;i++){const tempReferenceLine=this.__referenceLines[i];this.__barChart.addReferenceLine();let referenceLine=this.__barChart.getReferenceLinesAtPosition(i);if(referenceLine.setName(tempReferenceLine.name),referenceLine.setShow(TcHmi.ValueConverter.toBoolean(tempReferenceLine.show,!0)),referenceLine.setYAxisId(TcHmi.ValueConverter.toNumber(tempReferenceLine.yAxisId)),referenceLine.setValue(TcHmi.ValueConverter.toNumber(tempReferenceLine.value)),referenceLine.setValueUnit(TcHmi.ValueConverter.toEnum(tempReferenceLine.valueUnit,TcHmiBarChart.ValueUnit,TcHmiBarChart.ValueUnit.Value)),referenceLine.setOrientation(TcHmi.ValueConverter.toEnum(tempReferenceLine.orientation,TcHmiBarChart.Orientation,TcHmiBarChart.Orientation.Horizontal)),TcHmi.isSolidColor(tempReferenceLine.color))referenceLine.setColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(tempReferenceLine.color));else{let themeLineColor=TcHmi.Theme.Resources.get(this,"ReferenceLineColor");TcHmi.isSolidColor(themeLineColor.value)?referenceLine.setColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(themeLineColor.value)):referenceLine.setColor(null)}referenceLine.setLineWidth(TcHmi.ValueConverter.toNumber(tempReferenceLine.lineWidth)),referenceLine.setShowLabel(TcHmi.ValueConverter.toBoolean(tempReferenceLine.showLabel,!0)),referenceLine.setLabelHorizontalAlignment(TcHmi.ValueConverter.toHorizontalAlignment(tempReferenceLine.labelHorizontalAlignment||null)),referenceLine.setLabelVerticalAlignment(TcHmi.ValueConverter.toVerticalAlignment(tempReferenceLine.labelVerticalAlignment||null)),referenceLine.setLabelFontFamily(this.__xAxisNameFontFamily),referenceLine.setLabelFontSize(TcHmi.ValueConverter.toNumber(tempReferenceLine.labelFontSize)),referenceLine.setLabelFontWeight(TcHmi.ValueConverter.toFontWeight(tempReferenceLine.labelFontWeight||null))}if(this.__barChart.setBarWidth(void 0===this.__barGraphWidth?this.getAttributeDefaultValueInternal("BarGraphWidth"):this.__barGraphWidth),this.__barChart.setBarGraphArrangement(void 0===this.__barGraphArrangement?this.getAttributeDefaultValueInternal("BarGraphArrangement"):this.__barGraphArrangement),this.__barGraphDataSelected&&this.__barGraphDescriptionsSelected){for(let i=0,ii=Math.min(this.__barGraphDescriptionsSelected.length,this.__barGraphDataSelected.length);i<ii;i++){let yAxis=this.__barChart.getYAxisAtPosition(0);if(null===yAxis)return;this.__barChart.addGraph({values:this.__barGraphDataSelected[i],yAxis});let barGraph=this.__barChart.getBarGraphsAtPosition(i),color=this.__barGraphDescriptionsSelected[i].barColor;null!==barGraph&&(TcHmi.isSolidColor(color)?barGraph.setBarColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(color)):barGraph.setBarColor("#4794da")),barGraph.setScaleFactor(this.__barGraphDescriptionsSelected[i].scaleFactor),barGraph.setColorRanges(this.__barGraphDescriptionsSelected[i].colorRanges)}}this.__barChart.setYAxisWidth(void 0===this.__yAxisWidth?this.getAttributeDefaultValueInternal("YAxisWidth"):this.__yAxisWidth),this.__barChart.setYLabelFontFamily(this.__yLabelFontFamily),this.__barChart.setYLabelFontSize(void 0===this.__yLabelFontSize?this.getAttributeDefaultValueInternal("YLabelFontSize"):this.__yLabelFontSize),this.__barChart.setYLabelFontWeight(void 0===this.__yLabelFontWeight?this.getAttributeDefaultValueInternal("YLabelFontWeight"):this.__yLabelFontWeight),this.__barChart.setYMainTickSteps(void 0===this.__yMainTickSteps?this.getAttributeDefaultValueInternal("YMainTickSteps"):this.__yMainTickSteps),this.__barChart.setYSubTickSteps(void 0===this.__ySubTickSteps?this.getAttributeDefaultValueInternal("YSubTickSteps"):this.__ySubTickSteps),this.__barChart.setShowYSubTicks(void 0===this.__showYSubTicks?this.getAttributeDefaultValueInternal("ShowYSubTicks"):this.__showYSubTicks),this.__barChart.draw()}__createLegend(useOldElements=!1){let legendChildsLength=this.__elementLegend.children().length;if(!useOldElements||this.__barGraphDataArray&&legendChildsLength!==this.__barGraphDataArray.length){if(this.__elementLegend.children().remove(),this.__showLegend){TcHmi.StyleProvider.setSimpleElementStyle(this.__elementLegend,"display","");let barGraphDescriptions=this.__createInternalColorArray();if(this.__barGraphDataArray&&barGraphDescriptions&&barGraphDescriptions.length>0&&this.__barGraphDataArray.length>0){for(let i=0,ii=Math.min(this.__barGraphDataArray.length,barGraphDescriptions.length);i<ii;i++){let label=document.createElement("label");label.setAttribute("class","TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-label"),this.__legendFontFamily&&(label.style.fontFamily=this.__legendFontFamily),this.__legendFontSize&&(label.style.fontSize=this.__legendFontSize+"px"),this.__legendFontStyle&&(label.style.fontStyle=this.__legendFontStyle),this.__legendFontWeight&&(label.style.fontWeight=this.__legendFontWeight);let checkbox=document.createElement("input");checkbox.setAttribute("type","checkbox"),checkbox.setAttribute("id",this.__id+"Element"+i),checkbox.setAttribute("class","TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox");let color=document.createElement("div");if(color.setAttribute("class","TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-color-element"),color.setAttribute("style","background-color: "+barGraphDescriptions[i].barColor?.color+";"),label.append(checkbox),label.append(color),this.__barGraphDescriptions&&this.__barGraphDescriptions[i]&&this.__barGraphDescriptions[i].legendName){let text=document.createTextNode(this.__barGraphDescriptions[i].legendName);label.appendChild(text)}else{let text=document.createTextNode("["+i+"]");label.appendChild(text)}this.__elementLegend.append(label),this.__activeLegendElements?this.__activeLegendElements.includes(i)?checkbox.checked=!0:checkbox.checked=!1:this.__barGraphDescriptions?.[i]?checkbox.checked=this.__barGraphDescriptions[i].defaultVisibility??!0:checkbox.checked=!1}return}}TcHmi.StyleProvider.setSimpleElementStyle(this.__elementLegend,"display","none")}}getCurrentGraphLength(){return this.__barGraphData?this.__barGraphData.length:0}__onCheckboxMouseDown(event){if(1!==event.which)return;let childElement=event.target,checkboxElem=null;if(childElement.classList.contains("TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox"))checkboxElem=childElement;else if(childElement.classList.contains("TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-label")){let checkboxList=childElement.getElementsByClassName("TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox");checkboxList&&checkboxList.length>0&&(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;i<ii;i++){let checkedCheckbox=children[i].childNodes[0].checked;i===elementIndex&&(checkedCheckbox=!checkedCheckbox),checkedCheckbox&&activeLegendElements.push(i),checkedCheckbox&&this.__barGraphDataArray&&this.__barGraphDescriptionsInternal&&(this.__barGraphDataSelected.push(this.__barGraphDataArray[i]),this.__barGraphDescriptionsSelected.push(this.__barGraphDescriptionsInternal[i]))}this.__activeLegendElements=activeLegendElements,this.__storage?.set("activeLegendElements",activeLegendElements),this.__drawBarChart()}}__onCheckboxTouchStart(event){if(!this.getIsEnabled())return;let childElement=event.target;if(childElement){let checkboxList=childElement.getElementsByClassName("TcHmi_Controls_Beckhoff_TcHmiScopeControl-template-legend-checkbox");if(checkboxList&&checkboxList.length>0){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<ii;i++){let checkedCheckbox=children[i].childNodes[0].checked;i===elementIndex&&(checkedCheckbox=!checkedCheckbox),checkedCheckbox&&activeLegendElements.push(i),checkedCheckbox&&this.__barGraphDataArray&&this.__barGraphDescriptionsInternal&&(this.__barGraphDataSelected.push(this.__barGraphDataArray[i]),this.__barGraphDescriptionsSelected.push(this.__barGraphDescriptionsInternal[i]))}this.__activeLegendElements=activeLegendElements,this.__storage?.set("activeLegendElements",activeLegendElements),this.__drawBarChart()}}}__createInternalColorArray(){let newBarGraphDescriptionArray=[];if(this.__barGraphDataArray)if(this.__barGraphDescriptions&&this.__barGraphDescriptions.length>=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;j<jj;j++){let colorRange=cloneBarGraphDescription.colorRanges[j];if(!TcHmi.isSolidColor(colorRange.color)){let themeColorRangeColor=TcHmi.Theme.Resources.get(this,"DefaultColorRangeColor");TcHmi.isSolidColor(themeColorRangeColor.value)&&(colorRange.color=themeColorRangeColor.value)}if(colorRange.expression){let filterInstance=new TcHmi.FilterInstance(colorRange.expression),compile=filterInstance.compile();compile.error!==TcHmi.Errors.NONE?TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"Filter"},`Error while compiling filter: ${TcHmi.Log.buildMessage(compile.details)}`):colorRange.filterInstance=filterInstance,cloneBarGraphDescription.colorRanges[j]=colorRange}}newBarGraphDescriptionArray.push(cloneBarGraphDescription)}else if(this.__barGraphDescriptions&&this.__barGraphDescriptions.length>0&&-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<jj;j++){let colorRange=cloneBarGraphDescription.colorRanges[j];if(!TcHmi.isSolidColor(colorRange.color)){let themeColorRangeColor=TcHmi.Theme.Resources.get(this,"DefaultColorRangeColor");TcHmi.isSolidColor(themeColorRangeColor.value)&&(colorRange.color=themeColorRangeColor.value)}if(colorRange.expression){let filterInstance=new TcHmi.FilterInstance(colorRange.expression),compile=filterInstance.compile();compile.error!==TcHmi.Errors.NONE&&TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"Filter"},`Error while compiling filter: ${TcHmi.Log.buildMessage(compile.details)}`),colorRange.filterInstance=filterInstance,cloneBarGraphDescription.colorRanges[j]=colorRange}}newBarGraphDescriptionArray.push(cloneBarGraphDescription)}else{let newBarGraphDescription={barColor:defaultGraphColor.value};newBarGraphDescriptionArray.push(newBarGraphDescription)}}else if(this.__barGraphColorArray&&this.__barGraphColorArray.length>=this.__barGraphDataArray.length)for(let i=0,ii=this.__barGraphDataArray.length;i<ii;i++){let newBarGraphDescription={barColor:this.__barGraphColorArray[i]};newBarGraphDescriptionArray.push(newBarGraphDescription)}else{let defaultGraphColor=TcHmi.Theme.Resources.get(this,"DefaultGraphColor");defaultGraphColor.value||(defaultGraphColor.value={color:"#4794da"});for(let i=0,ii=this.__barGraphDataArray.length;i<ii;i++)if(this.__barGraphColorArray&&this.__barGraphColorArray[i]){let newBarGraphDescription={barColor:this.__barGraphColorArray[i]};newBarGraphDescriptionArray.push(newBarGraphDescription)}else{let newBarGraphDescription={barColor:defaultGraphColor.value};newBarGraphDescriptionArray.push(newBarGraphDescription)}}if(this.__barGraphDataSelected=[],this.__barGraphDescriptionsSelected=[],this.__barGraphDataArray&&newBarGraphDescriptionArray){for(let i=0,ii=Math.min(newBarGraphDescriptionArray.length,this.__barGraphDataArray.length);i<ii;i++)(this.__activeLegendElements&&this.__activeLegendElements.includes(i)||!this.__activeLegendElements&&(newBarGraphDescriptionArray[i].defaultVisibility??1))&&(this.__barGraphDataSelected.push(this.__barGraphDataArray[i]),this.__barGraphDescriptionsSelected.push(newBarGraphDescriptionArray[i]))}return newBarGraphDescriptionArray}setSectionsBackgroundColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("SectionsBackgroundColor"));let resolverInfo=this.__objectResolvers.get("sectionsBackgroundColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("SectionsBackgroundColor")?.type});this.__objectResolvers.set("sectionsBackgroundColor",{resolver,watchCallback:this.__onResolverForSectionsBackgroundColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForSectionsBackgroundColorWatchCallback)})}__onResolverForSectionsBackgroundColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("sectionsBackgroundColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__sectionsBackgroundColor)||(this.__sectionsBackgroundColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"SectionsBackgroundColor"}),this.__processSectionsBackgroundColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"SectionsBackgroundColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getSectionsBackgroundColor(){return this.__sectionsBackgroundColor}__processSectionsBackgroundColor(){TcHmi.StyleProvider.processBackgroundColor(this.__elementChart,this.__sectionsBackgroundColor),TcHmi.StyleProvider.processBackgroundColor(this.__elementLegend,this.__sectionsBackgroundColor)}setBarGraphDescriptions(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("BarGraphDescriptions"));let resolverInfo=this.__objectResolvers.get("barGraphDescriptions");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("BarGraphDescriptions")?.type});this.__objectResolvers.set("barGraphDescriptions",{resolver,watchCallback:this.__onResolverForBarGraphDescriptionsWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForBarGraphDescriptionsWatchCallback)})}__onResolverForBarGraphDescriptionsWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("barGraphDescriptions"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__barGraphDescriptions)||(this.__barGraphDescriptions=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"BarGraphDescriptions"}),this.__processBarGraphDescriptions()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"BarGraphDescriptions"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getBarGraphDescriptions(){return this.__barGraphDescriptions}__processBarGraphDescriptions(){this.__barGraphDescriptionsInternal=this.__createInternalColorArray(),this.__attributesInitialized&&(this.__createLegend(),this.__drawBarChart())}setBarGraphColors(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("BarGraphColors"));let resolverInfo=this.__objectResolvers.get("barGraphColors");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("BarGraphColors")?.type});this.__objectResolvers.set("barGraphColors",{resolver,watchCallback:this.__onResolverForBarGraphColorsWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForBarGraphColorsWatchCallback)})}__onResolverForBarGraphColorsWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("barGraphColors"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__barGraphColors)||(this.__barGraphColors=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"BarGraphColors"}),this.__processBarGraphColors()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"BarGraphColors"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getBarGraphColors(){return this.__barGraphColors}__processBarGraphColors(){this.__barGraphColors?Array.isArray(this.__barGraphColors)?this.__barGraphColorArray=this.__barGraphColors:this.__barGraphColorArray=[this.__barGraphColors]:this.__barGraphColorArray=null,this.__barGraphDescriptionsInternal=this.__createInternalColorArray(),this.__attributesInitialized&&(this.__createLegend(),this.__drawBarChart())}setBarGraphData(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("BarGraphData"));let resolverInfo=this.__objectResolvers.get("barGraphData");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("BarGraphData")?.type});this.__objectResolvers.set("barGraphData",{resolver,watchCallback:this.__onResolverForBarGraphDataWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForBarGraphDataWatchCallback)})}__onResolverForBarGraphDataWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("barGraphData"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__barGraphData)||(this.__barGraphData=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"BarGraphData"}),this.__processBarGraphData()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"BarGraphData"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getBarGraphData(){return this.__barGraphData}__processBarGraphData(){if(null!==this.__barGraphData)if(Array.isArray(this.__barGraphData)){let dataSub=this.__barGraphData[0];null!=dataSub?Array.isArray(this.__barGraphData[0])?this.__barGraphDataArray=this.__barGraphData:this.__barGraphDataArray=[this.__barGraphData]:this.__barGraphDataArray=null}else this.__barGraphDataArray=null;else this.__barGraphDataArray=null;this.__barGraphDescriptionsInternal=this.__createInternalColorArray(),this.__attributesInitialized&&(this.__createLegend(!0),this.__drawBarChart())}setReferenceLines(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ReferenceLines"));let resolverInfo=this.__objectResolvers.get("referenceLines");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("ReferenceLines")?.type});this.__objectResolvers.set("referenceLines",{resolver,watchCallback:this.__onResolverForReferenceLinesWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForReferenceLinesWatchCallback)})}__onResolverForReferenceLinesWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("referenceLines"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__referenceLines)||(this.__referenceLines=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ReferenceLines"}),this.__processReferenceLines()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"ReferenceLines"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getReferenceLines(){return this.__referenceLines}__processReferenceLines(){null!==this.__barChart&&void 0!==this.__barChart&&this.__drawBarChart()}setReferenceLinesPosition(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ReferenceLinesPosition")),convertedValue!==this.__referenceLinesPosition&&(this.__referenceLinesPosition=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ReferenceLinesPosition"}),this.__processReferenceLinesPosition())}getReferenceLinesPosition(){return this.__referenceLinesPosition}__processReferenceLinesPosition(){!this.__attributesInitialized||null!==this.__barChart&&void 0!==this.__barChart?this.__attributesInitialized&&null!==this.__barChart&&void 0!==this.__barChart&&(this.__barChart.remove(),this.__barChart=null,this.__drawBarChart()):this.__drawBarChart()}setBarGraphWidth(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("BarGraphWidth")),convertedValue!==this.__barGraphWidth&&(this.__barGraphWidth=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"BarGraphWidth"}),this.__processBarGraphWidth())}getBarGraphWidth(){return this.__barGraphWidth}__processBarGraphWidth(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setBarWidth(void 0===this.__barGraphWidth?this.getAttributeDefaultValueInternal("BarGraphWidth"):this.__barGraphWidth),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setBarGraphArrangement(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("BarGraphArrangement")),convertedValue!==this.__barGraphArrangement&&(this.__barGraphArrangement=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"BarGraphArrangement"}),this.__processBarGraphArrangement())}getBarGraphArrangement(){return this.__barGraphArrangement}__processBarGraphArrangement(){null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized&&(this.__barChart.setBarGraphArrangement(void 0===this.__barGraphArrangement?this.getAttributeDefaultValueInternal("BarGraphArrangement"):this.__barGraphArrangement),this.__barChart.setHasChanged(!0),this.__barChart.draw())}setShowXAxis(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ShowXAxis")),convertedValue!==this.__showXAxis&&(this.__showXAxis=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ShowXAxis"}),this.__processShowXAxis())}getShowXAxis(){return this.__showXAxis}__processShowXAxis(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setShowAxis(void 0===this.__showXAxis?this.getAttributeDefaultValueInternal("ShowXAxis"):this.__showXAxis),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXShowLabels(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XShowLabels")),convertedValue!==this.__xShowLabels&&(this.__xShowLabels=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XShowLabels"}),this.__processXShowLabels())}getXShowLabels(){return this.__xShowLabels}__processXShowLabels(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setShowLabels(void 0===this.__xShowLabels?this.getAttributeDefaultValueInternal("XShowLabels"):this.__xShowLabels),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXMainTickMinValue(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XMainTickMinValue")),convertedValue!==this.__xMainTickMinValue&&(this.__xMainTickMinValue=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XMainTickMinValue"}),this.__processXMainTickMinValue())}getXMainTickMinValue(){return this.__xMainTickMinValue}__processXMainTickMinValue(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setMainTickStartValue(void 0===this.__xMainTickMinValue?this.getAttributeDefaultValueInternal("XMainTickMinValue"):this.__xMainTickMinValue),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXMainTickMaxValue(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XMainTickMaxValue")),convertedValue!==this.__xMainTickMaxValue&&(this.__xMainTickMaxValue=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XMainTickMaxValue"}),this.__processXMainTickMaxValue())}getXMainTickMaxValue(){return this.__xMainTickMaxValue}__processXMainTickMaxValue(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setMainTickEndValue(void 0===this.__xMainTickMaxValue?this.getAttributeDefaultValueInternal("XMainTickMaxValue"):this.__xMainTickMaxValue),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXMainTickSteps(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XMainTickSteps")),convertedValue!==this.__xMainTickSteps&&(this.__xMainTickSteps=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XMainTickSteps"}),this.__processXMainTickSteps())}getXMainTickSteps(){return this.__xMainTickSteps}__processXMainTickSteps(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setMainTickSteps(void 0===this.__xMainTickSteps?this.getAttributeDefaultValueInternal("XMainTickSteps"):this.__xMainTickSteps),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setShowXSubTicks(valueNew){}getShowXSubTicks(){return!1}setXSubTickSteps(valueNew){}getXSubTickSteps(){return 0}setXLabelFontFamily(valueNew){let convertedValue=TcHmi.ValueConverter.toFontFamily(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XLabelFontFamily")),convertedValue!==this.__xLabelFontFamily&&(this.__xLabelFontFamily=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XLabelFontFamily"}),this.__processXLabelFontFamily())}getXLabelFontFamily(){return this.__xLabelFontFamily}__processXLabelFontFamily(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setLabelFontFamily(this.__xLabelFontFamily),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXLabelFontSize(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XLabelFontSize")),convertedValue!==this.__xLabelFontSize&&(this.__xLabelFontSize=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XLabelFontSize"}),this.__processXLabelFontSize())}getXLabelFontSize(){return this.__xLabelFontSize}__processXLabelFontSize(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setLabelFontSize(void 0===this.__xLabelFontSize?this.getAttributeDefaultValueInternal("XLabelFontSize"):this.__xLabelFontSize),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXLabelFontSizeUnit(valueNew){}getXLabelFontSizeUnit(){return"px"}setXLabelFontWeight(valueNew){let convertedValue=TcHmi.ValueConverter.toFontWeight(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XLabelFontWeight")),convertedValue!==this.__xLabelFontWeight&&(this.__xLabelFontWeight=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XLabelFontWeight"}),this.__processXLabelFontWeight())}getXLabelFontWeight(){return this.__xLabelFontWeight}__processXLabelFontWeight(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setLabelFontWeight(void 0===this.__xLabelFontWeight?this.getAttributeDefaultValueInternal("XLabelFontWeight"):this.__xLabelFontWeight),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXLabelFontColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XLabelFontColor"));let resolverInfo=this.__objectResolvers.get("xLabelFontColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("XLabelFontColor")?.type});this.__objectResolvers.set("xLabelFontColor",{resolver,watchCallback:this.__onResolverForXLabelFontColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForXLabelFontColorWatchCallback)})}__onResolverForXLabelFontColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("xLabelFontColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__xLabelFontColor)||(this.__xLabelFontColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XLabelFontColor"}),this.__processXLabelFontColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"XLabelFontColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getXLabelFontColor(){return this.__xLabelFontColor}__processXLabelFontColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();if(null!=xAxis){const tempXLabelFontColor=this.__xLabelFontColor;TcHmi.isSolidColor(tempXLabelFontColor)?xAxis.setLabelFontColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(tempXLabelFontColor)):xAxis.setLabelFontColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw()}}}setXAxisWidth(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisWidth")),convertedValue!==this.__xAxisWidth&&(this.__xAxisWidth=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisWidth"}),this.__processXAxisWidth())}getXAxisWidth(){return this.__xAxisWidth}__processXAxisWidth(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setAxisWidth(void 0===this.__xAxisWidth?this.getAttributeDefaultValueInternal("XAxisWidth"):this.__xAxisWidth),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisColor"));let resolverInfo=this.__objectResolvers.get("xAxisColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("XAxisColor")?.type});this.__objectResolvers.set("xAxisColor",{resolver,watchCallback:this.__onResolverForXAxisColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForXAxisColorWatchCallback)})}__onResolverForXAxisColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("xAxisColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__xAxisColor)||(this.__xAxisColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisColor"}),this.__processXAxisColor()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"XAxisColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getXAxisColor(){return this.__xAxisColor}__processXAxisColor(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(TcHmi.isSolidColor(this.__xAxisColor)?xAxis.setAxisColor(TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__xAxisColor)):xAxis.setAxisColor(null),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisAutoScaling(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisAutoScaling")),convertedValue!==this.__xAxisAutoScaling&&(this.__xAxisAutoScaling=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisAutoScaling"}),this.__processXAxisAutoScaling())}getXAxisAutoScaling(){return this.__xAxisAutoScaling}__processXAxisAutoScaling(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setAutoScaling(void 0===this.__xAxisAutoScaling?this.getAttributeDefaultValueInternal("XAxisAutoScaling"):this.__xAxisAutoScaling),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisDecimalPlaces(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisDecimalPlaces")),convertedValue!==this.__xAxisDecimalPlaces&&(this.__xAxisDecimalPlaces=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisDecimalPlaces"}),this.__processXAxisDecimalPlaces())}getXAxisDecimalPlaces(){return this.__xAxisDecimalPlaces}__processXAxisDecimalPlaces(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setDecimalPlaces(void 0===this.__xAxisDecimalPlaces?this.getAttributeDefaultValueInternal("XAxisDecimalPlaces"):this.__xAxisDecimalPlaces),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}setXAxisFormat(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("XAxisFormat"));let resolverInfo=this.__objectResolvers.get("xAxisFormat");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("XAxisFormat")?.type});this.__objectResolvers.set("xAxisFormat",{resolver,watchCallback:this.__onResolverForXAxisFormatWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForXAxisFormatWatchCallback)})}__onResolverForXAxisFormatWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("xAxisFormat"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__xAxisFormat)||(this.__xAxisFormat=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"XAxisFormat"}),this.__processXAxisFormat()):TcHmi.Log.Controls.error(this,TcHmiBarChart.#tchmiFQN,{Attribute:"XAxisFormat"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getXAxisFormat(){return this.__xAxisFormat}__processXAxisFormat(){if(null!==this.__barChart&&void 0!==this.__barChart&&this.__attributesInitialized){let xAxis=this.__barChart.getXAxis();null!=xAxis&&(xAxis.setXAxisCallback(this.__executeXAxisFormatFunction),this.__barChart.setHasChanged(!0),this.__barChart.draw())}}__executeXAxisFormatFunction(result){if(void 0!==this.__xAxisFormat&&null!==this.__xAxisFormat&&!1!==this.__xAxisFormat.active){const args=[result];let res=null,f=new TcHmi.Function(this.__xAxisFormat);if(!f.isProcessedAsync())return f.executeEx(args,data=>{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<ii;i++)(this.__activeLegendElements&&this.__activeLegendElements.includes(i)||!this.__activeLegendElements&&(this.__barGraphDescriptionsInternal[i].defaultVisibility??1))&&(this.__barGraphDataSelected.push(this.__barGraphDataArray[i]),this.__barGraphDescriptionsSelected.push(this.__barGraphDescriptionsInternal[i]))}this.__attributesInitialized&&(this.__createLegend(),this.__drawBarChart())}setLegendFontFamily(valueNew){let convertedValue=TcHmi.ValueConverter.toFontFamily(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("LegendFontFamily")),convertedValue!==this.__legendFontFamily&&(this.__legendFontFamily=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"LegendFontFamily"}),this.__processLegendFontFamily())}getLegendFontFamily(){return this.__legendFontFamily}__processLegendFontFamily(){this.__isAttached&&(TcHmi.StyleProvider.processFontFamily(this.__elementLegend.children(".TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-label"),this.__legendFontFamily),this.__drawBarChart())}setLegendFontSize(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("LegendFontSize")),convertedValue!==this.__legendFontSize&&(this.__legendFontSize=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"LegendFontSize"}),this.__processLegendFontSize())}getLegendFontSize(){return this.__legendFontSize}__processLegendFontSize(){this.__isAttached&&(TcHmi.StyleProvider.processFontSize(this.__elementLegend.children(".TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-label"),this.__legendFontSize,"px"),this.__drawBarChart())}getLegendFontSizeUnit(){return"px"}setLegendFontStyle(valueNew){let convertedValue=TcHmi.ValueConverter.toFontStyle(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("LegendFontStyle")),convertedValue!==this.__legendFontStyle&&(this.__legendFontStyle=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"LegendFontStyle"}),this.__processLegendFontStyle())}getLegendFontStyle(){return this.__legendFontStyle}__processLegendFontStyle(){this.__isAttached&&(TcHmi.StyleProvider.processFontStyle(this.__elementLegend.children(".TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-label"),this.__legendFontStyle),this.__drawBarChart())}setLegendFontWeight(valueNew){let convertedValue=TcHmi.ValueConverter.toFontWeight(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("LegendFontWeight")),convertedValue!==this.__legendFontWeight&&(this.__legendFontWeight=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"LegendFontWeight"}),this.__processLegendFontWeight())}getLegendFontWeight(){return this.__legendFontWeight}__processLegendFontWeight(){this.__isAttached&&(TcHmi.StyleProvider.processFontWeight(this.__elementLegend.children(".TcHmi_Controls_Beckhoff_TcHmiBarChart-template-legend-checkbox-label"),this.__legendFontWeight),this.__drawBarChart())}static Position=Position;static LineStyle=LineStyle;static Orientation=Orientation;static ValueUnit=ValueUnit}})();TcHmi.Controls.registerEx("TcHmiBarChart","TcHmi.Controls.Beckhoff",TcHmiBarChart,{injectInGlobalObject:!0});export{TcHmiBarChart as Control};