# histogram icon

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

- Category: Charts & data
- Use it for: histogram, distribution, frequency distribution
- Tags: histogram, distribution, frequency, bins, chart, graph, statistics, 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, line-chart, pie-chart, radar-chart, scatter-chart, treemap, trending-down, trending-up, trending-up-down, venn-diagram, waterfall-chart
- Component name: HistogramIcon
- Added: 2026-10-16

## Alternatives

- `bar-chart`: values per category, not per range (bar-chart)

## Also fits

- bar chart: a distribution over value ranges (histogram)

## 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/histogram.svg · PNG https://gentleface.com/png/line-round/16/histogram.png · https://gentleface.com/png/line-round/32/histogram.png · https://gentleface.com/png/line-round/48/histogram.png
- line-soft: https://gentleface.com/svg/line-soft/16/histogram.svg · PNG https://gentleface.com/png/line-soft/16/histogram.png · https://gentleface.com/png/line-soft/32/histogram.png · https://gentleface.com/png/line-soft/48/histogram.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/histogram.svg · PNG https://gentleface.com/png/line-sharp/16/histogram.png · https://gentleface.com/png/line-sharp/32/histogram.png · https://gentleface.com/png/line-sharp/48/histogram.png
- solid-round: https://gentleface.com/svg/solid-round/16/histogram.svg · PNG https://gentleface.com/png/solid-round/16/histogram.png · https://gentleface.com/png/solid-round/32/histogram.png · https://gentleface.com/png/solid-round/48/histogram.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/histogram.svg · PNG https://gentleface.com/png/solid-soft/16/histogram.png · https://gentleface.com/png/solid-soft/32/histogram.png · https://gentleface.com/png/solid-soft/48/histogram.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/histogram.svg · PNG https://gentleface.com/png/solid-sharp/16/histogram.png · https://gentleface.com/png/solid-sharp/32/histogram.png · https://gentleface.com/png/solid-sharp/48/histogram.png

The SVG of every style: https://gentleface.com/icons/histogram.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="M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 10Z"/></svg>
```

### React

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

export function HistogramIcon(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="M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 10Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "histogram" (line-round), MIT. https://gentleface.com/icons/histogram -->
<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="M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 10Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "histogram" (line-round), MIT. https://gentleface.com/icons/histogram -->
<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="M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 10Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "histogram" (line-round), MIT. https://gentleface.com/icons/histogram. 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/histogram.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "histogram" (line-round), MIT. https://gentleface.com/icons/histogram. Takes the text color. */
.icon-histogram {
  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='M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 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='M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 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='M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 10Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "histogram" (line-round), MIT. https://gentleface.com/icons/histogram
     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#histogram"/></svg>
```

### SwiftUI

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

struct HistogramIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 4, y: 4.5))
        p.addCurve(to: CGPoint(x: 4.144, y: 4.144), control1: CGPoint(x: 4, y: 4.359), control2: CGPoint(x: 4.048, y: 4.241))
        p.addCurve(to: CGPoint(x: 4.5, y: 4), control1: CGPoint(x: 4.241, y: 4.048), control2: CGPoint(x: 4.359, y: 4))
        p.addLine(to: CGPoint(x: 7, y: 4))
        p.addLine(to: CGPoint(x: 7, y: 2.5))
        p.addCurve(to: CGPoint(x: 7.144, y: 2.144), control1: CGPoint(x: 7, y: 2.359), control2: CGPoint(x: 7.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 7.5, y: 2), control1: CGPoint(x: 7.241, y: 2.048), control2: CGPoint(x: 7.359, y: 2))
        p.addLine(to: CGPoint(x: 10.5, y: 2))
        p.addCurve(to: CGPoint(x: 10.856, y: 2.144), control1: CGPoint(x: 10.641, y: 2), control2: CGPoint(x: 10.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 11, y: 2.5), control1: CGPoint(x: 10.952, y: 2.241), control2: CGPoint(x: 11, y: 2.359))
        p.addLine(to: CGPoint(x: 11, y: 7))
        p.addLine(to: CGPoint(x: 13.5, y: 7))
        p.addCurve(to: CGPoint(x: 13.856, y: 7.144), control1: CGPoint(x: 13.641, y: 7), control2: CGPoint(x: 13.759, y: 7.048))
        p.addCurve(to: CGPoint(x: 14, y: 7.5), control1: CGPoint(x: 13.952, y: 7.241), control2: CGPoint(x: 14, y: 7.359))
        p.addLine(to: CGPoint(x: 14, y: 13.5))
        p.addCurve(to: CGPoint(x: 13.856, y: 13.856), control1: CGPoint(x: 14, y: 13.641), control2: CGPoint(x: 13.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 13.5, y: 14), control1: CGPoint(x: 13.759, y: 13.952), control2: CGPoint(x: 13.641, y: 14))
        p.addLine(to: CGPoint(x: 1.5, y: 14))
        p.addCurve(to: CGPoint(x: 1.144, y: 13.856), control1: CGPoint(x: 1.359, y: 14), control2: CGPoint(x: 1.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 1, y: 13.5), control1: CGPoint(x: 1.048, y: 13.759), control2: CGPoint(x: 1, y: 13.641))
        p.addLine(to: CGPoint(x: 1, y: 9.5))
        p.addCurve(to: CGPoint(x: 1.144, y: 9.144), control1: CGPoint(x: 1, y: 9.359), control2: CGPoint(x: 1.048, y: 9.241))
        p.addCurve(to: CGPoint(x: 1.5, y: 9), control1: CGPoint(x: 1.241, y: 9.048), control2: CGPoint(x: 1.359, y: 9))
        p.addLine(to: CGPoint(x: 4, y: 9))
        p.addLine(to: CGPoint(x: 4, y: 4.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10, y: 3))
        p.addLine(to: CGPoint(x: 8, y: 3))
        p.addLine(to: CGPoint(x: 8, y: 13))
        p.addLine(to: CGPoint(x: 10, y: 13))
        p.addLine(to: CGPoint(x: 10, y: 3))
        p.closeSubpath()
        p.move(to: CGPoint(x: 5, y: 13))
        p.addLine(to: CGPoint(x: 7, y: 13))
        p.addLine(to: CGPoint(x: 7, y: 5))
        p.addLine(to: CGPoint(x: 5, y: 5))
        p.addLine(to: CGPoint(x: 5, y: 13))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13, y: 8))
        p.addLine(to: CGPoint(x: 11, y: 8))
        p.addLine(to: CGPoint(x: 11, y: 13))
        p.addLine(to: CGPoint(x: 13, y: 13))
        p.addLine(to: CGPoint(x: 13, y: 8))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4, y: 10))
        p.addLine(to: CGPoint(x: 2, y: 10))
        p.addLine(to: CGPoint(x: 2, y: 13))
        p.addLine(to: CGPoint(x: 4, y: 13))
        p.addLine(to: CGPoint(x: 4, y: 10))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "histogram" (line-round), MIT. https://gentleface.com/icons/histogram
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 HistogramIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "histogram", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 10Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_histogram.xml · Gentleface "histogram" (line-round), MIT. https://gentleface.com/icons/histogram -->
<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="M4 4.5C4 4.359 4.048 4.241 4.144 4.144C4.241 4.048 4.359 4 4.5 4L7 4L7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2L10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14L1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L4 9L4 4.5ZM10 3L8 3L8 13L10 13L10 3ZM5 13L7 13L7 5L5 5L5 13ZM13 8L11 8L11 13L13 13L13 8ZM4 10L2 10L2 13L4 13L4 10Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(4, 4.5)
      ..cubicTo(4, 4.359, 4.048, 4.241, 4.144, 4.144)
      ..cubicTo(4.241, 4.048, 4.359, 4, 4.5, 4)
      ..lineTo(7, 4)
      ..lineTo(7, 2.5)
      ..cubicTo(7, 2.359, 7.048, 2.241, 7.144, 2.144)
      ..cubicTo(7.241, 2.048, 7.359, 2, 7.5, 2)
      ..lineTo(10.5, 2)
      ..cubicTo(10.641, 2, 10.759, 2.048, 10.856, 2.144)
      ..cubicTo(10.952, 2.241, 11, 2.359, 11, 2.5)
      ..lineTo(11, 7)
      ..lineTo(13.5, 7)
      ..cubicTo(13.641, 7, 13.759, 7.048, 13.856, 7.144)
      ..cubicTo(13.952, 7.241, 14, 7.359, 14, 7.5)
      ..lineTo(14, 13.5)
      ..cubicTo(14, 13.641, 13.952, 13.759, 13.856, 13.856)
      ..cubicTo(13.759, 13.952, 13.641, 14, 13.5, 14)
      ..lineTo(1.5, 14)
      ..cubicTo(1.359, 14, 1.241, 13.952, 1.144, 13.856)
      ..cubicTo(1.048, 13.759, 1, 13.641, 1, 13.5)
      ..lineTo(1, 9.5)
      ..cubicTo(1, 9.359, 1.048, 9.241, 1.144, 9.144)
      ..cubicTo(1.241, 9.048, 1.359, 9, 1.5, 9)
      ..lineTo(4, 9)
      ..lineTo(4, 4.5)
      ..close()
      ..moveTo(10, 3)
      ..lineTo(8, 3)
      ..lineTo(8, 13)
      ..lineTo(10, 13)
      ..lineTo(10, 3)
      ..close()
      ..moveTo(5, 13)
      ..lineTo(7, 13)
      ..lineTo(7, 5)
      ..lineTo(5, 5)
      ..lineTo(5, 13)
      ..close()
      ..moveTo(13, 8)
      ..lineTo(11, 8)
      ..lineTo(11, 13)
      ..lineTo(13, 13)
      ..lineTo(13, 8)
      ..close()
      ..moveTo(4, 10)
      ..lineTo(2, 10)
      ..lineTo(2, 13)
      ..lineTo(4, 13)
      ..lineTo(4, 10)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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