ChartDirector 7.1 (.NET Edition)

XYChart.setTrimData


Usage

[C#]public void setTrimData(int startPos [, int len ]);
[VB]Public Sub setTrimData(startPos As Integer [, len As Integer ])

Description

Uses only a subset of the data series to draw charts.

In finance charts, "lead data" are commonly needed to plot technical indicators. For example, to show a 20-days moving average line for 30 days, one needs 50 days of data. It is because computing 20-days moving average requires 20 days of "lead data". The setTrimData method is a convenience method for trimming off these "lead data" so they will not appear on the chart.

Arguments

ArgumentDefaultDescription
startPos(Mandatory)The index for the first data position to use for plotting charts.
len7fffffffThe length of the data points used for plotting charts.

Return Value

None