# bar-chart icon

Bar chart. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/bar-chart

- Category: Charts & data
- Use it for: bar chart, statistics, analytics, column chart, bar graph, stats
- Tags: chart, graph, bars, stats, column, report
- Family: activity, activity-search, area-chart, area-chart-stacked, 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, treemap, trending-down, trending-up, trending-up-down, venn-diagram, waterfall-chart
- Component name: BarChartIcon
- Added: 2026-10-14

## Alternatives

- `bar-chart-horizontal`: bars running left to right (horizontal-bar-chart)
- `histogram`: a distribution over value ranges (histogram)
- `line-chart`: trends over time (line-chart)
- `file-chart`: a report document (report-file)
- `layout-dashboard`: a dashboard of widgets (dashboard)

## Also fits

- histogram: values per category, not per range (bar-chart)
- graph: a bar chart (bar-chart)
- report file: analytics or a chart without a document (analytics)
- revenue: revenue analytics
- bar: a bar chart
- analysis: data analysis or analytics
- traffic: web traffic or visits (analytics)

## Not for

- cellular signal (use `signal`): rising bars of a chart mean data (bar-chart)
- now playing (use `audio-lines`): chart bars rise from a baseline and mean data, not sound

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

The SVG of every style: https://gentleface.com/icons/bar-chart.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="M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 10L2 10L2 13L4 13L4 10Z"/></svg>
```

### React

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

export function BarChartIcon(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="M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 10L2 10L2 13L4 13L4 10Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "bar-chart" (line-round), MIT. https://gentleface.com/icons/bar-chart -->
<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="M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 10L2 10L2 13L4 13L4 10Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "bar-chart" (line-round), MIT. https://gentleface.com/icons/bar-chart -->
<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="M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 10L2 10L2 13L4 13L4 10Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "bar-chart" (line-round), MIT. https://gentleface.com/icons/bar-chart. Takes the text color. */
.icon-bar-chart {
  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='M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 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='M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 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='M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 10L2 10L2 13L4 13L4 10Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct BarChartIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 6.144, y: 2.144))
        p.addCurve(to: CGPoint(x: 6.5, y: 2), control1: CGPoint(x: 6.241, y: 2.048), control2: CGPoint(x: 6.359, y: 2))
        p.addLine(to: CGPoint(x: 9.5, y: 2))
        p.addCurve(to: CGPoint(x: 9.856, y: 2.144), control1: CGPoint(x: 9.641, y: 2), control2: CGPoint(x: 9.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 10, y: 2.5), control1: CGPoint(x: 9.952, y: 2.241), control2: CGPoint(x: 10, y: 2.359))
        p.addLine(to: CGPoint(x: 10, y: 13.5))
        p.addCurve(to: CGPoint(x: 9.856, y: 13.856), control1: CGPoint(x: 10, y: 13.641), control2: CGPoint(x: 9.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 9.5, y: 14), control1: CGPoint(x: 9.759, y: 13.952), control2: CGPoint(x: 9.641, y: 14))
        p.addLine(to: CGPoint(x: 6.5, y: 14))
        p.addCurve(to: CGPoint(x: 6.144, y: 13.856), control1: CGPoint(x: 6.359, y: 14), control2: CGPoint(x: 6.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 6, y: 13.5), control1: CGPoint(x: 6.048, y: 13.759), control2: CGPoint(x: 6, y: 13.641))
        p.addLine(to: CGPoint(x: 6, y: 2.5))
        p.addCurve(to: CGPoint(x: 6.144, y: 2.144), control1: CGPoint(x: 6, y: 2.359), control2: CGPoint(x: 6.048, y: 2.241))
        p.closeSubpath()
        p.move(to: CGPoint(x: 9, y: 13))
        p.addLine(to: CGPoint(x: 9, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 13))
        p.addLine(to: CGPoint(x: 9, y: 13))
        p.closeSubpath()
        p.move(to: CGPoint(x: 14.856, y: 6.144))
        p.addCurve(to: CGPoint(x: 15, y: 6.5), control1: CGPoint(x: 14.952, y: 6.241), control2: CGPoint(x: 15, y: 6.359))
        p.addLine(to: CGPoint(x: 15, y: 13.5))
        p.addCurve(to: CGPoint(x: 14.856, y: 13.856), control1: CGPoint(x: 15, y: 13.641), control2: CGPoint(x: 14.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 14.5, y: 14), control1: CGPoint(x: 14.759, y: 13.952), control2: CGPoint(x: 14.641, y: 14))
        p.addLine(to: CGPoint(x: 11.5, y: 14))
        p.addCurve(to: CGPoint(x: 11.144, y: 13.856), control1: CGPoint(x: 11.359, y: 14), control2: CGPoint(x: 11.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 11, y: 13.5), control1: CGPoint(x: 11.048, y: 13.759), control2: CGPoint(x: 11, y: 13.641))
        p.addLine(to: CGPoint(x: 11, y: 6.5))
        p.addCurve(to: CGPoint(x: 11.144, y: 6.144), control1: CGPoint(x: 11, y: 6.359), control2: CGPoint(x: 11.048, y: 6.241))
        p.addCurve(to: CGPoint(x: 11.5, y: 6), control1: CGPoint(x: 11.241, y: 6.048), control2: CGPoint(x: 11.359, y: 6))
        p.addLine(to: CGPoint(x: 14.5, y: 6))
        p.addCurve(to: CGPoint(x: 14.856, y: 6.144), control1: CGPoint(x: 14.641, y: 6), control2: CGPoint(x: 14.759, y: 6.048))
        p.closeSubpath()
        p.move(to: CGPoint(x: 14, y: 13))
        p.addLine(to: CGPoint(x: 14, y: 7))
        p.addLine(to: CGPoint(x: 12, y: 7))
        p.addLine(to: CGPoint(x: 12, y: 13))
        p.addLine(to: CGPoint(x: 14, y: 13))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4.856, y: 9.144))
        p.addCurve(to: CGPoint(x: 5, y: 9.5), control1: CGPoint(x: 4.952, y: 9.241), control2: CGPoint(x: 5, y: 9.359))
        p.addLine(to: CGPoint(x: 5, y: 13.5))
        p.addCurve(to: CGPoint(x: 4.856, y: 13.856), control1: CGPoint(x: 5, y: 13.641), control2: CGPoint(x: 4.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 4.5, y: 14), control1: CGPoint(x: 4.759, y: 13.952), control2: CGPoint(x: 4.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.5, y: 9))
        p.addCurve(to: CGPoint(x: 4.856, y: 9.144), control1: CGPoint(x: 4.641, y: 9), control2: CGPoint(x: 4.759, y: 9.048))
        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))
    }
}

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

### Compose

```kotlin
// Gentleface "bar-chart" (line-round), MIT. https://gentleface.com/icons/bar-chart
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 BarChartIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "bar-chart", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 10L2 10L2 13L4 13L4 10Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_bar_chart.xml · Gentleface "bar-chart" (line-round), MIT. https://gentleface.com/icons/bar-chart -->
<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="M6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 13.5C10 13.641 9.952 13.759 9.856 13.856C9.759 13.952 9.641 14 9.5 14L6.5 14C6.359 14 6.241 13.952 6.144 13.856C6.048 13.759 6 13.641 6 13.5L6 2.5C6 2.359 6.048 2.241 6.144 2.144ZM9 13L9 3L7 3L7 13L9 13ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 13.5C15 13.641 14.952 13.759 14.856 13.856C14.759 13.952 14.641 14 14.5 14L11.5 14C11.359 14 11.241 13.952 11.144 13.856C11.048 13.759 11 13.641 11 13.5L11 6.5C11 6.359 11.048 6.241 11.144 6.144C11.241 6.048 11.359 6 11.5 6L14.5 6C14.641 6 14.759 6.048 14.856 6.144ZM14 13L14 7L12 7L12 13L14 13ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 13.5C5 13.641 4.952 13.759 4.856 13.856C4.759 13.952 4.641 14 4.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.5 9C4.641 9 4.759 9.048 4.856 9.144ZM4 10L2 10L2 13L4 13L4 10Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(6.144, 2.144)
      ..cubicTo(6.241, 2.048, 6.359, 2, 6.5, 2)
      ..lineTo(9.5, 2)
      ..cubicTo(9.641, 2, 9.759, 2.048, 9.856, 2.144)
      ..cubicTo(9.952, 2.241, 10, 2.359, 10, 2.5)
      ..lineTo(10, 13.5)
      ..cubicTo(10, 13.641, 9.952, 13.759, 9.856, 13.856)
      ..cubicTo(9.759, 13.952, 9.641, 14, 9.5, 14)
      ..lineTo(6.5, 14)
      ..cubicTo(6.359, 14, 6.241, 13.952, 6.144, 13.856)
      ..cubicTo(6.048, 13.759, 6, 13.641, 6, 13.5)
      ..lineTo(6, 2.5)
      ..cubicTo(6, 2.359, 6.048, 2.241, 6.144, 2.144)
      ..close()
      ..moveTo(9, 13)
      ..lineTo(9, 3)
      ..lineTo(7, 3)
      ..lineTo(7, 13)
      ..lineTo(9, 13)
      ..close()
      ..moveTo(14.856, 6.144)
      ..cubicTo(14.952, 6.241, 15, 6.359, 15, 6.5)
      ..lineTo(15, 13.5)
      ..cubicTo(15, 13.641, 14.952, 13.759, 14.856, 13.856)
      ..cubicTo(14.759, 13.952, 14.641, 14, 14.5, 14)
      ..lineTo(11.5, 14)
      ..cubicTo(11.359, 14, 11.241, 13.952, 11.144, 13.856)
      ..cubicTo(11.048, 13.759, 11, 13.641, 11, 13.5)
      ..lineTo(11, 6.5)
      ..cubicTo(11, 6.359, 11.048, 6.241, 11.144, 6.144)
      ..cubicTo(11.241, 6.048, 11.359, 6, 11.5, 6)
      ..lineTo(14.5, 6)
      ..cubicTo(14.641, 6, 14.759, 6.048, 14.856, 6.144)
      ..close()
      ..moveTo(14, 13)
      ..lineTo(14, 7)
      ..lineTo(12, 7)
      ..lineTo(12, 13)
      ..lineTo(14, 13)
      ..close()
      ..moveTo(4.856, 9.144)
      ..cubicTo(4.952, 9.241, 5, 9.359, 5, 9.5)
      ..lineTo(5, 13.5)
      ..cubicTo(5, 13.641, 4.952, 13.759, 4.856, 13.856)
      ..cubicTo(4.759, 13.952, 4.641, 14, 4.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.5, 9)
      ..cubicTo(4.641, 9, 4.759, 9.048, 4.856, 9.144)
      ..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(_BarChartIconPainter old) => old.color != color;
}
```
