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

Add controls for Interactive x axis #59

Closed brittsikora closed 6 years ago

brittsikora commented 6 years ago

"I’m thinking we’d want to let you manually update min and max for the x-axis (the range of values) on the histogram using something very similar to the new controls in the outlier explorer. When the x-axis changes, we would have the y-axis (the counts) automatically update to match the displayed data." - From Jeremy and Jack's email exchange on 12/7

jwildfire commented 6 years ago

We'll probably need to re-calculate the distribution (the bars) for the current data each time the x-axis limits change here. Will also want a prominent warning whenever the range is subset.

jwildfire commented 6 years ago

Test notes:

dschwentker commented 6 years ago

Tested and confirmed that the new x-axis controls work in all browsers: lower and upper limits can be adjusted and reset. Lower limit cannot be greater than upper limit and vice versa.