JuliaPlots / JuliaPlots/PlotlyJS.jl

The Modebar button " Compare data on hover" not showing up

Open
#420 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
444
Forks
86
PR merge metrics
No merged PRs in 30d

Description

```
Julia 1.6.3
PlotlyJS 0.18.8
Plots 1.22.4

```

Why the modebar button ``` Compare data on hover ``` is not available in PlotlyJS ?

```julia

using PlotlyJS

t = range(0, 2π, length = 100)

p1 = scatter(x=t, y=cos.(t))
p2 = scatter(x=t, y=sin.(t))
p3 = scatter(x=t, y=sin.(3*t))

plot([p1,p2,p3],
config=PlotConfig(
displayModeBar=true,
modeBarButtonsToAdd=[
"hoverCompareCartesian",
"toggleSpikelines",
"drawline" ] ) )
```
![Screenshot from 2021-10-13 23-41-23](https://user-images.githubusercontent.com/40030502/137216438-a51f7184-81e7-426c-925a-35ab49f725f6.png)

It seems that the [config](https://plotly.com/julia/configuration-options/) does not trigger some of the widgets.

The feature by default is available in Plotly backends, compare :

```julia
using Plots
plotlyjs()

xs = range(0, 2π, length = 100)
data = [sin.(xs) cos.(xs) 2sin.(xs) 2cos.(xs)]

plot(xs,data)

```

![Screenshot from 2021-10-13 23-42-02](https://user-images.githubusercontent.com/40030502/137216949-f80c1533-4620-43f4-8aef-5f1f80024426.png)

This is an important feature. Please guide how to include it in PlotlyJS.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.