How color interpolation works in GaugeChart
masterThe colors prop behavior depends on the length of the array relative to nrOfLevels:
- Exact Match: If
colors.length === nrOfLevels, each segment is assigned the corresponding color from the array from left to right. - Interpolation: If the lengths do not match, the component selects the first and last colors from the array and interpolates the colors for the segments in between using
d3.interpolateHsl.