question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement `hoveron: 'fills'` for scattergl and scatterpolargl

See original GitHub issue

During a discussion in the plotly.py forums in came up that the hoverlabel for the scatterpolar trace has a different behavior when the fill state is set to toself than when it’s set to none.

CodePen: https://codepen.io/anon/pen/EpOGdX

fill: 'none' for scatterpolar screen shot 2018-08-09 at 5 52 32 am

fill: 'toself' for scatterpolar screen shot 2018-08-09 at 5 52 59 am

It also seems that the hoverinfo propery has no effect when fill is toself.

I did the same comparison with the scatterpolargl trace and it has the behavior that I expected:

fill: 'toself; for scatterpolargl screen shot 2018-08-09 at 5 56 18 am

I don’t know if this is a bug in scatterpolar or scatterpolargl, but I find the current scatterpolargl behavior (The behavior consistent with fill of none) to be more helpful.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jonmmeasecommented, Aug 9, 2018

Sure!

0reactions
alexcjohnsoncommented, Jan 19, 2021

Here’s hoveron: fills for scatter: https://github.com/plotly/plotly.js/blob/373d4ffbb06952eb9357c38707ba88b7aa3ba3e8/src/traces/scatter/hover.js#L107-L192

We’d need to implement similar logic in scattergl/hover - then since scatterpolargl/hover reuses scattergl/hover it might just work in scatterpolargl, or we might need a little more there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show hoverinfo over fill area of polygon in scatter trace
My use case is that I want to build a comet chart which I have ... Unfortunately if you are setting hoveron="fills" ,...
Read more >
plotly.js-gl2d-dist-min | Yarn - Package Manager
Ready-to-use minified plotly.js gl2d distributed bundle. Contains trace modules heatmapgl , parcoords , pointcloud , scatter , scattergl and splom .
Read more >
plotly.graph_objs - Anvil Docs
uid - Assign an id to this trace, Use this to provide object constancy ... hoveron - Do the hover effects highlight individual...
Read more >
NEWS
This makes it possible/easier to implement a smooth transitions when ... is no longer collapsed to a string when hoveron='fills+points' (#1448). layout.
Read more >
plotly.graph_objects.Scattergl — 5.11.0 documentation
“tonextx” and “tonexty” fill between the endpoints of this trace and the endpoints of the ... xcalendar – Sets the calendar system to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found