
This example extends the Simple Area Chart example by decorating the chart using a number of chart formatting features.
- Create a XYChart object with background color and 3D border using XYChart.XYChart.
- Set the background, border and grid colors of the plot area using XYChart.setPlotArea.
- Add a title to the chart using BaseChart.addTitle. The title text is represented using CDML for including star icons in the text.
- Add titles to the axes using Axis.setTitle.
- Set the axis widths using Axis.setWidth.
- Use a semi-transparent gradient color as the area color. The gradient color is created using BaseChart.gradientColor.
- Add a logo at the bottom right corner of the plot area as custom text using BaseChart.addText with BottomRight alignment. The logo includes images and text encoded using CDML.