Skip to content
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

Feature: panning the slider range by dragging #144

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chatchavan
Copy link

slider.dragToPan()

See details on the corresponding entry in README.md.

@johnwalley
Copy link
Owner

Thanks for the PR! I'm on holiday right now and will review next week 👍

@johnwalley
Copy link
Owner

@chatchavan could you describe the use-case for this feature? One of the criteria I use to judge new features with whether we can still call the component simple. My concerns here are:

  • does this increase the API surface?
  • how many users would make use of the feature?

Again, thanks for the PR and let's keep the conversation going.

@chatchavan
Copy link
Author

General idea: This feature would be useful when exploring parameters of which range could be changed based on the dataset.

Specific use case: Suppose the user need to classify fruits for each shipment into two groups: heavy fruits and light fruits. The user uses a slider to adjust the cut-off threshold. However, for each shipment, the composition of the fruits varies. Some shipments may have heavy such as like watermelon, durians, etc. Other shipments may have light fruits such as grapes. Pre-determining the range and the granularity of the slider could be challenging for the app designer.

The panning feature allows the user to dynamically adjust the range and granularity according to the current dataset (here: weights of fruits in each shipment).

How many users would make use of this feature?: I could imagine this feature be used by any interactive data exploration application that the users can load the dataset into. Possible usage domain includes statistical analysis software and data journalism.

API surface: I'm not knowledgable enough to evaluate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants