From c62714d188afd57a9b712ee092c81e653fb64564 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 3 Feb 2020 14:27:01 +0100 Subject: [PATCH] show datapoints on hover by default for plotly --- src/backends/plotly.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 03984fb2..9b1b1087 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -780,9 +780,9 @@ end function plotly_hover!(plotattributes_out::KW, hover) # hover text - if hover in (:none, false) + if all(in([:none, false]), hover) plotattributes_out[:hoverinfo] = "none" - elseif hover !== nothing + elseif any(!isnothing, hover) plotattributes_out[:hoverinfo] = "text" plotattributes_out[:text] = hover end