Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual
Page 256

FactoryTalk EnergyMetrix Software
256
row(0) = tabSpace + group.Name
BuildNestedGroupsGrid(group, " " + tabSpace)
Next group
End Sub
PieChart Object
The PieChart object is used to create a pie chart on the report.
Instancing
The PieChart object is a creatable object.
Accessing
MPR script code can create PieChart objects as needed by using the New operator.
Properties
Methods
Report Object
The Report object provides access to various aspects of the report. It can be considered the
‘top-level’ object of a report.
Instancing
The Report object is not a creatable object.
Accessing
The Report object is accessible from a MPR script via the Report global variable.
Property
R/W
Description
Border As Boolean
R/W
Controls the visibility of a border around the entire pie
chart area, including title and legend areas. Default value
is false
Chart3D As Boolean
R/W
Set to false to display a 2D pie chart and to true to display
a 3D pie chart. Default value is true
CustomFormat As
String
R/W
Set a custom format to be used for displaying the pie
chart data labels. This format is applied to each point as it
is added to the chart. Default format string is "#"
Shadow As Boolean
R/W
Add a shadow effect to 2D pie chart. Default value is true
Title.Text As String
R/W
The title that will appear above the pie chart
Method
Description
PieChart() As PieChart
Create a PieChart object
AddData(Name As String, Data As
Double)
Add a slice of data to the pie chart