Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual
Page 234

FactoryTalk EnergyMetrix Software
234
BarChart Object
The BarChart object is used to display a bar chart on the report. The bar charts can display
one or more data series in a side-by-side or stacked format. Side-by-side and stacked can
be combined in the same chart.
Instancing
The BarChart object is a creatable object.
Accessing
MPR script code can create BarChart objects as needed by using the New operator.
Properties
Property
R/W
Description
Border As Boolean
R/W
Controls the visibility of a border around the entire bar chart area,
including title and legend areas. Default is false
Title.Text As String
R/W
The title that will appear above the bar chart
XAxis As Axis
R
Axis properties for the X axis of the bar chart
XAxisSort As String
R/W
Controls the left-to-right sort order of bars in the chart. Allowable
values are:
‘XValue ASC’ (default), which sorts by the data label name in
ascending order. This is the same as in previous versions
‘XValue DESC’, which sorts by the data label name in
descending order
‘Value ASC’, which sorts by the value of data in each bar in
ascending order
‘Value DESC’, which sorts by the value of data in each bar in
descending order
YAxis As Axis
R
Axis properties for the Y axis of the bar chart
ChartType As ChartType
W
Controls the type of chart shown. See the Enums. Default is Bar
PointLabels As Boolean
W
Controls the display of data values above chart markers. Default is
false
SeriesSecondaryYAxis As
Boolean
W
The current data series will use the primary Y axis if false, the
secondary Y axis if true. Default is false
SeriesLegendBox As Boolean
R/W
Controls the visibility of the legend box. Default is false
SeriesLegend As String
W
The legend text for the current data series
SeriesStacked As Boolean
W
Allows stacking of bar chart data series. If true, the current data
series will be stacked on the previous bar chart data series. Default
is false
SeriesType As ChartType
W
Sets the chart type for the current data series. See the Enums.
Default is bar