---
id: "packages/active-charts/all-exports/hierarchy-label"
title: "Hierarchy label"
description: "HierarchyLabelOptions, HierarchySecondaryLabel: generated from the source of active-charts."
url: "/packages/active-charts/all-exports/hierarchy-label"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:hierarchy-label"
---

# Hierarchy label

Exported by `@workspace/active-charts`. Generated from the package source; part of [the index of every export](/packages/active-charts/all-exports).

## Types

**HierarchyLabelOptions**

```ts
interface HierarchyLabelOptions {
  secondary?: HierarchySecondaryLabel;
  levels?: readonly number[];
}
```

The visual label policy of a treemap or a sunburst. It changes only what
the drawing shows: the accessible names, the tooltip, the data table and
the announcements keep every node's name and value.

**HierarchySecondaryLabel**

```ts
type HierarchySecondaryLabel = 'share' | 'value' | 'none';
```

What a data mark's second line says, under its name.

- `'share'`: the mark's share of the shown total, as a percentage;
- `'value'`: the node's (summed) value, written in the chart's
`valueSemantics` (BC1), the same text as its tooltip and table;
- `'none'`: no second line.
