View Source LiveCharts.Chart (live_charts v0.4.0)

Chart struct representing initial chart data and configuration.

To create a new %Chart{}, you should use the build/1 method.

Summary

Types

Chart series type

t()

Chart config type

Functions

Create a new %LiveCharts.Chart{} struct

Types

series()

@type series() :: map()

Chart series type

t()

@type t() :: %LiveCharts.Chart{
  adapter: atom(),
  id: String.t(),
  options: map(),
  series: [series()],
  type: atom()
}

Chart config type

Functions

build(params)

@spec build(map()) :: t()

Create a new %LiveCharts.Chart{} struct