Scales the chart to fit both width and height, ensuring the entire chart is visible.
let chart = new OrgChart('#tree', {
scaleInitial: OrgChart.match.boundary
});
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
});
Scales the chart to fit the container height.
let chart = new OrgChart('#tree', {
scaleInitial: OrgChart.match.height
});
Disables automatic scaling. The chart is rendered at its default scale.
Scales the chart to fit the container width.
let chart = new OrgChart('#tree', {
scaleInitial: OrgChart.match.width
});
Generated using TypeDoc
Defines how the initial chart scale is calculated to fit the container.