Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: cs-308-2023 <[email protected]>
  • Loading branch information
ADI-ROXX committed Jan 27, 2025
1 parent 8b11ba1 commit e6fb61d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import './ScatterPlot.css';
export default function ScatterPlot({
data,
onValueClick,
// JSDOM does not, as of 2023, have a layout engine,
// so allow tests to supply a mock width as a workaround
calculateContainerWidth = container => container.clientWidth,
}) {
const containerRef = useRef(null);
Expand Down

0 comments on commit e6fb61d

Please sign in to comment.