# Waterfall Stacked BarChart

Trying to make a waterfall bar chart. I got this far:

yData = {10, 7, 4, 2}
upFromX = Accumulate[yData] - yData
xyDataWithUplift =
Table[{Style[upFromX[[i]], White], yData[[i]]}, {i, 1, Length[yData]}]
BarChart[xyDataWithUplift, ChartLayout -> "Stacked"]


which is getting there but I can't figure out how to make the bottom rectangle's edge blank. Tried EdgeForm[] and EdgeForm[White] but no luck.

## 2 Answers

How about this?

yData = {10, 7, 4, 2, -5, -2, 3};
BarChart[yData, ChartLayout -> "Stepped"]


• thx - that's so obvious it never occurred to me... now that I see it, that's exactly how a 'stepped' layout should behave1 – Joe May 6 '18 at 4:26

I expected ChartStyle -> {{None, Automatic}} to work but it still had the edge.

ChartStyle -> {{Directive[EdgeForm[], FaceForm[]], Automatic}} on the other hand does remove the edge.