Skip to content

2273 - Dashboard Layout

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

maml
{
  title: "Russel, Ortiz and Schaden Dashboard"
  refresh_interval: 60 # seconds
  widgets: [
    {
      type: "chart"
      title: "Traffic"
      source: "/api/metrics/traffic"
      chart_type: "area"
      period: "30d"
    }

    {
      type: "stat"
      title: "Total Users"
      source: "/api/stats/revenue"
      format: "number"
    }

    {
      type: "table"
      title: "Latest Signups"
      source: "/api/recent/signups"
      limit: 5
    }
  ]

  theme: "auto"
}

See Also