Create a column chart with sliceBy support
- Last UpdatedApr 22, 2022
- 1 minute read
This example produces a column chart with the sliceBy parameter. Note that:
-
The layout selected is “All Numeric” and the associated IsActiveGroup property is set to true.
-
Analog and non-analog tags are added in the TagDetails.
-
The sliceByTag propetry under LayoutProperties in the active layout should be set to a non-analog tag. The tag is added through TagsDetails.
-
timeAggregate under LayoutProperties in the active layout should be set to EVENT.
{
"upsert": {
"LayoutInfo": {
"Layout": [
{
"Type": "Column Chart",
"Name": "All Numeric",
"IsActiveGroup": "true",
"Tags": [
],
"LayoutProperties": {
"selectedOptions": {
"limitLine": {
"visible": false,
"position": 10,
"text": "Limit Line Text"
},
"aggregation": "Integral",
"sliceByTag": "Weather.Auckland.Clouds",
"timeAggregate": "EVENT"
}
}
},
{
"Type": "",
"Name": "",
"IsActiveGroup": "false",
"Tags": [
],
"UIProperties": ""
},
{
"Type": "",
"Name": "None",
"IsActiveGroup": "false",
"Tags": [
],
"UIProperties": ""
}
],
"TagDetails": [
{
"TagName": "Weather.Auckland.Weather ID",
"IsSelected": "true"
},
{
"TagName": "Weather.Auckland.Clouds Text",
"IsSelected": "false"
}
],
"TimeAggregate": 4,
"TimePreset": 2
},
"UserID": "wally.wonderware@gmail.com",
"CreatedUserFirstName": "Wally",
"ContentType": 1,
"ChartType": "Column Chart",
"Name": "Test ContentAPI-Layout-Case",
"Keywords": [
"sliceby"
],
"Location": "/",
"SharedMode": 98
}
}