Skip to content

Commit 01c6200

Browse files
joshstovallzibs
andauthored
Update custom-bars.md (#574)
Co-authored-by: Eli Zibin <1131641+zibs@users.noreply.github.com>
1 parent f03f5cf commit 01c6200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/cartesian/guides/custom-bars.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ function MyChart() {
106106
<LinearGradient
107107
start={vec(0, 0)}
108108
end={vec(0, 400)}
109-
{/* 👇 using the selected bar, customize children as desired */}
109+
// 👇 using the selected bar, customize children as desired
110110
colors={
111-
i == activeXItem
111+
index == activeXItem
112112
? ["green", "blue"]
113113
: ["#a78bfa", "#a78bfa50"]
114114
}

0 commit comments

Comments
 (0)