Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(declarative-chart): Create Scatter plot #33843

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
revert changes
  • Loading branch information
Anush2303 committed Feb 24, 2025
commit b6249089973b5dfc6e7e7c657b733352b744498e
15 changes: 3 additions & 12 deletions packages/charts/react-charting/src/utilities/utilities.ts
Original file line number Diff line number Diff line change
@@ -905,22 +905,13 @@ export function domainRangeOfNumericForAreaChart(
return item.x as number;
});
})!;

const rStartValue = margins.left!;
const rEndValue = width - margins.right!;

return isRTL
? {
dStartValue: xMax,
dEndValue: xMin,
rStartValue,
rEndValue,
}
: {
dStartValue: xMin,
dEndValue: xMax,
rStartValue,
rEndValue,
};
? { dStartValue: xMax, dEndValue: xMin, rStartValue, rEndValue }
: { dStartValue: xMin, dEndValue: xMax, rStartValue, rEndValue };
}

/**
Loading
Oops, something went wrong.