From e386825592a2b1630d0c4a98c0a2d9903cb97527 Mon Sep 17 00:00:00 2001 From: Peter Bull Hove Date: Fri, 5 Apr 2024 13:41:47 +0200 Subject: [PATCH] fix: add title instead of long y axis text --- web/src/Components/Bridging/BridgeContainer.tsx | 4 ++-- web/src/Components/Bridging/Graphs/BridgeGraph.tsx | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/web/src/Components/Bridging/BridgeContainer.tsx b/web/src/Components/Bridging/BridgeContainer.tsx index 815051f..ac27055 100644 --- a/web/src/Components/Bridging/BridgeContainer.tsx +++ b/web/src/Components/Bridging/BridgeContainer.tsx @@ -117,13 +117,13 @@ export default ({ bridges, mode, setMode, bridgeValue, setValue }: BridgeContain /> ('0%') const [particleToPercentage, setParticleToPercentage] = useState('100%') const particleRange = useContext(ParticleSizeContext) @@ -40,6 +41,9 @@ export function BridgeGraph({ yAxis, graphData, sizeFractions, bridges, showBrid return (
+ + {title} + {/* Defines a gradient applied to the areaPlot to highlight selected particle size range*/} @@ -52,6 +56,7 @@ export function BridgeGraph({ yAxis, graphData, sizeFractions, bridges, showBrid + - + {Object.entries(bridges).map(([name, cumulative], index) => (