dieterich-lab / medex

Intuitive Graphical User Interface for Medical Data Exploration
MIT License
4 stars 3 forks source link

Histogram has no dynamic bin size #2

Closed AljoschaK closed 4 years ago

AljoschaK commented 4 years ago

The Histograms binsize does not change when the user zooms in. The Binsize or the number of bins should be adjustable by the user. When the user zooms in, the granularity should be adjusted accordingly to become more fine, if possible.

AljoschaK commented 4 years ago

To give precise examples: Out default histogram has 14 bins when we look at Diabetes vs Delta0, similar to this plot: default_hist

Now, if we zoom in, the original bins are kept, as we go closer in, we see less bins: zoom_in_old

EDIT: This part was dropped. More granular bins can be achieved with the manual setting of bins as described in the last paragraph But what we want, is to have the 14 bins recalculated, to see the zoomed in data again distributed into 14 bins: image

Additionally we want to give the user the option to input a desired bin number manually, say for example 40: We split the data into 40 windows, for each we count the number of patients with values in the data ranges - i.e. the bins. hist_40_bins