Skip to content

Commit

Permalink
Merge pull request #4795 from zcelbirPlabs/order-history-size
Browse files Browse the repository at this point in the history
Order history circle size
  • Loading branch information
benwolski authored Feb 27, 2025
2 parents 8705af4 + 58848ac commit 8841caa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/platformAmbient/Chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5688,12 +5688,19 @@ export default function Chart(props: propsIF) {
(data) => data.totalValueUSD,
);

const swapData = userTransactionData.filter(
(transaction) =>
(transaction.entityType === 'limitOrder' ||
transaction.entityType === 'swap') &&
transaction.totalValueUSD > 0,
);

if (domainRight && domainLeft) {
const scale = d3
.scaleLinear()
.range([750, 3000])
.domain([
userTransactionData.length > 2 ? domainLeft : 0,
swapData.length > 3 ? domainLeft : 0,
domainRight,
]);

Expand Down

0 comments on commit 8841caa

Please sign in to comment.