`[C#] ` | `public ContourLayer addContourLayer(double[] xData, double[] yData, double[] zData);` |

`[VB] ` | `Public Function addContourLayer(xData As Double(), yData As Double(), zData As Double()) As ContourLayer` |

ChartDirector 6.2 (.NET Edition)

XYChart.addContourLayer

Usage

`[C#] ` | `public ContourLayer addContourLayer(double[] xData, double[] yData, double[] zData);` |

`[VB] ` | `Public Function addContourLayer(xData As Double(), yData As Double(), zData As Double()) As ContourLayer` |

Description

Adds a contour layer to the XYChart, and specify the data sets 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.

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.

© 2017 Advanced Software Engineering Limited. All rights reserved.