You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hierarchical plots constructed with px.treemap, px.icicle, and px.sunburst, aggregate data at internal nodes as follows:
values: sum of children,
color: values-weighted sum of children if df[color] is numeric, else "discrete aggregation",
hover_data: only supports "discrete aggregation",
where for "discrete aggregation", the value of an internal node is mapped to that of its children if all its children have the same value, otherwise the aggregated value is set to "(?)".
Below is an example of a treemap with 2 quantities in hover data, one of which is numeric and could be aggregated at internal nodes, but instead all non-leaf nodes get a "(?)":
Is it possible to aggregate numeric hover_data in hierarchical plots, perhaps as a sum initially, but potentially also giving the option to apply a different function?
The text was updated successfully, but these errors were encountered:
Hierarchical plots constructed with
px.treemap
,px.icicle
, andpx.sunburst
, aggregate data at internal nodes as follows:values
: sum of children,color
:values
-weighted sum of children ifdf[color]
is numeric, else "discrete aggregation",hover_data
: only supports "discrete aggregation",where for "discrete aggregation", the value of an internal node is mapped to that of its children if all its children have the same value, otherwise the aggregated value is set to
"(?)"
.Below is an example of a treemap with 2 quantities in hover data, one of which is numeric and could be aggregated at internal nodes, but instead all non-leaf nodes get a
"(?)"
:Is it possible to aggregate numeric
hover_data
in hierarchical plots, perhaps as a sum initially, but potentially also giving the option to apply a different function?The text was updated successfully, but these errors were encountered: