show datapoints on hover by default for plotly
This commit is contained in:
parent
2b6a90766a
commit
c62714d188
@ -780,9 +780,9 @@ end
|
|||||||
|
|
||||||
function plotly_hover!(plotattributes_out::KW, hover)
|
function plotly_hover!(plotattributes_out::KW, hover)
|
||||||
# hover text
|
# hover text
|
||||||
if hover in (:none, false)
|
if all(in([:none, false]), hover)
|
||||||
plotattributes_out[:hoverinfo] = "none"
|
plotattributes_out[:hoverinfo] = "none"
|
||||||
elseif hover !== nothing
|
elseif any(!isnothing, hover)
|
||||||
plotattributes_out[:hoverinfo] = "text"
|
plotattributes_out[:hoverinfo] = "text"
|
||||||
plotattributes_out[:text] = hover
|
plotattributes_out[:text] = hover
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user