diff --git a/src/series.jl b/src/series.jl index f3731fc9..bdb0fd3b 100644 --- a/src/series.jl +++ b/src/series.jl @@ -355,7 +355,12 @@ end end end +# Dicts with Real values are plotted as bars +@recipe function f(d::AbstractDict{T,<:Real}) where T + seriestype --> :bar + x, y = collect(keys(d)), collect(values(d)) +end # function without range... use the current range of the x-axis