Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Historian

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:

  1. The layout selected is “All Numeric” and the associated IsActiveGroup property is set to true.

  2. Analog and non-analog tags are added in the TagDetails.

  3. The sliceByTag propetry under LayoutProperties in the active layout should be set to a non-analog tag. The tag is added through TagsDetails.

  4. 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

}

}

Related Links
TitleResults for “How to create a CRG?”Also Available in