Plotly.Indicator (plotly_ex v0.3.0)

Copy Markdown View Source

Plotly Indicator trace struct. All top-level trace properties are struct fields. Unknown keys raise ArgumentError at construction time.

Nested properties (marker, line, etc.) accept plain maps or keyword lists — keyword lists are automatically normalised to maps before JSON encoding.

Fields

See the Plotly indicator reference for full descriptions.

  • :align — one of: "left" | "center" | "right"

  • :customdata — data array
  • :delta — map (nested properties)
  • :domain — map (nested properties)
  • :gauge — map (nested properties)
  • :ids — data array
  • :legend — string (subplot id)
  • :legendgrouptitle — map (nested properties)
  • :legendrank — number
  • :legendwidth — number, 0
  • :meta — any
  • :mode — flags: "number" | "delta" | "gauge"

  • :name — string
  • :number — map (nested properties)
  • :title — any
  • :uid — string
  • :uirevision — any
  • :value — number
  • :visible — one of: true | false | "legendonly"

Summary

Functions

Single-value KPI: number, gauge, or bullet. Construct a Indicator trace. Raises ArgumentError on unknown keys.

Functions

new(opts \\ [])

Single-value KPI: number, gauge, or bullet. Construct a Indicator trace. Raises ArgumentError on unknown keys.