Here the Simple gauge needle is not updated with respect to the value binded.
please refer the following gauge property configuration and give the needful suggestions
[
{
"type": "ia.chart.gauge",
"version": 0,
"props": {
"outerAxis": {
"width": 5,
"color": "#000000",
"ranges": [
{
"start": 0,
"end": 30000,
"width": 8,
"color": "#808080"
}
],
"needle": {
"reach": 90,
"color": "#000000"
},
"tickMarks": {
"color": "#000000"
},
"data": "value",
"percentRadius": 100,
"show": true
},
"innerAxis": {
"maxValue": 80,
"width": 5,
"color": "#FFCA8A",
"ranges": [
{
"start": 0,
"end": 0,
"width": 5,
"color": "#FF47FF"
}
],
"needle": {
"color": "#808080"
},
"tickMarks": {
"color": "#808080",
"thickness": 0
},
"data": "secondaryValue",
"percentRadius": 85,
"show": false
},
"animate": true,
"style": {
"classes": [],
"color": "#000000",
"fontFamily": "Arial",
"fontSize": 10,
"fontWeight": "900",
"letterSpacing": "0.5",
"textAlign": "center",
"wordSpacing": 0.5,
"wordWrap": "normal"
},
"backgroundColor": "#D5D5D5"
},
"meta": {
"name": "Gauge_0"
},
"position": {
"basis": "161px"
},
"custom": {},
"propConfig": {
"props.outerAxis.maxValue": {
"binding": {
"type": "expr",
"config": {
"expression": "1.15*{this.props.value}"
},
"transforms": [
{
"expression": "tofloat({value})",
"type": "expression"
}
]
}
},
"props.outerAxis.minValue": {
"binding": {
"type": "expr",
"overlayOptOut": true,
"config": {
"expression": "0.85*{this.props.value}"
},
"transforms": [
{
"expression": "tofloat({value})",
"type": "expression"
}
]
}
},
"props.value": {
"binding": {
"type": "query",
"config": {
"returnFormat": "scalar",
"polling": {
"enabled": true,
"rate": "300"
},
"queryPath": "Online_KWH",
"parameters": {
"ll": "{..../Line_Dropdown.props.value}",
"st": "{..../DateTimeInput.props.value}",
"ma": "{..../Machine_Dropdown.props.value}",
"bg": "{..../BG_Dropdown.props.value}",
"pl": "{..../Plant_Dropdown.props.value}",
"sp": "dateArithmetic({..../DateTimeInput.props.value},18,\"hours\")"
}
}
}
}
}
}
]
[
{
"type": "ia.container.flex",
"version": 0,
"props": {
"direction": "column",
"justify": "space-between",
"style": {
"overflow": "visible",
"backgroundColor": "#CCCCFF",
"borderColor": "#D5D5D5",
"borderStyle": "groove",
"color": "#000000"
}
},
"meta": {
"name": "EnergyContainer"
},
"position": {
"basis": "315px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "Energy",
"style": {
"fontSize": 20,
"fontWeight": "bolder",
"textAlign": "center"
}
},
"meta": {
"name": "Label"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.chart.gauge",
"version": 0,
"props": {
"outerAxis": {
"width": 5,
"color": "#000000",
"ranges": [
{
"start": 0,
"end": 30000,
"width": 8,
"color": "#808080"
}
],
"needle": {
"reach": 90,
"color": "#000000"
},
"tickMarks": {
"color": "#000000"
},
"data": "value",
"percentRadius": 100,
"show": true
},
"innerAxis": {
"maxValue": 80,
"width": 5,
"color": "#FFCA8A",
"ranges": [
{
"start": 0,
"end": 0,
"width": 5,
"color": "#FF47FF"
}
],
"needle": {
"color": "#808080"
},
"tickMarks": {
"color": "#808080",
"thickness": 0
},
"data": "secondaryValue",
"percentRadius": 85,
"show": false
},
"animate": true,
"style": {
"classes": [],
"color": "#000000",
"fontFamily": "Arial",
"fontSize": 10,
"fontWeight": "900",
"letterSpacing": "0.5",
"textAlign": "center",
"wordSpacing": 0.5,
"wordWrap": "normal"
},
"backgroundColor": "#D5D5D5"
},
"meta": {
"name": "Gauge_0"
},
"position": {
"basis": "161px"
},
"custom": {},
"propConfig": {
"props.outerAxis.maxValue": {
"binding": {
"type": "expr",
"config": {
"expression": "1.15*{this.props.value}"
},
"transforms": [
{
"expression": "tofloat({value})",
"type": "expression"
}
]
}
},
"props.outerAxis.minValue": {
"binding": {
"type": "expr",
"overlayOptOut": true,
"config": {
"expression": "0.85*{this.props.value}"
},
"transforms": [
{
"expression": "tofloat({value})",
"type": "expression"
}
]
}
},
"props.value": {
"binding": {
"type": "query",
"config": {
"returnFormat": "scalar",
"polling": {
"enabled": true,
"rate": "300"
},
"queryPath": "Online_KWH",
"parameters": {
"ll": "{..../Line_Dropdown.props.value}",
"st": "{..../DateTimeInput.props.value}",
"ma": "{..../Machine_Dropdown.props.value}",
"bg": "{..../BG_Dropdown.props.value}",
"pl": "{..../Plant_Dropdown.props.value}",
"sp": "dateArithmetic({..../DateTimeInput.props.value},18,\"hours\")"
}
}
}
}
}
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"justify": "center"
},
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "59px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"borderStyle": "none",
"fontSize": 20,
"fontWeight": "bolder",
"textAlign": "center",
"textOverflow": "ellipsis",
"textShadow": "#D5D5D5"
}
},
"meta": {
"name": "Label_0"
},
"position": {
"basis": "81px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"type": "property",
"config": {
"path": ".../Gauge_0.props.value"
},
"transforms": [
{
"formatType": "numeric",
"formatValue": "number",
"type": "format"
}
]
}
}
}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "kWh",
"style": {
"fontSize": 20,
"fontWeight": "bolder",
"textAlign": "center"
}
},
"meta": {
"name": "Label_1"
},
"position": {
"basis": "50px"
},
"custom": {}
}
]
}
]
}
]