Create an XY plot
- Last UpdatedApr 22, 2022
- 1 minute read
This example produces an XY Plot chart using the "mph" tag group. it specifies a tag for the X axis and sets scaling to "true" for both X and Y axes.
Note: The layout object corresponds to the engineering unit of X axis tag should be present in layout object.
{
"upsert": {
"Name": "XYPlot Chart ContentWithScript",
"UserID": "wally.wonderware@gmail.com",
"CreatedUserFirstName": "Wally",
"CreatedUserLastName": "Wonderware",
"ChartType": "XY Plot",
"TimePreset": "OffsetInMilliSecs:16028059",
"TimeAggregate": "2",
"LayoutInfo": {
"Layout": [
{
"Name": "mph",
"IsActiveGroup": "true",
"LayoutProperties": {
"selectedOptions": {
"xAxis": {
"label": "Dallas.Wind Speed",
"tag": "Weatherapp.Dallas.Wind Speed"
},
"scaleX": true,
"scaleY": true,
"displayLines": false,
"aggregation": "avg_xy"
}
}
}
],
"TagDetails": [
{
"TagName": "Weatherapp.Auckland.Wind Speed",
"IsSelected": "true"
},
{
"TagName": "Weatherapp.Dallas.Wind Speed",
"IsSelected": "true"
}
]
},
"Keywords": [
"windy"
],
"Scope": "/"
}
}