Skip to content

Commit

Permalink
Fixed wrong behavior of the coloring in the percentage mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed Mar 8, 2022
1 parent 450c051 commit 99b174a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export const GaugeComponent: FC<GaugeRenderProps> = memo(
const value = getPerviousSectionValue(val.value, bands);

const overridedColor = overrideColor(
args.percentageMode ? value : val.value,
value,
args.percentageMode ? bands : args.palette?.params?.stops ?? [],
tickFormatter
);
Expand Down

0 comments on commit 99b174a

Please sign in to comment.