Skip to content

270 - Dashboard Layout

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

maml
{
  title: "Fisher LLC Dashboard"
  refresh_interval: 300 # seconds
  widgets: [
    {
      type: "chart"
      title: "Active Users"
      source: "/api/metrics/revenue"
      chart_type: "area"
      period: "30d"
    }

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

    {
      type: "table"
      title: "Recent Orders"
      source: "/api/recent/orders"
      limit: 25
    }
  ]

  theme: "dark"
}

See Also