{
  "step": "chart",
  "tool": "viz_render",
  "input": {
    "chartType": "bar",
    "brand": "Harbor",
    "theme": "light",
    "rows": [
      {
        "warehouse": "Lakeside Distribution",
        "pallets": 640
      },
      {
        "warehouse": "North Yard",
        "pallets": 760
      },
      {
        "warehouse": "Harbor Cold Store",
        "pallets": 2400
      }
    ],
    "encodings": {
      "x": {
        "field": "warehouse",
        "type": "nominal"
      },
      "y": {
        "field": "pallets",
        "type": "quantitative"
      }
    },
    "output": {
      "includeNormalizedSpec": true,
      "includeA11y": true
    }
  },
  "isError": false,
  "error": null,
  "output": {
    "status": "ok",
    "chartType": "bar",
    "mode": "explicit",
    "spec": {
      "$schema": "https://vega.github.io/schema/vega-lite/v6.json",
      "title": "Bar chart",
      "description": "Bar chart of pallets by warehouse.",
      "data": {
        "values": [
          {
            "warehouse": "Lakeside Distribution",
            "pallets": 640
          },
          {
            "warehouse": "North Yard",
            "pallets": 760
          },
          {
            "warehouse": "Harbor Cold Store",
            "pallets": 2400
          }
        ]
      },
      "autosize": {
        "type": "fit-y",
        "contains": "padding"
      },
      "config": {
        "background": "#FFFFFF",
        "font": "'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
        "title": {
          "color": "#070B0B",
          "font": "'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
          "fontSize": 24,
          "fontWeight": 600,
          "anchor": "start"
        },
        "axis": {
          "titleColor": "#070B0B",
          "titleFont": "'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
          "labelColor": "#4C5455",
          "labelFont": "'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
          "gridColor": "#E1E6E7",
          "domainColor": "#CFD6D7",
          "tickColor": "#CFD6D7"
        },
        "axisX": {
          "grid": false
        },
        "axisY": {
          "grid": true,
          "tickCount": {
            "expr": "min(5, ceil(height / 40))"
          }
        },
        "legend": {
          "titleColor": "#070B0B",
          "titleFont": "'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
          "labelColor": "#4C5455",
          "labelFont": "'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"
        },
        "view": {
          "stroke": null
        }
      },
      "usermeta": {
        "oods": {
          "specId": "viz:bar",
          "name": "Bar chart",
          "a11y": {
            "description": "Bar chart of pallets by warehouse.",
            "ariaLabel": "Bar chart of Pallets by Warehouse"
          }
        }
      },
      "mark": {
        "type": "bar",
        "color": "#00A2BD",
        "width": {
          "expr": "min(48, bandwidth('x'))"
        }
      },
      "encoding": {
        "x": {
          "field": "warehouse",
          "type": "nominal",
          "title": "Warehouse"
        },
        "y": {
          "field": "pallets",
          "type": "quantitative",
          "title": "Pallets"
        }
      },
      "width": 400,
      "height": 300
    },
    "a11yDescription": "Bar chart of pallets by warehouse.",
    "warnings": [],
    "output": {
      "compact": true,
      "includeNormalizedSpec": true,
      "includeA11y": true
    },
    "meta": {
      "renderer": "vega-lite",
      "mark": "MarkBar",
      "rowCount": 3,
      "fields": [
        "warehouse",
        "pallets"
      ]
    },
    "normalizedSpec": {
      "$schema": "https://oods-foundry.com/viz-spec/v1",
      "id": "viz:bar",
      "name": "Bar chart",
      "data": {
        "values": [
          {
            "warehouse": "Lakeside Distribution",
            "pallets": 640
          },
          {
            "warehouse": "North Yard",
            "pallets": 760
          },
          {
            "warehouse": "Harbor Cold Store",
            "pallets": 2400
          }
        ]
      },
      "marks": [
        {
          "trait": "MarkBar"
        }
      ],
      "encoding": {
        "x": {
          "field": "warehouse",
          "trait": "EncodingPositionX",
          "channel": "x",
          "type": "nominal",
          "title": "Warehouse"
        },
        "y": {
          "field": "pallets",
          "trait": "EncodingPositionY",
          "channel": "y",
          "type": "quantitative",
          "title": "Pallets"
        }
      },
      "a11y": {
        "description": "Bar chart of pallets by warehouse.",
        "ariaLabel": "Bar chart of Pallets by Warehouse"
      }
    },
    "tokenCssRef": "tokens.build#sha256:6d8c79ae497331d14c628e75bec74baa4f09b45187fd2a4a69f93373e34eff2d",
    "a11y": {
      "narrative": {
        "summary": "Bar chart compares Warehouse; Harbor Cold Store leads at 2,400 while Lakeside Distribution is lowest at 640.",
        "keyFindings": [
          "High Pallets: Pallets 2,400 (Harbor Cold Store)",
          "Low Pallets: Pallets 640 (Lakeside Distribution)"
        ]
      },
      "table": {
        "caption": "Data table for Bar chart",
        "columns": [
          {
            "field": "warehouse",
            "label": "Warehouse",
            "isNumeric": false
          },
          {
            "field": "pallets",
            "label": "Pallets",
            "isNumeric": true
          }
        ],
        "rows": [
          {
            "cells": [
              {
                "field": "warehouse",
                "text": "Lakeside Distribution"
              },
              {
                "field": "pallets",
                "text": "640"
              }
            ]
          },
          {
            "cells": [
              {
                "field": "warehouse",
                "text": "North Yard"
              },
              {
                "field": "pallets",
                "text": "760"
              }
            ]
          },
          {
            "cells": [
              {
                "field": "warehouse",
                "text": "Harbor Cold Store"
              },
              {
                "field": "pallets",
                "text": "2,400"
              }
            ]
          }
        ]
      }
    },
    "specRef": "viz.render-7a542bf4",
    "specRefCreatedAt": "2026-10-08T15:03:14.146Z",
    "specRefExpiresAt": "2026-10-08T15:33:14.146Z",
    "contentHash": "746f8e9673217fc6b24f4441db7ababcc269eb84555aac1a9af9960d6e1f360a"
  }
}
