PhiaUi.Components.Data.ChartErrorBar (phia_ui v0.1.17)

Copy Markdown View Source

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}
  ]}
/>

Summary

Functions

chart_error_bar(assigns)

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.