Skip to content

1263 - Dashboard Layout

Dashboard widget layout configuration. This is an example of a MAML document.

maml
{
  title: "Runte Inc Dashboard"
  refresh_interval: 30 # seconds
  widgets: [
    {
      type: "chart"
      title: "Traffic"
      source: "/api/metrics/revenue"
      chart_type: "bar"
      period: "7d"
    }

    {
      type: "stat"
      title: "Error Rate"
      source: "/api/stats/users"
      format: "currency"
    }

    {
      type: "table"
      title: "Top Pages"
      source: "/api/recent/signups"
      limit: 24
    }
  ]

  theme: "light"
}

See Also