Open Presentation

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Datasets

    Shared data tables keyed by id (the assets id pattern). Charts reference one with 'chart.data': { "dataset": "<id>" } and tables with 'table': { "dataset": "<id>" }.

    Metadata

    Definition
    #/$defs/Datasets
    Form
    Dictionary
    Source
    spec/schemas/opf.schema.json

    Field index

    This definition uses the forms or value constraints below.

    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "description": "Shared data tables keyed by id (the assets id pattern). Charts reference one with 'chart.data': { \"dataset\": \"<id>\" } and tables with 'table': { \"dataset\": \"<id>\" }.",
      "propertyNames": {
        "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"
      },
      "additionalProperties": {
        "$ref": "#/$defs/Dataset"
      },
      "examples": [
        {
          "revenue": {
            "title": "Revenue by quarter",
            "columns": [
              "Quarter",
              {
                "name": "Revenue",
                "format": "$#,##0.0"
              },
              "Costs"
            ],
            "rows": [
              [
                "Q1",
                12,
                8
              ],
              [
                "Q2",
                18,
                11
              ],
              [
                "Q3",
                24,
                15
              ]
            ],
            "datasource": {
              "src": "./data/revenue.csv"
            },
            "retrieved": "2026-10-05"
          }
        }
      ]
    }