ChartDirector 7.0 (Python 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
Argument | Default | Description |
startPos | (Mandatory) | The index for the first data position to use for plotting charts. |
len | 7fffffff | The length of the data points used for plotting charts. |
Return Value
None
© 2021 Advanced Software Engineering Limited. All rights reserved.