From a75d309d207891b077525c43f587e5987b43f2c1 Mon Sep 17 00:00:00 2001 From: David Gustavsson Date: Sun, 28 Feb 2021 09:20:20 +0100 Subject: [PATCH] Labels for horizontal bars --- src/recipes.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/recipes.jl b/src/recipes.jl index acb43161..68422966 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -416,7 +416,11 @@ end end if !isnothing(plotattributes[:series_annotations]) - annotations := (x,y,plotattributes[:series_annotations].strs,:bottom) + if isvertical(plotattributes) + annotations := (x,y,plotattributes[:series_annotations].strs,:bottom) + else + annotations := (y,x,plotattributes[:series_annotations].strs,:left) + end series_annotations := nothing end