-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll bars for legend widgets won't move coherently with displayed data #10070
Comments
@ale-cristofori Thanks for this export of the test data but unfortunately, the services required by these layers are not accessible by me @tdipisa Is it possible to add this layer to the existing csw? or @ale-cristofori @tdipisa maybe point me to a map or a layer in MS which can produce many legends on a chart ? |
@dsuren1 use this map which contains the sample dataset you need. |
Investigation outcomeAs reported in the description, this is an open issue in plotly.js and we do not have a set timeline for its resolution yet. However, we can handle this case in MS on chart initialization by adding an event listener of the wheel event in capture mode and dispatch a modified event with new Demo with a rudimentary fix applied legend_mouse_wheel.mp4SuggestionInstead of adding a predefined sensitivity value, we can also expose this as a configurable property for the chart. ex: |
Thank you @dsuren1. I would like you to share the above with other core team members (like @allyoucanmap or @offtherailz) since I think it is something probably quick but that we should handle carefully if we have to implement a kind of workaround in MS. |
@allyoucanmap Warning During this I observed an existing behavior with Safari where the mouse wheel scroll doesn't work on legend in Chart. |
…e coherently with displayed data
…e coherently with displayed data (geosolutions-it#10329) (cherry picked from commit 3234b9a)
Description
The scroll bar appearing on the right part of the legend widget, and potentially in all widgets, if moved with the mouse wheel will jump to the following results, skipping the display of some of the legend items. The scrolling is not 'smooth' enough to allow the display of all legend items and some of them are skipped from display.
How to reproduce
This issue is reproducible when there is a piece of data with a lot of unique values to be included in the legend of the widget, for example the pie chart.
recording_1.mp4
Expected Result
The legend, scrolling with the mouse wheel, should scroll through evenly without jumping
Current Result
The legend, scrolling with the mouse wheel, the scroll bar that scrolls through the legend will 'jump' (using the mouse scroll wheel) without scrolling evenly. This hides some legend items in the legend through scrolling.
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
The behaviour is something that has to do with plotly. As signalled in the below issues
plotly/plotly.js#6737
https://community.plotly.com/t/scrollbar-sensitivity-in-plot-legend-skips-curves/78866
The text was updated successfully, but these errors were encountered: