
This example illustrates a horizontal bar chart with invisible axes and plot area, using a gradient color for the bars.
The key features demonstrated in this example are:
- Swap the x and y axes to create a horizontal bar chart using XYChart.swapXY.
- Set the plot area background, border and grid line colors to Transparent using XYChart.setPlotArea.
- Set the x axis, y axis and y axis labels to Transparent using Axis.setColors.
- Set the x axis font style to deep red 10 points Arial Bold Italic by using the TextBox object representing the x axis label prototype (obtained by Axis.setLabels).
- Set the aggregate bar label style to deep red 10 points Times Bold Italic using Layer.setAggregateLabelStyle.
- Customize the aggregate bar labels by using Layer.setAggregateLabelFormat.
- Create a gradient color for the bars that changes smoothly from dark green to white along a horizontal direction using BaseChart.gradientColor.