How about using PlotRange
? ...
data = {.2, .4, .6, 0., 0., 0.} BarChart[data] BarChart[data, Frame -> True, Axes -> False, PlotRange -> {{.5, 6.5}, {0, .7}}, FrameTicks -> {None, Automatic, None, None}]
EditI'm starting to think that this is really a mistake. See what happens if we just reorder the elements in the data. It confirms (but does not show the baseline) zero-height bars that it previously ignored. Please note that this time I did not have to adjust the display using PlotRange
.
DavidC
source share