Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual

Page 235

Advertising
background image

9

ReportsPlus

235

Methods

Enums

Example

This example Multi-Purpose Report script creates a chart with three data series. The first
two data series will be displayed as stacked bars and the third data series will be displayed
as a normal bar next to the stacked bars.

Dim barChart As New BarChart()

barChart.AddData("Jan", 100)

barChart.AddData("Feb", 200)

barChart.AddData("Mar", 300)

barChart.NextSeries

barChart.SeriesStacked = true

barChart.AddData("Jan", 5420)

barChart.AddData("Feb", 3500)

barChart.AddData("Mar", 10405)

barChart.NextSeries

barChart.AddData("Jan", 3340)

barChart.AddData("Feb", 5200)

barChart.AddData("Mar", 1500)

Report.Add(barChart, 3, 2, 5, 3)

Col Object

The Col object represents one column in a Grid object

Method

Description

BarChart() As BarChart

Create a BarChart object

AddData(Data As
Double)

Add a data point to the bar chart

AddData(Timestamp As
DateTime, Data As
Double)

Add a time series data point to the bar chart

NextSeries()

Close the current data series and create a new one. This is
used when the bar chart will contain multiple data series.
When a BarChart object is created, the first series is
automatically opened so this method should not be called if
the bar chart is only to display one series

Constant

Description

ChartType.Bar
ChartType.Gantt
ChartType.Trend

Specifies a chart type

Advertising