Commit d65f7346 by Leon Sorokin Committed by GitHub

GraphNG: check cross-axis presence when auto-padding. close #30121. (#30126)

parent 2a9c625c
...@@ -86,7 +86,9 @@ export const usePlotPlugins = () => { ...@@ -86,7 +86,9 @@ export const usePlotPlugins = () => {
}; };
const paddingSide: PaddingSide = (u, side, sidesWithAxes, cycleNum) => { const paddingSide: PaddingSide = (u, side, sidesWithAxes, cycleNum) => {
return sidesWithAxes[side] ? 0 : 8; let hasCrossAxis = side % 2 ? sidesWithAxes[0] || sidesWithAxes[2] : sidesWithAxes[1] || sidesWithAxes[3];
return sidesWithAxes[side] || !hasCrossAxis ? 0 : 8;
}; };
export const DEFAULT_PLOT_CONFIG: Partial<Options> = { export const DEFAULT_PLOT_CONFIG: Partial<Options> = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment