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

[Bug] Clicking on the bar of a histogram with continuous values on the x-axis doesn't select the whole bar #15

Open
hlmore opened this issue Nov 21, 2024 · 0 comments

Comments

@hlmore
Copy link
Collaborator

hlmore commented Nov 21, 2024

Description:

If a bar chart is created that represents a continuous value on the x-axis (e.g. floating-point numbers), clicking on a single bar selects only those records where the x-axis field equals the middle value of the bar. This means that if a bar pools records with multiple values for the field represented on the x-axis of the plot, clicking on the bar doesn't select all the records. In fact, clicking the bar may not select any records, if none of them have a value equal to the center point of the bar.

Expected behaviour:

Clicking a bar on any bar chart should select all records represented by the bar.

Suggested steps to solve:

First check what data is returned when you click a bar representing continuous values. Maybe there is a list of all the data contained within the bar, which can be used to figure out which records are represented.

If the list of data isn't there, Beaverdam should get the minimum and maximum x-values of the bar and filter for all records between these. Check the boundary conditions, i.e. whether values matching the minimum or maximum value are included. This might involve implementing additional features like being able to filter by data ranges.

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

No branches or pull requests

1 participant