ChartDirector 7.0 (Perl Edition)
XYChart.addContourLayer
Usage
addContourLayer(xData, yData, zData)
Description
Adds a contour layer to the XYChart, and specify the data to use for drawing the layer.
ChartDirector supports both gridded and scattered data. If the data points are on a rectangular grid will no missing points, they will be handled as gridded data. Otherwise, they will be handled as scattered data.
For gridded data, you may provide the x and y values of the grid, and the z values of the data points. For a 10 x 15 grid, that means the x data series should have 10 values, the y data series should have 15 values, and the z data series should have 150 values. The x and y data series should be strictly monotonic (either strictly increasing or strictly decreasing).
For both gridded and scattered data, you may also provide the (x, y, z) values of the data points. For example, for 150 data points, the x, y and z data series should each have 150 values. ChartDirector will automatically detect if the data points are gridded or scattered.
Arguments
Argument | Default | Description |
xData | (Mandatory) | An array of numbers representing the x data series. |
yData | (Mandatory) | An array of numbers representing the y data series. |
zData | (Mandatory) | An array of numbers representing the z data series. |
Return Value
A
ContourLayer object representing the contour layer created.
© 2021 Advanced Software Engineering Limited. All rights reserved.