Skip to content

974 - Dashboard Layout

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

maml
{
  title: "Medhurst and Sons Dashboard"
  refresh_interval: 300 # seconds
  widgets: [
    {
      type: "chart"
      title: "Revenue"
      source: "/api/metrics/traffic"
      chart_type: "bar"
      period: "90d"
    }

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

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

  theme: "light"
}

See Also