[Lens][ColorMapping] Auto Assignment breaks for gradient with 1 or more assignments #209164
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version:
latest
Describe the bug:
When assigning a gradient palette to terms in a Lens chart using the new color mapping UI, assigning an auto assignment incorrectly caps the color loop at the number of auto assignments instead of the total assignments.
Zight.Recording.2025-01-31.at.01.14.12.PM.mp4
Steps to reproduce:
Expected behavior:
Auto assignments should be colored correctly according to the defined gradient.
Any additional context:
This code is to blame...
kibana/src/platform/packages/shared/kbn-coloring/src/shared_components/color_mapping/color/color_handling.ts
Lines 110 to 112 in 1b61f38
The text was updated successfully, but these errors were encountered: