Update: to make it work with non-default BarOrigin settings:
ClearAll[ceF] ceF[d_: .2, nsd_: 3, color_: Automatic][cedf_: "Rectangle"] := Module[{bo = Charting`ChartStyleInformation["BarOrigin"], col = Darker[Charting`ChartStyleInformation["Color"]], box = #, tf, e}, tf = Switch[bo, Left | Right, Reverse, _, Identity]; box = Switch[bo, Bottom, box, Top, {box[[1]], Reverse[box[[2]]]}, Left, Reverse@box, Right, {box[[2]], Reverse@box[[1]]}]; e = nsd /2 Sqrt[Abs@box[[2, 2]] (1 - Abs@box[[2, 2]]/#3[[1]])]; {ChartElementData[cedf][##], Thick, color /. Automatic -> col, Line[tf /@ {{Mean@box[[1]], box[[2, 2]] - e}, {Mean@box[[1]], box[[2, 2]] + e}}], Line[tf /@ {{box[[1, 1]] + d/2, box[[2, 2]] - e}, {box[[1, 2]] - d/2, box[[2, 2]] - e}}], Line[tf /@ {{box[[1, 1]] + d/2, box[[2, 2]] + e}, {box[[1, 2]] - d/2, box[[2, 2]] + e}}]}] & Example:
Grid[Partition[Histogram[data -> Length@data, ChartStyle -> 43, ChartElementFunction -> ceF[][], ImageSize -> 300, BarOrigin -> #] & /@ {Bottom, Top, Left, Right}, 2], Dividers -> All] 

