Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Oct 22, 2023
1 parent b40ba7b commit 47557d9
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,18 @@ function StackedBarGraph({
<CartesianGrid strokeDasharray="3 3" />
<XAxis dataKey="date" />
<YAxis />
{data.split.slice(0).reverse().map((c, index) => (
<Bar
key={c.id}
dataKey={val => getVal(val, c.name)}
name={c.name}
stackId="a"
fill={colorScale[index % colorScale.length]}
/>
))}
{data.split
.slice(0)
.reverse()
.map((c, index) => (
<Bar
key={c.id}
dataKey={val => getVal(val, c.name)}
name={c.name}
stackId="a"
fill={colorScale[index % colorScale.length]}
/>
))}
</BarChart>
</div>
</ResponsiveContainer>
Expand Down

0 comments on commit 47557d9

Please sign in to comment.