# treemap icon

Treemap. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/treemap

- Category: Charts & data
- Use it for: treemap, tree map
- Tags: treemap, chart, hierarchy, proportion, nested, rectangles, tiles, data
- Family: activity, activity-search, area-chart, area-chart-stacked, bar-chart, bar-chart-clock, bar-chart-grouped, bar-chart-grouped-filled, bar-chart-horizontal, bar-chart-off, bar-chart-pencil, bar-chart-plus, bar-chart-search, bar-chart-sparkle, bar-chart-stacked, bubble-chart, candlestick-chart, cohort-chart, combo-chart, donut-chart, funnel-chart, gantt-chart, heatmap, histogram, line-chart, pie-chart, radar-chart, scatter-chart, trending-down, trending-up, trending-up-down, venn-diagram, waterfall-chart
- Component name: TreemapIcon
- Added: 2026-10-16

## Don't confuse with

- `layout-dashboard`: equal tiles mean a dashboard
- `grid`: equal cells mean a grid view (grid-view)

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/treemap.svg · PNG https://gentleface.com/png/line-round/16/treemap.png · https://gentleface.com/png/line-round/32/treemap.png · https://gentleface.com/png/line-round/48/treemap.png
- line-soft: https://gentleface.com/svg/line-soft/16/treemap.svg · PNG https://gentleface.com/png/line-soft/16/treemap.png · https://gentleface.com/png/line-soft/32/treemap.png · https://gentleface.com/png/line-soft/48/treemap.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/treemap.svg · PNG https://gentleface.com/png/line-sharp/16/treemap.png · https://gentleface.com/png/line-sharp/32/treemap.png · https://gentleface.com/png/line-sharp/48/treemap.png
- solid-round: https://gentleface.com/svg/solid-round/16/treemap.svg · PNG https://gentleface.com/png/solid-round/16/treemap.png · https://gentleface.com/png/solid-round/32/treemap.png · https://gentleface.com/png/solid-round/48/treemap.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/treemap.svg · PNG https://gentleface.com/png/solid-soft/16/treemap.png · https://gentleface.com/png/solid-soft/32/treemap.png · https://gentleface.com/png/solid-soft/48/treemap.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/treemap.svg · PNG https://gentleface.com/png/solid-sharp/16/treemap.png · https://gentleface.com/png/solid-sharp/32/treemap.png · https://gentleface.com/png/solid-sharp/48/treemap.png

The SVG of every style: https://gentleface.com/icons/treemap.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z"/></svg>
```

### React

```tsx
// Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap
import type { SVGProps } from 'react';

export function TreemapIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/treemap.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap. Takes the text color. */
.icon-treemap {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#treemap"/></svg>
```

### SwiftUI

```swift
// Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap
import SwiftUI

struct TreemapIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 13.707, y: 13.707))
        p.addCurve(to: CGPoint(x: 13, y: 14), control1: CGPoint(x: 13.512, y: 13.902), control2: CGPoint(x: 13.276, y: 14))
        p.addLine(to: CGPoint(x: 2, y: 14))
        p.addCurve(to: CGPoint(x: 1.293, y: 13.707), control1: CGPoint(x: 1.724, y: 14), control2: CGPoint(x: 1.488, y: 13.902))
        p.addCurve(to: CGPoint(x: 1, y: 13), control1: CGPoint(x: 1.098, y: 13.512), control2: CGPoint(x: 1, y: 13.276))
        p.addLine(to: CGPoint(x: 1, y: 2))
        p.addCurve(to: CGPoint(x: 1.293, y: 1.293), control1: CGPoint(x: 1, y: 1.724), control2: CGPoint(x: 1.098, y: 1.488))
        p.addCurve(to: CGPoint(x: 2, y: 1), control1: CGPoint(x: 1.488, y: 1.098), control2: CGPoint(x: 1.724, y: 1))
        p.addLine(to: CGPoint(x: 13, y: 1))
        p.addCurve(to: CGPoint(x: 13.707, y: 1.293), control1: CGPoint(x: 13.276, y: 1), control2: CGPoint(x: 13.512, y: 1.098))
        p.addCurve(to: CGPoint(x: 14, y: 2), control1: CGPoint(x: 13.902, y: 1.488), control2: CGPoint(x: 14, y: 1.724))
        p.addLine(to: CGPoint(x: 14, y: 13))
        p.addCurve(to: CGPoint(x: 13.707, y: 13.707), control1: CGPoint(x: 14, y: 13.276), control2: CGPoint(x: 13.902, y: 13.512))
        p.closeSubpath()
        p.move(to: CGPoint(x: 7, y: 9))
        p.addLine(to: CGPoint(x: 7, y: 2))
        p.addLine(to: CGPoint(x: 2, y: 2))
        p.addLine(to: CGPoint(x: 2, y: 9))
        p.addLine(to: CGPoint(x: 7, y: 9))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8, y: 6))
        p.addLine(to: CGPoint(x: 13, y: 6))
        p.addLine(to: CGPoint(x: 13, y: 2))
        p.addLine(to: CGPoint(x: 8, y: 2))
        p.addLine(to: CGPoint(x: 8, y: 6))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8, y: 7))
        p.addLine(to: CGPoint(x: 8, y: 13))
        p.addLine(to: CGPoint(x: 10, y: 13))
        p.addLine(to: CGPoint(x: 10, y: 7))
        p.addLine(to: CGPoint(x: 8, y: 7))
        p.closeSubpath()
        p.move(to: CGPoint(x: 11, y: 7))
        p.addLine(to: CGPoint(x: 11, y: 13))
        p.addLine(to: CGPoint(x: 13, y: 13))
        p.addLine(to: CGPoint(x: 13, y: 7))
        p.addLine(to: CGPoint(x: 11, y: 7))
        p.closeSubpath()
        p.move(to: CGPoint(x: 7, y: 10))
        p.addLine(to: CGPoint(x: 2, y: 10))
        p.addLine(to: CGPoint(x: 2, y: 13))
        p.addLine(to: CGPoint(x: 7, y: 13))
        p.addLine(to: CGPoint(x: 7, y: 10))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// TreemapIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val TreemapIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "treemap", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(TreemapIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_treemap.xml · Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M13.707 13.707C13.512 13.902 13.276 14 13 14L2 14C1.724 14 1.488 13.902 1.293 13.707C1.098 13.512 1 13.276 1 13L1 2C1 1.724 1.098 1.488 1.293 1.293C1.488 1.098 1.724 1 2 1L13 1C13.276 1 13.512 1.098 13.707 1.293C13.902 1.488 14 1.724 14 2L14 13C14 13.276 13.902 13.512 13.707 13.707ZM7 9L7 2L2 2L2 9L7 9ZM8 6L13 6L13 2L8 2L8 6ZM8 7L8 13L10 13L10 7L8 7ZM11 7L11 13L13 13L13 7L11 7ZM7 10L2 10L2 13L7 13L7 10Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "treemap" (line-round), MIT. https://gentleface.com/icons/treemap
import 'package:flutter/widgets.dart';

class TreemapIcon extends StatelessWidget {
  const TreemapIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _TreemapIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _TreemapIconPainter extends CustomPainter {
  _TreemapIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(13.707, 13.707)
      ..cubicTo(13.512, 13.902, 13.276, 14, 13, 14)
      ..lineTo(2, 14)
      ..cubicTo(1.724, 14, 1.488, 13.902, 1.293, 13.707)
      ..cubicTo(1.098, 13.512, 1, 13.276, 1, 13)
      ..lineTo(1, 2)
      ..cubicTo(1, 1.724, 1.098, 1.488, 1.293, 1.293)
      ..cubicTo(1.488, 1.098, 1.724, 1, 2, 1)
      ..lineTo(13, 1)
      ..cubicTo(13.276, 1, 13.512, 1.098, 13.707, 1.293)
      ..cubicTo(13.902, 1.488, 14, 1.724, 14, 2)
      ..lineTo(14, 13)
      ..cubicTo(14, 13.276, 13.902, 13.512, 13.707, 13.707)
      ..close()
      ..moveTo(7, 9)
      ..lineTo(7, 2)
      ..lineTo(2, 2)
      ..lineTo(2, 9)
      ..lineTo(7, 9)
      ..close()
      ..moveTo(8, 6)
      ..lineTo(13, 6)
      ..lineTo(13, 2)
      ..lineTo(8, 2)
      ..lineTo(8, 6)
      ..close()
      ..moveTo(8, 7)
      ..lineTo(8, 13)
      ..lineTo(10, 13)
      ..lineTo(10, 7)
      ..lineTo(8, 7)
      ..close()
      ..moveTo(11, 7)
      ..lineTo(11, 13)
      ..lineTo(13, 13)
      ..lineTo(13, 7)
      ..lineTo(11, 7)
      ..close()
      ..moveTo(7, 10)
      ..lineTo(2, 10)
      ..lineTo(2, 13)
      ..lineTo(7, 13)
      ..lineTo(7, 10)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_TreemapIconPainter old) => old.color != color;
}
```
