Jido.Chat.Card.ChartSeries (Jido Chat v1.2.0)

Copy Markdown View Source

One named series whose ordered values align with chart categories.

Summary

Functions

Builds a chart series from serialized data.

Creates a named chart series.

Returns the schema for a chart series.

Serializes the chart series.

Types

t()

@type t() :: %Jido.Chat.Card.ChartSeries{
  metadata: map(),
  name: binary(),
  values: [any()]
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Builds a chart series from serialized data.

new(series)

@spec new(t() | map() | {String.t(), [number()]}) :: t()

Creates a named chart series.

schema()

Returns the schema for a chart series.

to_map(series)

@spec to_map(t()) :: map()

Serializes the chart series.