diff --git a/src/SupplyVsDemandChart.tsx b/src/SupplyVsDemandChart.tsx
index e810cda..69e08ad 100644
--- a/src/SupplyVsDemandChart.tsx
+++ b/src/SupplyVsDemandChart.tsx
@@ -48,7 +48,7 @@ function SupplyVsDemandChart({
const f = S_of_R;
const from = 0;
const to = 4 * R0;
- const steps = 100;
+ const steps = 100 + 1; // Add 1 for the ticks to match
const step = (to - from) / steps;
/**
@@ -72,7 +72,8 @@ function SupplyVsDemandChart({
const keyVertical = "Supply (tokens) / Reserve (DAI)";
const data = [];
- for (let x = from; x <= to; x += step) {
+ for (let i = 0; i < steps; i++) {
+ const x = from + step * i;
data.push({
[keyHorizontal]: x,
[keyVertical]: f(x)
@@ -119,8 +120,7 @@ function SupplyVsDemandChart({
>
d[keyHorizontal]), 4)}
+ interval={24}
dataKey={keyHorizontal}
tickFormatter={formatter}
unit={unit}