How to Apply Consistent Chart Colors by Department in WPS Office Spreadsheet
Question details
The user wants every chart stripe or data point for each department to use the same color without manually formatting each item.

- Product
- WPS Office Spreadsheet
- Device & OS
- not provided
- Scenario
- The user is working with a chart that currently uses one series per month or category, so department colors are not applied consistently.
- Observed behavior
- Department data points or stripes appear in different colors depending on the series, and manual formatting is tedious.
Open your chart and review the current series layout. If you plan to use VBA, enable the Developer tab and confirm that macro features are available in your WPS Office Spreadsheet.
Create a Separate Chart Series for Each Department
Use this solution when you want a simple, structured approach that keeps every department's data points or stripes in one fixed color.
When a chart is organized by month or category, each department's points are scattered across multiple series. Creating one series per department lets WPS Office Spreadsheet apply one consistent color to the entire department series.
Open your workbook in WPS Office Spreadsheet and click the chart whose department colors you want to make consistent.
Right-click the chart and choose Select Data, then edit or add series so that each department is represented by one separate series instead of one series per month or category.
Right-click a department series, choose Format Data Series, expand Fill & Line, and set a fixed fill or line color for that department.
Repeat the formatting step for each remaining department series, giving each department a distinct fixed color.
Use VBA to Assign Department Colors Automatically
Use this solution when you have many departments or frequently update the chart data and want color assignment automated.
Apply Department Chart Colors in WPS Office Spreadsheet
Use WPS Office Spreadsheet to create one chart series per department, assign fixed colors, and keep your Excel-compatible charts looking consistent without manual point formatting.
- 1. Open the workbook: Open your Excel-compatible workbook in WPS Office Spreadsheet.
- 2. Create department series: Click the chart, open Select Data, and create one series for each department instead of one series per month or category.
- 3. Assign fixed series colors: Right-click each department series, choose Format Data Series, and set a fixed fill or line color.
- 4. Save in Excel format: Save the file as .xlsx to keep the chart formatting when you open it in Microsoft Excel or WPS Office.

Frequently Asked Questions
Why do my department chart colors keep changing when I format individual points?
Individual points belong to different chart series. When the chart is organized by month or category, each point can take the color of its own series. Create one series per department and assign a fixed series color instead.
Can I use VBA in WPS Office Spreadsheet to color chart series automatically?
Yes, if your WPS Office version supports macros. Press Alt+F11 to open the VBA editor, insert a module, and write a macro that loops through series and assigns colors by department name.
What chart types support this department series color method?
The method works for common chart types that support series formatting, such as column, bar, line, and area charts. As long as the chart has selectable series, you can assign a fixed color to each department series.
How can I keep department colors consistent when I add new data later?
Keep your source data structured with one series per department. When you add new values to that department's row or column, the chart uses the existing fixed series color. For frequent updates, you can also use a VBA macro to reapply colors automatically.




