Skip to content

Commit 7c5f41f

Browse files
authored
Only set hover attribute in boxplot if backend supports it (#486)
* Only set hover for backends that support it * Increment version number
1 parent 8891654 commit 7c5f41f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "StatsPlots"
22
uuid = "f3b207a7-027a-5e70-b257-86293d7955fd"
3-
version = "0.14.31"
3+
version = "0.14.32"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/boxplot.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ notch_width(q2, q4, N) = 1.58 * (q4-q2)/sqrt(N)
195195
primary := false
196196
seriestype := :path
197197
marker := false
198-
hover := texts
198+
if Plots.is_attr_supported(Plots.backend(), :hover)
199+
hover := texts
200+
end
199201
linewidth := 0
200202
x := xsegs.pts
201203
y := ysegs.pts

0 commit comments

Comments
 (0)