childLevels and parentLevels Export Options
These export options allow you to export a node together with a focused part of its hierarchy on a separate page, making it easier to extract relevant sections of your organizational chart.
With childLevels, you can include subordinate levels below the selected node. With parentLevels, you can include reporting levels above it.
Together, these options help you generate smaller, more readable exports without including the full chart hierarchy.
Example Usage
The example below demonstrates only the childLevels option:
javascript
chart.exportToPDF({
pages: [
{
nodeId: 2,
childLevels: 1
}
]
});In the example above, the node with id: 2 will be exported together with its direct children.