tree-map — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited tree-map (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Rectangular treemap for hierarchical data. Rectangle size is proportional to value. Supports flat and nested data, text wrapping, label placement, and configurable padding.
import { TreeMap, TreeMapSeries, TreeMapRect, TreeMapLabel } from 'reaviz';| Prop | Type | Default | Description | |
|---|---|---|---|---|
data | `ChartShallowDataShape[] \ | ChartNestedDataShape[]` | — | Chart data (flat or hierarchical) |
width | number | auto | Width in pixels | |
height | number | auto | Height in pixels | |
margins | Margins | 0 | Chart margins | |
paddingInner | number | 5 | Inner padding between rects | |
paddingOuter | number | 5 | Outer padding | |
paddingTop | number | 30 | Top padding (title spacing for nested groups) | |
series | ReactElement<TreeMapSeriesProps> | <TreeMapSeries /> | Series component | |
className | string | — | SVG CSS class | |
containerClassName | string | — | Container div CSS class |
| Prop | Type | Default | Description |
|---|---|---|---|
animated | boolean | true | Enable animations |
colorScheme | ColorSchemeType | 'cybertron' | Color scheme name or function |
rect | ReactElement<TreeMapRectProps> | <TreeMapRect /> | Rectangle element |
label | ReactElement<TreeMapLabelProps> | <TreeMapLabel /> | Label element |
| Prop | Type | Default | Description | |
|---|---|---|---|---|
cursor | string | 'pointer' | CSS cursor on hover | |
tooltip | `ReactElement<ChartTooltipProps> \ | null` | <ChartTooltip /> | Tooltip component |
onClick | (event, data) => void | — | Click handler | |
onMouseEnter | (event, data) => void | — | Mouse enter handler | |
onMouseLeave | (event, data) => void | — | Mouse leave handler |
| Prop | Type | Default | Description | ||
|---|---|---|---|---|---|
placement | `'start' \ | 'middle' \ | 'end'` | 'start' | Text placement within rect |
wrap | boolean | true | Wrap long text | ||
fill | string | '#FFF' | Text color | ||
fontSize | number | 14 | Font size | ||
fontFamily | string | 'sans-serif' | Font family |
const data = [
{ key: 'AWS', data: 100 },
{ key: 'SendGrid', data: 45 },
{ key: 'Okta', data: 75 },
{ key: 'Twilio', data: 25 },
];
<TreeMap
height={450}
width={450}
data={data}
/>const data = [
{ key: 'Windows', data: [
{ key: 'WinXP', data: 15 },
{ key: 'Win10', data: 20 },
{ key: 'Win7', data: 50 },
]},
{ key: 'MacOS', data: [
{ key: 'Sierra', data: 20 },
{ key: 'Catalina', data: 30 },
]},
];
<TreeMap
height={450}
width={450}
data={data}
/>// Centered labels
<TreeMap
data={data}
series={
<TreeMapSeries
label={<TreeMapLabel placement="middle" />}
/>
}
/>
// End-aligned labels
<TreeMap
data={data}
series={
<TreeMapSeries
label={<TreeMapLabel placement="end" />}
/>
}
/><TreeMap
data={data}
series={
<TreeMapSeries
label={<TreeMapLabel wrap={false} />}
/>
}
/><TreeMap
data={data}
series={
<TreeMapSeries
rect={
<TreeMapRect
onClick={(event, d) => console.log(d)}
/>
}
/>
}
/><TreeMap
data={data}
series={
<TreeMapSeries colorScheme={['#FF5722', '#2196F3', '#4CAF50']} />
}
/><TreeMap
data={data}
paddingInner={0}
paddingOuter={0}
paddingTop={0}
/><TreeMap
data={data}
series={<TreeMapSeries animated={false} />}
/>paddingTop space~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.