Skip to main content
type
string
Required. Chart type: ‘column’, ‘line’, or ‘pie’.
data
Array
Required. Data for the chart (array of arrays).
config
Object
customProps
Object
Optional. Additional properties for the chart.
- slug: Charts
  type: line
  data:
    - ["Month", "Sales", "Expenses"]
    - ["Jan", 1000, 400]
    - ["Feb", 1500, 460]
    - ["Mar", 1300, 420]
    - ["Apr", 1700, 500]
  config:
    x:
      type: category
      label: Month
    y:
      type: value
      label: Amount ($)
  customProps:
    height: 400
    seriesField: category
    smooth: true
  onInit: myInitBlockCharts
  updateOn: myUpdateBlockCharts