Overview
Problem
When there is only one series or no series in the chart, each category's column in the chart will only display the same color, as shown in the following figure.
However, sometimes it is necessary to display the columns of each category in different colors to distinguish them, as shown in the following figure.
Implementation Method
Choose Special Effect > Condition Display to configure a different color for each column.
Example
1. Create a general report and create a dataset named ds1. The database query is SELECT * FROM Sales_Volume.
2. Merge required cells, and insert Column Chart, as shown in the following figure.
3. Configure different colors for each category in Condition Display, as shown in the following figure.
4. The following figure shows the preview of the effect.
PC
Mobile Terminal
Template Download
For details, you can click to download the template Chart Custom Category Color.cpt.