plotly / plotly/plotly.R

Plotly.d3 is undefined now

Open
#2,292 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

Hello,

The example in the plotly book with the images appearing on hovering does no longer work. That's because Plotly.d3 is undefined in recent versions of plotly.js. This had been announced in the announcement of plotly.js v2.

So to make the example work, one has to include d3.js as a HTML dependency and do d3.select instead of Plotly.d3.select.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplying-custom-data example in the plotly book and inspect how its HTML dependencies and hover-image selection are defined. Update the example to use the declared D3 dependency and verify that images still appear on hover with recent plotly.js versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3js, javascript, r
Domain
data-visualization, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.