diff --git a/client/src/components/categorical/occupancy.js b/client/src/components/categorical/occupancy.js index d0d8b148..aeb61553 100644 --- a/client/src/components/categorical/occupancy.js +++ b/client/src/components/categorical/occupancy.js @@ -130,7 +130,12 @@ class Occupancy extends React.Component { }; render() { - const { colorAccessor, categoricalSelection } = this.props; + const { + colorAccessor, + categoricalSelection, + category, + categoryIndex + } = this.props; this.canvas?.getContext("2d").clearRect(0, 0, this._WIDTH, this._HEIGHT); @@ -138,8 +143,9 @@ class Occupancy extends React.Component { return (

- These histograms show the distribution of{" "} - {colorAccessor} within each category. + This histograms shows the distribution of{" "} + {colorAccessor} within{" "} + {category.categoryValues[categoryIndex]}. +

The x axis is the same for each histogram, while the y axis is - scaled to the highest bin within each histogram. + scaled to the largest bin within this histogram instead of the + largest bin within the whole category.