Skip to content

Commit

Permalink
fixing wrapping issue in line legend
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfmurdock committed Dec 14, 2024
1 parent d80e72e commit fa41522
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export const CouplingResponsiveLine = (props) => {
content={props.tooltip ? (args) => props.tooltip(args.point.data) : undefined}
/>
<Legend
width={'90%'}
height={'7%'}
wrapperStyle={{whiteSpace: 'pre-wrap'}}
onClick={props => handleLegendClick(props.dataKey)}
/>
{lineIds.map((lineId, index) =>
Expand Down

0 comments on commit fa41522

Please sign in to comment.