# bar-chart-stacked icon

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

- Category: Charts & data
- Use it for: stacked bar chart, stacked column chart
- Tags: chart, graph, bars, stacked, column, segments, composition, statistics, report
- 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, 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: BarChartStackedIcon
- Added: 2026-10-16

## Alternatives

- `bar-chart-grouped`: bars side by side (grouped-bar-chart)

## Also fits

- grouped bar chart: parts stacked into one bar (stacked-bar-chart)

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

The SVG of every style: https://gentleface.com/icons/bar-chart-stacked.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="M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 10Z"/></svg>
```

### React

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

export function BarChartStackedIcon(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="M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 10Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "bar-chart-stacked" (line-round), MIT. https://gentleface.com/icons/bar-chart-stacked -->
<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="M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 10Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "bar-chart-stacked" (line-round), MIT. https://gentleface.com/icons/bar-chart-stacked -->
<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="M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 10Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "bar-chart-stacked" (line-round), MIT. https://gentleface.com/icons/bar-chart-stacked. Takes the text color. */
.icon-bar-chart-stacked {
  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='M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 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='M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 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='M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 10Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct BarChartStackedIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 9.856, y: 2.144))
        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: 14))
        p.addLine(to: CGPoint(x: 6, y: 14))
        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.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.closeSubpath()
        p.move(to: CGPoint(x: 9, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 8))
        p.addLine(to: CGPoint(x: 9, y: 8))
        p.addLine(to: CGPoint(x: 9, y: 3))
        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: 14))
        p.addLine(to: CGPoint(x: 11, y: 14))
        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: 7))
        p.addLine(to: CGPoint(x: 12, y: 7))
        p.addLine(to: CGPoint(x: 12, y: 10))
        p.addLine(to: CGPoint(x: 14, y: 10))
        p.addLine(to: CGPoint(x: 14, y: 7))
        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: 14))
        p.addLine(to: CGPoint(x: 1, y: 14))
        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: 12))
        p.addLine(to: CGPoint(x: 4, y: 12))
        p.addLine(to: CGPoint(x: 4, y: 10))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "bar-chart-stacked" (line-round), MIT. https://gentleface.com/icons/bar-chart-stacked
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 BarChartStackedIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "bar-chart-stacked", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 10Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_bar_chart_stacked.xml · Gentleface "bar-chart-stacked" (line-round), MIT. https://gentleface.com/icons/bar-chart-stacked -->
<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="M9.856 2.144C9.952 2.241 10 2.359 10 2.5L10 14L6 14L6 2.5C6 2.359 6.048 2.241 6.144 2.144C6.241 2.048 6.359 2 6.5 2L9.5 2C9.641 2 9.759 2.048 9.856 2.144ZM9 3L7 3L7 8L9 8L9 3ZM14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14L11 14L11 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 7L12 7L12 10L14 10L14 7ZM4.856 9.144C4.952 9.241 5 9.359 5 9.5L5 14L1 14L1 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 12L4 12L4 10Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(9.856, 2.144)
      ..cubicTo(9.952, 2.241, 10, 2.359, 10, 2.5)
      ..lineTo(10, 14)
      ..lineTo(6, 14)
      ..lineTo(6, 2.5)
      ..cubicTo(6, 2.359, 6.048, 2.241, 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)
      ..close()
      ..moveTo(9, 3)
      ..lineTo(7, 3)
      ..lineTo(7, 8)
      ..lineTo(9, 8)
      ..lineTo(9, 3)
      ..close()
      ..moveTo(14.856, 6.144)
      ..cubicTo(14.952, 6.241, 15, 6.359, 15, 6.5)
      ..lineTo(15, 14)
      ..lineTo(11, 14)
      ..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, 7)
      ..lineTo(12, 7)
      ..lineTo(12, 10)
      ..lineTo(14, 10)
      ..lineTo(14, 7)
      ..close()
      ..moveTo(4.856, 9.144)
      ..cubicTo(4.952, 9.241, 5, 9.359, 5, 9.5)
      ..lineTo(5, 14)
      ..lineTo(1, 14)
      ..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, 12)
      ..lineTo(4, 12)
      ..lineTo(4, 10)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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