Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines how the initial chart scale is calculated to fit the container.

Index

Enumeration Members

boundary: number

Scales the chart to fit both width and height, ensuring the entire chart is visible.

let chart = new OrgChart('#tree', {
scaleInitial: OrgChart.match.boundary
});
boundaryIfOutside: number

Scales the chart to fit the boundaries only if part of the chart is outside the visible area.

If the chart already fits, no scaling is applied.

let chart = new OrgChart('#tree', {
scaleInitial: OrgChart.match.boundaryIfOutside
});
height: number

Scales the chart to fit the container height.

let chart = new OrgChart('#tree', {
scaleInitial: OrgChart.match.height
});
none: number

Disables automatic scaling. The chart is rendered at its default scale.

width: number

Scales the chart to fit the container width.

let chart = new OrgChart('#tree', {
scaleInitial: OrgChart.match.width
});

Legend

  • Constructor
  • Property
  • Method
  • Static property
  • Static method

Settings

Theme

Generated using TypeDoc