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

[charts] Divide CartesianProvider to use logic in Pro package #13531

Merged
merged 16 commits into from
Jun 19, 2024
Merged
Prev Previous commit
Next Next commit
Update packages/x-charts/src/context/CartesianProvider/computeValue.ts
Co-authored-by: Alexandre Fauquette <[email protected]>
Signed-off-by: Jose C Quintas Jr <[email protected]>
  • Loading branch information
JCQuintas and alexfauquette committed Jun 19, 2024
commit 5062469ec2afee36392950a86b032407d074b7fd
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function computeValue(
const DEFAULT_BAR_GAP_RATIO = 0.1;

const categoryGapRatio = axis.categoryGapRatio ?? DEFAULT_CATEGORY_GAP_RATIO;
const barGapRatio = axisName === 'x' ? axis.barGapRatio ?? DEFAULT_BAR_GAP_RATIO : 0;
const barGapRatio = axis.barGapRatio ?? DEFAULT_BAR_GAP_RATIO;
const scaleRange = axisName === 'x' ? range : [...range].reverse();
JCQuintas marked this conversation as resolved.
Show resolved Hide resolved

completeAxis[axis.id] = {
Expand Down