IPrxChart.Slice

Syntax

Slice : IPrxSlice;

Description

The Slice property determines the slice to be used as a data source for a chart. To use the slice as a data source, set the SourceType property to Slice.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;

Var

Report: IPrxReport;

Chart: IPrxChart;

Source: IPrxDataSource;

Begin

Chart := (Report.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IPrxChart;

Chart.SourceType := PrxChartSourceType.Slice;

Source := Report.DataSources.FindById("CUBE");

Chart.Slice := Source.Slices.FindByName("Slice1");

End Sub UserProc;

After executing the example the specified slice is to be used as a data source of the chart.

See also:

IPrxChart