|
id
|
:string
|
|
|
|
|
class
|
:string
|
|
|
|
|
type
|
:atom
|
|
|
|
|
preset
|
:atom
|
Name of a preset that will set most of the chart properties
|
|
|
|
data
|
%ChartData{}
|
Chart data (labels and datasets)
|
|
|
|
options
|
:map
|
|
|
|
|
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
|
|
|
|
click_target
|
:string
|
id of the component targetted by click_event
|
|
|
|
phx-update
|
:string
|
|
|
|