{
  "board": {
    "title": "시험 결과 분석",
    "theme": "light",
    "accent": "#b45309",
    "skin": {
      "palette": {
        "paper": "#fbf8f1",
        "ink": "#232018",
        "muted": "#7a7261",
        "rule": "#d9d1bd"
      },
      "frame": "flat",
      "radius": 4
    }
  },
  "data": {
    "exam": {
      "from": "exam",
      "path": "/exam/now",
      "time": "updatedAt",
      "fields": {
        "school": {},
        "klass": {},
        "exam": {}
      }
    },
    "summary": {
      "from": "exam",
      "path": "/exam/students",
      "list": "/value",
      "time": "updatedAt",
      "fields": {
        "count": {
          "derive": {
            "op": "count"
          },
          "unit": "명"
        },
        "mean": {
          "derive": {
            "op": "avg",
            "field": "score"
          },
          "unit": "점",
          "digits": 1
        },
        "top": {
          "derive": {
            "op": "max",
            "field": "score"
          },
          "unit": "점"
        },
        "low": {
          "derive": {
            "op": "min",
            "field": "score"
          },
          "unit": "점"
        }
      }
    },
    "students": {
      "from": "exam",
      "path": "/exam/students",
      "list": "/value",
      "answerTime": "/updatedAt"
    },
    "subjects": {
      "from": "exam",
      "path": "/exam/subjects",
      "list": "/value",
      "answerTime": "/updatedAt"
    },
    "classes": {
      "from": "exam",
      "path": "/exam/classes",
      "list": "/value",
      "answerTime": "/updatedAt"
    },
    "steps": {
      "from": "exam",
      "path": "/exam/steps",
      "list": "/value",
      "answerTime": "/updatedAt"
    }
  },
  "parts": {
    "title": {
      "as": "header",
      "of": "exam",
      "title": "{{school}} {{klass}} · {{exam}}",
      "kicker": "시험 결과 분석",
      "subtitle": "예시 데이터"
    },
    "count": {
      "as": "stat",
      "of": "summary",
      "show": "count",
      "title": "응시"
    },
    "mean": {
      "as": "stat",
      "of": "summary",
      "show": "mean",
      "title": "평균"
    },
    "top": {
      "as": "stat",
      "of": "summary",
      "show": "top",
      "title": "최고"
    },
    "low": {
      "as": "stat",
      "of": "summary",
      "show": "low",
      "title": "최저"
    },
    "subjects": {
      "as": "chart.radar",
      "of": "subjects",
      "title": "과목별 평균 — 우리 반과 학년",
      "axis": "subject",
      "y": [
        "우리 반",
        "학년 평균"
      ]
    },
    "spread": {
      "as": "chart.histogram",
      "of": "students",
      "title": "점수 분포",
      "value": "score",
      "bins": 7
    },
    "classes": {
      "as": "chart.box",
      "of": "classes",
      "title": "반별 점수 분포",
      "x": "klass",
      "y": [
        "min",
        "q1",
        "median",
        "q3",
        "max"
      ]
    },
    "hours": {
      "as": "chart.scatter",
      "of": "students",
      "title": "공부한 시간과 점수",
      "x": "hours",
      "y": "score"
    },
    "steps": {
      "as": "chart.waterfall",
      "of": "steps",
      "title": "평균은 무엇 때문에 움직였나 (점)",
      "x": "step",
      "y": "delta",
      "total": "total"
    }
  },
  "layout": {
    "kind": "grid",
    "items": [
      [
        "title",
        12
      ],
      [
        "count",
        3
      ],
      [
        "mean",
        3
      ],
      [
        "top",
        3
      ],
      [
        "low",
        3
      ],
      {
        "id": "subjects",
        "span": 6,
        "height": 340
      },
      {
        "id": "spread",
        "span": 6,
        "height": 340
      },
      {
        "id": "classes",
        "span": 6,
        "height": 320
      },
      {
        "id": "hours",
        "span": 6,
        "height": 320
      },
      {
        "id": "steps",
        "span": 12,
        "height": 320
      }
    ]
  }
}
