Data (Object)

Member of:

(Live) BarChart object, (Live) BlockChart object, Bullet object, (Live) FunnelChart object, (Live) LineChart, (Live) PieChart object, (Live) RadarChart object, Slider object, Speedometer object, Thermometer object, TrafficLight object

Description:

Represents items in the data layout (outliner), which includes actual and target fact value, and axis objects used in gauges, (Live) charts and sliders.

When referencing a Data (Object), you must specify the section name from which the column is drawn in the SourceSectionName (Property). Otherwise, it is not clear which section to use if there are multiple sections with the same column name

// Associate data with chart
// NOTICE: SourceSectionName must be specified first BarChart.SourceSectionName = "Results"; BarChart.Facts.Add("Unit Sales"); BarChart.Categories.Add("Region");

Example:

This example shows how to remove the Unit Sales fact object, and add the Amount Sales fact object:

Speedometer.Facts.Remove("Unit Sales")
Speedometer..SourceSectionName = "Results”
Speedometer.Facts.Add("Amount Sales")

Methods:

None

Properties:

None

Objects and Collections:

Categories collection, Facts collection, TargetFact collection