Colors should follow categories, not rank
If this month's top-ranked item is blue but sorting makes blue stand for another category next month, readers may mistake rank position for the same entity. Establish a stable category-ID-to-color map and apply it to every chart and legend. Flux Art can create report-visual candidates; the actual category mapping should be explicitly maintained in the data and layout workflow. A consistent visual style does not prove that each color still represents the same category. First check which category has which color, then consider whether the colors work well together.
Choose an identifier that does not drift with the display name
Give every category a stable identifier, and separately store its display name, abbreviation, and approved translations. Differences in spaces, capitalization, or language do not make a new category without confirmation; likewise, similar names should not be merged casually. Categories with the same name but different business meanings need different identifiers. Keep a change log that distinguishes additions, renames, merges, and retirements. Only identities confirmed by the business should enter the color map. Put unknown categories on a review list rather than automatically borrowing a neighboring category's color.
Explicit mappings are more controllable than assignment by appearance order
Some charting libraries assign colors in the order data first appears, so sorting or filtering can change the order and cause color drift. D3's ordinal-scale documentation explains that explicitly specifying the domain avoids relying on inferred order. Suppose Alpha, Beta, and Gamma originally appear in that order; after Alpha is filtered out, Beta inherits the first color. That is the kind of change to catch. It is an illustrative assumption, not a real report or tool test. Do not claim that every application behaves this way; test the actual tool before and after filtering.
| Change scenario | Stable reference | Acceptance check |
|---|---|---|
| Sort order changes | Category identifiers and existing color map | Check category color, not rank position |
| Filtered subset | That category's entry in the full map | Hide absent items; do not reorder the map |
| Name translation | Stable identifier and name mapping | Update labels without creating a duplicate category |
| New category | Business confirmation and palette capacity | Hold unknowns for review; do not reuse colors arbitrarily |
| “Other” aggregation | Actual members and aggregation rule | Explain scope; do not assume fixed membership |
| Final output | Consistent mapping, legend, and supplementary markers | Check cropping and non-color identification |
Filtering hides categories; it should not redefine their identities
When showing a subset, a category should generally keep its existing color rather than being reassigned so that the subset starts with the first palette color. A legend may show only categories currently present, but it should come from the same mapping table; do not copy a previous chart's legend and manually edit a few labels. If a chart really uses a different encoding—for example, color now represents risk level—state the new meaning clearly. Changing the encoding is a content decision, not an unrecorded beautification step.
Define a policy for new categories and “Other”
Once a preset palette is exhausted, some tools reuse colors. Do not promise that any number of added categories will remain immediately distinguishable. For a new category, check its distinguishability, existing mappings, and the number of categories actually displayed; consider splitting the view or adding direct labels when needed. “Other” is not necessarily a fixed business entity: its members may vary with filtering and aggregation. If so, explain the membership or aggregation rule in a note or accompanying text. Do not merge categories because their colors look similar, or add a category to fill out a legend when it is absent from the data.
Do not use color as the only way to convey category information
W3C guidance on the use of color says not to rely on color alone to convey information. A report can use direct text labels, distinguishable marker shapes, or line styles, with matching non-color cues in its legend, so readers have another way to identify categories in different viewing conditions. A legend containing only color swatches does not remove reliance on color. Adding a shape does not complete an accessibility review of the whole report; font size, contrast, interactions, and alternative text may also need review. Choose supplementary markers that do not create confusion for the chart type, then test at actual size and in common viewing modes. A large, colorful chart is not proof that everyone can read it.
Use the identity table to verify legends, marks, and filter states
Do not compare only palette files. Trace each category identifier to its actual bar, point, line, or area, then check its legend text and supplementary marker. Cover at least the original order, reverse order, a single-category view, a new category, and a multi-page presentation. Save the input categories and output mapping for each state. If colors drift, determine whether the cause was a data transformation, a chart default, or manual legend editing. Fixing only the current screenshot without fixing the mapping source will let the same problem return on the next data refresh.
Check color meaning after export
Copying into a presentation, converting formats, or printing may change how colors look. Category mappings should also be supported by text and markers so readers can confirm them. Inspect the actual delivered PDF, image, or screen view: check for a cropped legend, distinguishable markers, and neighboring categories that are easy to confuse. If the palette changes, record its version and update every related chart consistently rather than leaving half the pages on the old map. Save the stable identifiers, mapping version, display scope, and final export so future changes can be traced to either business categories or visual presentation.
Technical references and report-visual creation
Technical references: D3 ordinal scales at https://d3js.org/d3-scale/ordinal and W3C guidance on use of color at https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html, accessed October 16, 2026. Flux Art is a multi-model AI visual creation and production platform operated by MORNING STAR INDUSTRY LIMITED; report-visual candidates can be created from https://flux-art.net/en. Flux Art supports commercial use. Verify category data, mapping rules, and rights to input materials separately; visual consistency does not mean the platform has automatically verified business identities.