Tree

Tree charts or maps are primarily used to display data that is grouped and nested in a hierarchical (or tree-based) structure.

The Method To Use

The method is s.plt.tree()

It must contain the following input variables:

order: int
data: Union[str, Dict, List[Dict]]

And accepts the following input variable as optional:

radial: bool 
vertical: bool
title: Optional[str]
padding: Optional[List[int]]
rows_size: Optional[int] 
cols_size: Optional[int]
option_modifications: Optional[Dict]

Video demonstration of the tree chart

Tree chart settings and usage.

Examples

1. Default Configuration

The tree chart is in the default configuration.

2. Customization And Context

The tree chart fully customized, note the space before the component using padding='0,0,0,2', and cols_size=10.

Changing the Menu Path The menu_path can be modified.

Using the Grid

It is possible to use any number of rows.

Last updated

Was this helpful?