
This example creating a stacked area chart with 3D effects. The followings are key features of this example:
- Add a stacked area layer using XYChart.addAreaLayer2 with the Stack pre- defined constant.
- Add multiple data sets to the area layer using Layer.addDataSet.
- Add a legend to the chart using BaseChart.addLegend
- Add a title to the y-axis using Axis.setTitle, and draw the title upright (instead of rotated 90 degrees) using TextBox.setFontAngle. Note that the title can contain multiple lines using line break characters.