ChartDirector 7.1 (.NET Edition)

Contour Plot Cross Section




This example demonstrates adding cross sections to a contour chart.

After drawing a contour chart, ContourLayer.getCrossSection can be used to obtain the cross section between two given points on the chart. The cross section is represented as the z values along the straight line joining the two points. In this example, these z values are used to plot area charts to visualize the cross sections.

The main source code listing of this sample program is included at the end of this section. The code consists of the following main parts:

Source Code Listing