# chart-bar Icon

> The chart-bar icon from Heroicons as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Heroicons](https://composables.com/icons/icon-libraries/heroicons.md)
- License: MIT (full text in the [Heroicons library page](https://composables.com/icons/icon-libraries/heroicons.md))
- Styles: [Outline](https://composables.com/icons/icon-libraries/heroicons/chart-bar.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/chart-bar.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/chart-bar.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/chart-bar.md?v=micro)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/chart-bar.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val HeroiconsChartBar: ImageVector
    get() {
        if (_HeroiconsChartBar != null) return _HeroiconsChartBar!!
        
        _HeroiconsChartBar = ImageVector.Builder(
            name = "chart-bar",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(3f, 13.125f)
                curveTo(3f, 12.504f, 3.504f, 12f, 4.125f, 12f)
                horizontalLineToRelative(2.25f)
                curveToRelative(0.621f, 0f, 1.125f, 0.504f, 1.125f, 1.125f)
                verticalLineToRelative(6.75f)
                curveTo(7.5f, 20.496f, 6.996f, 21f, 6.375f, 21f)
                horizontalLineToRelative(-2.25f)
                arcTo(1.125f, 1.125f, 0f, false, true, 3f, 19.875f)
                verticalLineToRelative(-6.75f)
                close()
                moveTo(9.75f, 8.625f)
                curveToRelative(0f, -0.621f, 0.504f, -1.125f, 1.125f, -1.125f)
                horizontalLineToRelative(2.25f)
                curveToRelative(0.621f, 0f, 1.125f, 0.504f, 1.125f, 1.125f)
                verticalLineToRelative(11.25f)
                curveToRelative(0f, 0.621f, -0.504f, 1.125f, -1.125f, 1.125f)
                horizontalLineToRelative(-2.25f)
                arcToRelative(1.125f, 1.125f, 0f, false, true, -1.125f, -1.125f)
                verticalLineTo(8.625f)
                close()
                moveTo(16.5f, 4.125f)
                curveToRelative(0f, -0.621f, 0.504f, -1.125f, 1.125f, -1.125f)
                horizontalLineToRelative(2.25f)
                curveTo(20.496f, 3f, 21f, 3.504f, 21f, 4.125f)
                verticalLineToRelative(15.75f)
                curveToRelative(0f, 0.621f, -0.504f, 1.125f, -1.125f, 1.125f)
                horizontalLineToRelative(-2.25f)
                arcToRelative(1.125f, 1.125f, 0f, false, true, -1.125f, -1.125f)
                verticalLineTo(4.125f)
                close()
            }
        }.build()
        
        return _HeroiconsChartBar!!
    }

private var _HeroiconsChartBar: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/chart-bar.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:strokeColor="@android:color/black"
        android:strokeWidth="1.5"
        android:pathData="M3,13.125C3,12.504 3.504,12 4.125,12h2.25c0.621,0 1.125,0.504 1.125,1.125v6.75C7.5,20.496 6.996,21 6.375,21h-2.25A1.125,1.125 0 0,1 3,19.875v-6.75ZM9.75,8.625c0,-0.621 0.504,-1.125 1.125,-1.125h2.25c0.621,0 1.125,0.504 1.125,1.125v11.25c0,0.621 -0.504,1.125 -1.125,1.125h-2.25a1.125,1.125 0 0,1 -1.125,-1.125V8.625ZM16.5,4.125c0,-0.621 0.504,-1.125 1.125,-1.125h2.25C20.496,3 21,3.504 21,4.125v15.75c0,0.621 -0.504,1.125 -1.125,1.125h-2.25a1.125,1.125 0 0,1 -1.125,-1.125V4.125Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/chart-bar.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"/></svg>
```
