
This example demonstrates the basic steps in creating 3D scatter charts.
- Create a ThreeDScatterChart object using ThreeDScatterChart.ThreeDScatterChart.
- Specify the position and size of the plot region using ThreeDChart.setPlotRegion.
- Add a scatter group to the chart using ThreeDScatterChart.addScatterGroup. In this example, the symbol color is set to SameAsMainColor, which means the color depends on the z-coordinate as according to the color axis (color legend). The color axis can be accessed using ThreeDChart.colorAxis.
- Set the position of the color axis (the color legend) using ThreeDChart.setColorAxis.
- Add chart and axis titles using BaseChart.addTitle and Axis.setTitle.
- Generate the chart using BaseChart.makeChart2.