{
  "$schema": "https://vega.github.io/schema/vega-lite/v6.json",
  "config": {
    "background": "#1c1a1d",
    "font": "Helvetica, Arial, sans-serif",
    "axis": {
      "labelColor": "#aaa",
      "titleColor": "#aaa",
      "domainColor": "#363338",
      "tickColor": "#363338",
      "gridColor": "#363338",
      "gridOpacity": 0.6,
      "labelFontSize": 14,
      "titleFontSize": 14,
      "titleFontWeight": "normal"
    },
    "legend": {
      "labelColor": "#e0e0e0",
      "titleColor": "#aaa",
      "labelFontSize": 14,
      "symbolType": "square",
      "symbolSize": 130
    },
    "title": {
      "color": "#e0e0e0",
      "fontSize": 19,
      "fontWeight": 600,
      "anchor": "start",
      "subtitleColor": "#aaa",
      "subtitleFontSize": 14,
      "subtitleLineHeight": 20,
      "offset": 12
    },
    "header": {
      "labelColor": "#e0e0e0",
      "labelFontSize": 14,
      "labelFontWeight": 600,
      "titleColor": "#aaa"
    },
    "view": {
      "stroke": null
    }
  },
  "title": {
    "text": "Tokens by project",
    "subtitle": [
      "Tokens per day, 7-day rolling mean, for the 16 projects I spent the",
      "most tokens on. Each panel is scaled to its own peak, with the total in the label;",
      "together they are 78% of all tokens."
    ]
  },
  "transform": [
    {
      "window": [
        {
          "op": "mean",
          "field": "millions",
          "as": "smooth"
        }
      ],
      "frame": [
        -3,
        3
      ],
      "groupby": [
        "project"
      ],
      "sort": [
        {
          "field": "date"
        }
      ]
    }
  ],
  "facet": {
    "row": {
      "field": "project",
      "type": "nominal",
      "sort": [
        "slop-university \u00b7 15.6B",
        "llms-unplugged \u00b7 4.1B",
        "dotfiles \u00b7 3.3B",
        "extempore \u00b7 2.9B",
        "comp4020 (workspace) \u00b7 2.6B",
        "comp4020-agentic-coding-studio \u00b7 2.0B",
        "benswift.me \u00b7 1.9B",
        "out-of-office-cv \u00b7 1.8B",
        "blowing-smoke \u00b7 1.8B",
        "comp4020/website \u00b7 1.6B",
        "astro-theme-anu \u00b7 1.4B",
        "strproxy \u00b7 1.2B",
        "slop-salon \u00b7 1.1B",
        "panic-tda \u00b7 0.9B",
        "aps-ai-transparency-tracker \u00b7 0.8B",
        "panic \u00b7 0.8B"
      ],
      "title": null,
      "header": {
        "labelAngle": 0,
        "labelAlign": "left",
        "labelOrient": "left",
        "labelPadding": 6
      }
    }
  },
  "spacing": 3,
  "resolve": {
    "scale": {
      "y": "independent"
    }
  },
  "spec": {
    "width": 622,
    "height": 32,
    "mark": {
      "type": "area",
      "color": "#be2edd",
      "opacity": 0.9,
      "interpolate": "monotone"
    },
    "encoding": {
      "x": {
        "field": "date",
        "type": "temporal",
        "axis": {
          "title": null,
          "format": "%b %y",
          "labelAngle": 0,
          "grid": false,
          "tickCount": {
            "interval": "month",
            "step": 2
          }
        }
      },
      "y": {
        "field": "smooth",
        "type": "quantitative",
        "axis": {
          "title": null,
          "grid": false,
          "labels": false,
          "ticks": false,
          "domain": false
        }
      },
      "tooltip": [
        {
          "field": "project",
          "type": "nominal"
        },
        {
          "field": "date",
          "type": "temporal",
          "title": "day"
        },
        {
          "field": "smooth",
          "type": "quantitative",
          "format": ",.0f",
          "title": "million tokens/day"
        }
      ]
    }
  },
  "data": {
    "url": "/code/token-charts/by-project.data.json",
    "format": {
      "type": "json"
    }
  }
}
