Chart

Attribute Type Documentation Default Value
id :string Chart id
class :string Extends the chart class
type :atom The chartjs chart type.
preset :atom Name of a preset that will set most of the chart properties
data %ChartData{} Chart data (labels and datasets)
options :map chart.js options
gradients :any chart.js gradients definition: %{gradient_name: %{bounds: [...], colorStops: [...]}}
width :integer
height :integer
loading :boolean
click_event :string Name of callback when clicking on a chart
phx-update :string Liveview phx-update