show datapoints on hover by default for plotly

This commit is contained in:
Daniel Schwabeneder 2020-02-03 14:27:01 +01:00
parent 2b6a90766a
commit c62714d188

View File

@ -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