Skip to content

Commit

Permalink
fix: Domain Error
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydrichards committed Jun 2, 2020
1 parent 5662c04 commit 689ecca
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pages/experiment/004.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ const Experiment004: React.FC = () => {
const width = w - margin.right - margin.left,
height = h - margin.top - margin.bottom;

const xScale = scaleLinear()
.domain(extent(data, (d) => d.x))
.range([0, width]);
const xScale = scaleLinear().domain([0, 50]).range([0, width]);

const yScale = scaleLinear()
.domain(extent(data, (d) => d.y))
.range([height, 0]);
const yScale = scaleLinear().domain([0, 50]).range([height, 0]);

const circles = data.map((d, i) => (
<circle
Expand Down

0 comments on commit 689ecca

Please sign in to comment.