Table of Contents

How to fix colors in N4V FOR WEBI charts when the number of series changes

Anonymised summary of support ticket #910476 (2023-11-03)

Symptom

Colors assigned to data series in N4V FOR WEBI charts are not preserved when the number of displayed series changes after sorting or filtering. The palette adjusts automatically based on the new series order.

Environment

N4V FOR WEBI extensions for SAP BusinessObjects Web Intelligence (Webi).

Resolution

  1. Ensure the dimension object used in the chart contains all possible values (e.g., all criticality levels: 1, 2, 3, 4), even if some values have no associated measure (use a null measure for missing values).
  2. Apply a consistent sorting order (e.g., descending) to the dimension to maintain color alignment across different chart configurations.
  3. Hide null values in the chart display to avoid visual gaps or misalignments.

Other resolution

This workaround ensures that the color palette remains consistent across charts with varying numbers of series, provided the dimension values are fixed and sorted uniformly.