
A multi-color bar chart is a bar chart in which each bar has a different color. This example creates a multi-color bar chart and demonstrates the following ChartDirector features:
- Use BaseChart.gradientColor2 with pre-defined constant goldGradient and blueMetalGradient to create gradient colors with metallic look and feel.
- Set the background color of the chart with 3D border effect using BaseChart.setBackground.
- Set the background color of the title box with 3D border effect using Box.setBackground.
- Create a multi-color bar layer using XYChart.addBarLayer3.
- Set 3D border effect for the bars using Layer.setBorderColor.