ChartDirector 7.0 (PHP Edition)

XYChart.setTrimData


Usage

setTrimData(startPos [, len ])

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