chartlet 0.23.0

Compile structured data into deterministic, accessible static charts
Documentation
{
  "schemaVersion": 1,
  "type": "plan",
  "title": "The office floor today and in the two building phases",
  "source": "Facility planning, illustrative",
  "width": 960,
  "height": 560,
  "mobile": { "width": 420, "height": 620 },
  "plan": {
    "areas": [
      {
        "id": "open-office",
        "label": "Open office",
        "x": 0, "y": 0, "w": 6, "h": 4,
        "phase": "Existing",
        "items": [
          { "kind": "desk", "x": 0.6, "y": 0.6 },
          { "kind": "desk", "x": 2.4, "y": 0.6 },
          { "kind": "desk", "x": 4.2, "y": 0.6 },
          { "kind": "desk", "x": 0.6, "y": 2.6 },
          { "kind": "desk", "x": 2.4, "y": 2.6 },
          { "kind": "desk", "x": 4.2, "y": 2.6 }
        ]
      },
      {
        "id": "meeting",
        "label": "Meeting room",
        "x": 6, "y": 0, "w": 4, "h": 3,
        "phase": "Existing",
        "items": [{ "kind": "table", "x": 1.5, "y": 1.0 }]
      },
      {
        "id": "kitchen",
        "label": "Kitchen",
        "x": 6, "y": 3, "w": 4, "h": 3,
        "phase": "Phase 1",
        "items": [{ "kind": "table", "x": 1.5, "y": 1.0 }, { "kind": "plant", "x": 3.3, "y": 0.4 }]
      },
      {
        "id": "server",
        "label": "Server room",
        "x": 0, "y": 4, "w": 3, "h": 2,
        "phase": "Phase 1",
        "items": [{ "kind": "shelf", "x": 0.4, "y": 0.4 }, { "kind": "shelf", "x": 1.6, "y": 0.4 }]
      },
      {
        "id": "library",
        "label": "Library",
        "x": 3, "y": 4, "w": 3, "h": 2,
        "phase": "Phase 2",
        "items": [{ "kind": "shelf", "x": 0.3, "y": 0.3 }, { "kind": "sofa", "x": 1.0, "y": 1.1 }]
      },
      {
        "id": "terrace",
        "label": "Terrace",
        "kind": "outdoor",
        "x": 10, "y": 0, "w": 3, "h": 6,
        "phase": "Phase 2"
      }
    ]
  }
}