Open Presentation

Search docs

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

    Chart Axis Titles

    Titles for the axes of a chart. 'category' is the axis that carries the row labels (the horizontal axis of a column or line chart, the vertical axis of a bar chart, the X axis of a scatter chart); 'value' is the other axis; 'secondary' is the secondary value axis of a combo chart.

    Metadata

    Definition
    #/$defs/ChartAxisTitles
    Form
    object
    Source
    spec/schemas/opf.schema.json

    Field index

    FieldTypeReq.Description
    categorystring—Title of the category (X) axis.
    valuestring—Title of the value (Y) axis. On a combo chart, the primary value axis (at the start of the plot).
    secondarystring—Combo charts only: title of the secondary value axis at the end of the plot (the right; the left in a right-to-left deck), drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.

    category

    typestringrequirednodefault—

    Title of the category (X) axis.

    category.json
    {
      "category": "Quarter"
    }

    value

    typestringrequirednodefault—

    Title of the value (Y) axis. On a combo chart, the primary value axis (at the start of the plot).

    value.json
    {
      "value": "Revenue ($M)"
    }

    secondary

    typestringrequirednodefault—

    Combo charts only: title of the secondary value axis at the end of the plot (the right; the left in a right-to-left deck), drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.

    secondary.json
    {
      "secondary": "Margin (%)"
    }
    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "additionalProperties": false,
      "description": "Titles for the axes of a chart. 'category' is the axis that carries the row labels (the horizontal axis of a column or line chart, the vertical axis of a bar chart, the X axis of a scatter chart); 'value' is the other axis; 'secondary' is the secondary value axis of a combo chart.",
      "properties": {
        "category": {
          "type": "string",
          "description": "Title of the category (X) axis.",
          "examples": [
            "Quarter",
            "Region"
          ]
        },
        "value": {
          "type": "string",
          "description": "Title of the value (Y) axis. On a combo chart, the primary value axis (at the start of the plot).",
          "examples": [
            "Revenue ($M)",
            "Customers"
          ]
        },
        "secondary": {
          "type": "string",
          "description": "Combo charts only: title of the secondary value axis at the end of the plot (the right; the left in a right-to-left deck), drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.",
          "examples": [
            "Margin (%)"
          ]
        }
      }
    }