Skip to content

Commit

Permalink
fix: fix direction judgement in getAxisConfigInPivotChart()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed May 27, 2024
1 parent 995bf12 commit 5e0c5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vtable/src/layout/chart-helper/get-axis-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export function getAxisConfigInPivotChart(col: number, row: number, layout: Pivo
// 散点图特殊处理
inverse: transformInverse(
axisOption,
(spec?.direction ?? chartType === 'scatter' ? 'vertical' : 'horizontal') === Direction.horizontal
(spec?.direction ?? (chartType === 'scatter' ? 'vertical' : 'horizontal')) === Direction.horizontal
)
}
);
Expand Down

0 comments on commit 5e0c5d4

Please sign in to comment.