Skip to main content
Dark Stacked
DarkBarDashboard

Dark Stacked

Ocean-palette stacked bar for cohort or segment breakdown on a dark dashboard.

Open in Studio

Theme tokens

Background
#111827
Font
Inter / 12px
Mode
dark

API snippet

POST this to /api/v1/render to render this template programmatically.

POST /api/v1/render
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

{
  "type": "bar",
  "width": 800,
  "height": 400,
  "format": "png",
  "data": {
    "labels": [
      "Jan",
      "Feb",
      "Mar",
      "Apr",
      "May",
      "Jun"
    ],
    "datasets": [
      {
        "label": "New",
        "data": [
          180,
          220,
          195,
          270,
          310,
          350
        ],
        "backgroundColor": "#22d3ee",
        "borderRadius": 4,
        "borderSkipped": false
      },
      {
        "label": "Returning",
        "data": [
          340,
          380,
          420,
          460,
          510,
          570
        ],
        "backgroundColor": "#38bdf8",
        "borderRadius": 4,
        "borderSkipped": false
      },
      {
        "label": "Reactivated",
        "data": [
          60,
          82,
          74,
          98,
          112,
          131
        ],
        "backgroundColor": "#60a5fa",
        "borderRadius": 4,
        "borderSkipped": false
      }
    ]
  },
  "options": {
    "color": "#67e8f9",
    "plugins": {
      "legend": {
        "position": "top",
        "align": "start",
        "labels": {
          "color": "#67e8f9",
          "usePointStyle": true,
          "padding": 16
        }
      },
      "title": {
        "display": true,
        "text": "Active Users by Cohort",
        "color": "#cffafe",
        "font": {
          "size": 14,
          "weight": "bold"
        }
      }
    },
    "scales": {
      "x": {
        "stacked": true,
        "grid": {
          "display": false
        },
        "border": {
          "display": false
        },
        "ticks": {
          "color": "#0e7490"
        }
      },
      "y": {
        "stacked": true,
        "grid": {
          "color": "rgba(34, 211, 238, 0.08)"
        },
        "border": {
          "display": false
        },
        "ticks": {
          "color": "#0e7490"
        }
      }
    }
  },
  "theme": {
    "palette": [
      "#22d3ee",
      "#38bdf8",
      "#60a5fa",
      "#818cf8",
      "#34d399",
      "#4ade80"
    ],
    "backgroundColor": "#111827",
    "fontFamily": "Inter",
    "fontSize": 12,
    "gridColor": "rgba(148, 163, 184, 0.18)",
    "mode": "dark"
  }
}

More Bar templates