Skip to content

Commit

Permalink
Add colors and colorBy to common props to enable access to colors in …
Browse files Browse the repository at this point in the history
…a custom layer
  • Loading branch information
lemps committed Sep 24, 2024
1 parent 0f5ac2f commit 284b547
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bar/src/Bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ const InnerBar = <RawDatum extends BarDatum>({
() => ({
borderRadius,
borderWidth,
colorBy,
colors,
enableLabel,
isInteractive,
labelSkipWidth,
Expand All @@ -269,6 +271,8 @@ const InnerBar = <RawDatum extends BarDatum>({
[
borderRadius,
borderWidth,
colorBy,
colors,
enableLabel,
getTooltipLabel,
isInteractive,
Expand Down

0 comments on commit 284b547

Please sign in to comment.