Restored hover functionality for plots with multidimensional data
This commit is contained in:
parent
0f4a0c7154
commit
af08edb992
@ -1020,13 +1020,15 @@ function plotly_polar!(plotattributes_out::KW, series::Series)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function plotly_hover!(plotattributes_out::KW, hover)
|
function plotly_hover!(plotattributes_out::KW, hover)
|
||||||
# hover text
|
if isnothing(hover)
|
||||||
if hover === nothing || all(in([:none, false]), hover)
|
return nothing
|
||||||
|
elseif all(in([:none, false]), hover)
|
||||||
plotattributes_out[:hoverinfo] = "none"
|
plotattributes_out[:hoverinfo] = "none"
|
||||||
elseif any(!isnothing, hover)
|
elseif any(!isnothing, hover)
|
||||||
plotattributes_out[:hoverinfo] = "text"
|
plotattributes_out[:hoverinfo] = "text"
|
||||||
plotattributes_out[:text] = hover
|
plotattributes_out[:text] = hover
|
||||||
end
|
end
|
||||||
|
return nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
# get a list of dictionaries, each representing the series params
|
# get a list of dictionaries, each representing the series params
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user