mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-17 13:58:00 +08:00
* Add color mapping to the bar chart. * Change histogram color generation from Viridis to InterpolateCool. * Coloring of Histrogram based up the x axis instead of y axis. Coloring of Histrogram based up the x axis instead of y axis. * Respond to feedback from @colinmegill * Only color histograms that are selected for colorby * Add some small refactors to BrushableHistogram's componentDidUpdate * Fix histogram coloring and binning * Reuse binning functions from util/dataframe/histogram.js; this fixes an issue with there being near-zero width bins * Fix color mapping so that it matches the scale in the legend * Do not attempt to plot bins if the calculated binWidth is zero; this can happen if all values are the same * Refactor the function that draws the histogram a bit * Respond to feedback from @bkmartinjr Co-authored-by: Donald Paul Herman <Donaldpherman@hotmail.com>