# `PhiaUi.Components.Data.ChartErrorBar`
[🔗](https://github.com/charlenopires/PhiaUI/blob/v0.1.17/lib/phia_ui/components/data/chart_error_bar.ex#L1)

Error bar component for chart uncertainty visualization.

Maps to Highcharts' errorbar series type. Renders vertical I-beam indicators
(line + horizontal caps) showing error ranges at each data point.

## Examples

    <.chart_error_bar
      data={[
        %{px: 100, py_low: 50, py_high: 150},
        %{px: 200, py_low: 80, py_high: 180}
      ]}
    />

# `chart_error_bar`

## Attributes

* `data` (`:list`) (required) - List of `%{px, py_low, py_high}` error bar data points.
* `cap_width` (`:integer`) - Width of the horizontal caps in pixels. Defaults to `8`.
* `color` (`:string`) - Error bar color. Defaults to `"currentColor"`.
* `stroke_width` (`:any`) - Line stroke width. Defaults to `1.5`.
* `animate` (`:boolean`) - Enable pop-in animation. Defaults to `true`.
* `animation_duration` (`:integer`) - Animation duration in ms. Defaults to `600`.
* `class` (`:string`) - Defaults to `nil`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
