RhoInc / safety-histogram

Histogram showing distribution of lab measures, vital signs and other measures related to safety in clinical trials.
MIT License
1 stars 1 forks source link

Remove the y-dimension from bar hovering. #89

Closed samussiah closed 5 years ago

samussiah commented 5 years ago

i.e. only track the x-dimension of the mouse over the chart so that the user can click anywhere in the vertical of a bar to select it, to avoid the inability to click itsy bitsy teenie weenie one-record bars. also throw some grayed-out bars along the entire vertical to indicate which bar the user is hovering over.

Test notes

jwildfire commented 5 years ago

Drawing invisible bars with 100% height in the same might be easier than just tracking x coordinate.

emmorris commented 5 years ago

Jack requested an improvement that seems to align with this issue. During the 11-27-18 meeting he mentioned that some of the small bars are difficult to click on and it would be better if he could click the space above them too.

dschwentker commented 5 years ago

Tested and confirmed that hovering anywhere on the chart highlights the vertical bar under the mouse. Also confirmed you can click anywhere in the vertical space in or above a bar to select the bar and display the listing underneath the chart, or deselect a bar and have the listing be removed from the page.