Skip to content

Commit

Permalink
fix: wrong-vertical-default-size-subgraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelaro1 committed Aug 9, 2024
1 parent f77e116 commit b05fb30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chart/canvas/canvas-bounds-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1010,13 +1010,15 @@ export class CanvasBoundsContainer {
}

// paneCounter=chartHeightRatio: 0=1, 1=0.8, 2=0.6, 3=0.5, 4=0.4, 5=0.4
// ratios requirements table: https://confluence.in.devexperts.com/display/UI/Chart+Navigation#ChartNavigation-2Graphsadjustablesizes
const DEFAULT_RATIOS: Record<number, number> = {
0: 1,
1: 0.8,
2: 0.6,
3: 0.5,
4: 0.4,
5: 0.2,
5: 0.4,
6: 0.4,
};

// NOTE: pec stands for panes except main chart
Expand Down

0 comments on commit b05fb30

Please sign in to comment.