IPrxChart.SourceType

Syntax

SourceType: PrxChartSourceType;

Description

The SourceType property determines type of a chart source.

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