Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoruwaTolu committed May 1, 2024
1 parent cd5f34c commit ac75abb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions prem-data/src/components/scatter-chart/scatter-chart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useState, useRef, useEffect } from "react";
import { teamColours } from "../player-tab";
import { AxisBottom } from "./AxisBottom";
import { AxisLeft } from './AxisLeft';
import * as d3 from 'd3';

function ScatterGraph({data}){
Expand All @@ -11,8 +13,8 @@ function ScatterGraph({data}){
const svgRef = useRef();
const MARGIN = { top: 60, right: 60, bottom: 60, left: 60 };

const boundsWidth = width - MARGIN.right - MARGIN.left;
const boundsHeight = height - MARGIN.top - MARGIN.bottom;
const boundsWidth = w - MARGIN.right - MARGIN.left;
const boundsHeight = h - MARGIN.top - MARGIN.bottom;

const testData = [
{
Expand Down

0 comments on commit ac75abb

Please sign in to comment.