Skip to content

Commit 15c5e13

Browse files
committed
clarify textColor behaviour
1 parent 0dbcf9f commit 15c5e13

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/grid/src/DataBarGridModel.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ export interface DataBarOptions {
3535
columnMax: number;
3636
axis: AxisOption;
3737
color: GridColor | GridColor[];
38+
/**
39+
* The text color for the cell, resolved from format rules/bar color.
40+
* If the user has explicitly set a text color via formatting, that color is used.
41+
* Otherwise it defaults to the databar's bar color.
42+
*/
3843
textColor: GridColor;
3944
valuePlacement: ValuePlacementOption;
4045
opacity: number;

0 commit comments

Comments
 (0)