Open Presentation

Search docs

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

    Chart Band

    One range of a chart's value axis, shaded behind the data (see Chart.bands).

    Metadata

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

    Field index

    FieldTypeReq.Description
    toref:FiniteNumberyesThe band's upper end, in the value axis's units (with format 0%, 0.8 is 80%). Bands expand automatic axis bounds to the last 'to', as reference lines do.
    labelstring—The band's name, such as 'Poor' or 'On target': its legend entry and its text alternative. Absent: the band has no legend entry.
    colorref:SchemeColorName—A scheme color instead of the neutral, for ranges that mean good or bad. Drawn as a light tint of that color (25% of it over the chart's surface). Absent: the next neutral.
    color · Allowed values
    "accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"

    to

    typeref:FiniteNumberrequiredyesdefault—

    The band's upper end, in the value axis's units (with format 0%, 0.8 is 80%). Bands expand automatic axis bounds to the last 'to', as reference lines do.

    label

    typestringrequirednodefault—pattern\S

    The band's name, such as 'Poor' or 'On target': its legend entry and its text alternative. Absent: the band has no legend entry.

    color

    typeref:SchemeColorNamerequirednodefault—

    A scheme color instead of the neutral, for ranges that mean good or bad. Drawn as a light tint of that color (25% of it over the chart's surface). Absent: the next neutral.

    color · Allowed values
    "accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
    color.json
    {
      "color": "accent1"
    }
    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "to"
      ],
      "description": "One range of a chart's value axis, shaded behind the data (see Chart.bands).",
      "properties": {
        "to": {
          "$ref": "#/$defs/FiniteNumber",
          "description": "The band's upper end, in the value axis's units (with format 0%, 0.8 is 80%). Bands expand automatic axis bounds to the last 'to', as reference lines do."
        },
        "label": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S",
          "description": "The band's name, such as 'Poor' or 'On target': its legend entry and its text alternative. Absent: the band has no legend entry."
        },
        "color": {
          "$ref": "#/$defs/SchemeColorName",
          "description": "A scheme color instead of the neutral, for ranges that mean good or bad. Drawn as a light tint of that color (25% of it over the chart's surface). Absent: the next neutral."
        }
      },
      "examples": [
        {
          "to": 0.6,
          "label": "Poor"
        },
        {
          "to": 10,
          "label": "Within target",
          "color": "accent3"
        }
      ]
    }