@vireya/ui/charts/treemap/sectors
S&P-style sector treemap: hierarchical (sector → ticker), area encodes market cap, custom content fn renders rect + label per leaf.
clientTechnologyFinancialsHealth CareEnergyConsumer
treemap/*
Hierarchical area-encoded breakdowns — portfolio / sector / market-cap composition.
1 variantS&P-style sector treemap: hierarchical (sector → ticker), area encodes market cap, custom content fn renders rect + label per leaf.
clientTreemaps tile a rectangle into nested boxes whose area encodes value, packing a hierarchy and its magnitudes into a dense, space-filling view. They shine when you have many items in a few groups and want both the big picture and the long tail in one frame.
Vireya's sectors variant renders a market-cap-style breakdown with a custom content function drawing each leaf rectangle and label.