Implement `hoveron: 'fills'` for scattergl and scatterpolargl
See original GitHub issueDuring 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
fill: 'toself'
for scatterpolar
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
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:
- Created 5 years ago
- Reactions:2
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure!
Here’s
hoveron: fills
forscatter
: https://github.com/plotly/plotly.js/blob/373d4ffbb06952eb9357c38707ba88b7aa3ba3e8/src/traces/scatter/hover.js#L107-L192We’d need to implement similar logic in
scattergl/hover
- then sincescatterpolargl/hover
reusesscattergl/hover
it might just work in scatterpolargl, or we might need a little more there.