Skip to content

Commit

Permalink
Lukas feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Apr 15, 2024
1 parent 56a8cb1 commit 833b304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/x-charts/src/models/colorMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface ContinuousColorConfig<Value = number | Date> {
*/
max?: Value;
/**
* The colors to render. Can either be and array with the extrem colors, or an interpolation function.
* The colors to render. It can be an array with the extremum colors, or an interpolation function.
*/
color: [string, string] | ((t: number) => string);
}
Expand All @@ -24,7 +24,7 @@ export interface PiecewiseColorConfig<Value = number | Date> {
thresholds: Value[];
/**
* The colors used for each band defined by `thresholds`.
* Should contain N+1 colors with N the number of thresholds.
* Should contain N+1 colors, where N is the number of thresholds.
*/
colors: string[];
}
Expand All @@ -38,6 +38,7 @@ export interface OrdinalColorConfig<Value = number | Date | string> {
values?: Value[];
/**
* The color palette.
* Items equal to `values[k]` will get the color of `colors[k]`.
*/
colors: string[];
/**
Expand Down

0 comments on commit 833b304

Please sign in to comment.