How to show aggregated data in hover for treemap?

Hi, is there a way to show aggregated (eg by weighted average, like for color) metrics that I’ve added to a treemap’s hover_data? My issue is that all of these show up as (?) in the hover for all nodes except for the leaf-nodes. Is there some way to specify an aggregation function so that the treemap hover is more useful at the root and higher levels of the hierarchy?