Skip to content

Commit 4e619fa

Browse files
committed
Fixed bug with first bar and added component color
1 parent 21e1a61 commit 4e619fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/BarGraph.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ const BarGraph = props => {
105105
min={'outer min'}
106106
max={'first if'}
107107
// x={100}
108-
x={xMax / (Object.keys(data.barStack[0]).length) - 2}
108+
x={xMax / (Object.keys(data.barStack[0]).length)}
109109
y={yMax - value}
110110
height={value}
111111
key={key}
112112
width={barWidth}
113-
fill={rgb[Math.floor(Math.random() * 5)]}
113+
fill={'#ffffb3'}
114114
onMouseLeave={() => {
115115
dispatch(
116116
onHoverExit(data.componentData[key].rtid),
@@ -145,7 +145,7 @@ const BarGraph = props => {
145145
height={value * 20}
146146
key={key}
147147
width={barWidth}
148-
fill={rgb[Math.floor(Math.random() * 5)]}
148+
fill={'#ffffb3'}
149149
onMouseLeave={() => {
150150
dispatch(
151151
onHoverExit(data.componentData[key].rtid),

0 commit comments

Comments
 (0)