Bar Chart Preset

Bullet

Bullet is an OPF bar chart preset: one thin bar per measure against its target tick, over shaded ranges.

bulletOPF type: BULLETsimple
Bullet chart preview rendered from its OPF sample

Use Case

Show many KPIs against their targets on one slide.

Data Requirements

1 measure series and 1 target series (shares of plan), 4 categories; chart.mapping.target names the target column

Group

Horizontal comparisons, ranked values, and progress-style measures.

Series

1 series across 4 categories

Workbook Range

Sheet1!$A$1:$E$3

When to Use

Use when several measures each have a target and shaded ranges (poor, fair, good) tell the audience how they stand.

When to Avoid

Avoid when one value against its range is enough (use a gauge) or when the measures do not share a scale.

Series colors

By default a chart takes its series colors from the deck's color scheme. Series 1 to 6 use accent1 to accent6 of the scheme in that order; series 7 to 12 use the same six accents mixed 40% toward white (series 7 is a tint of accent1). A pie, doughnut, treemap or funnel gives category i color i. Charts with more than twelve series repeat the list.

Put the series that carries the message first, because accent1 is the deck's primary, and keep a chart to six series or fewer so no tint is needed. Each color is then adjusted so it keeps 3:1 contrast against the chart panel and stays apart from its neighbors; on a dark panel colors are lightened, never merged.

To set a series color yourself, give the chart chart.colors: a list of up to 24 colors by position, where entry i replaces the palette color of series (or slice, for a pie) i and the rest of the palette is unchanged. An entry is any ColorRef: a hex color, a color-scheme slot or role such as accent3 (it follows the deck if its scheme changes), or a var: color variable. The contrast adjustment still applies to authored colors, and the opf/chart-colors-adjusted warning says when an entry was unresolvable or had to be moved.

"chart": {
  "type": "column",
  "data": { "columns": ["Quarter", "Revenue", "Costs"], "rows": [["Q1", 12, 8], ["Q2", 18, 11]] },
  "colors": ["accent3", "#7B241C"]
}

highlight wins over both: the series and categories it names take the deck's primary color and every other mark takes a muted neutral, whatever chart.colors says.

Core 0.21.0 behavior.

Best Practices

1

Give every measure the same scale or normalize them to a share of plan

2

Keep three or four bands

3

Name the bands in the title or the notes

Recommended Companions

OPF Config

charts:bullet
OPF JSON
{
  "$schema": "https://openpresentation.org/schema/opf/v1",
  "name": "PPTX.gallery — charts/bullet",
  "description": "Bullet is an OPF bar chart preset: one thin bar per measure against its target tick, over shaded ranges.",
  "tags": [
    "gallery:charts/bullet"
  ],
  "slides": [
    {
      "id": "gallery-preview-1",
      "layout": "chart",
      "title": "Bullet",
      "subtitle": "Show many KPIs against their targets on one slide.",
      "chart": {
        "type": "bullet",
        "data": {
          "columns": [
            "Category",
            {
              "name": "Actual",
              "format": "0%"
            },
            {
              "name": "Target",
              "format": "0%"
            }
          ],
          "rows": [
            [
              "Revenue",
              0.88,
              0.9
            ],
            [
              "Profit",
              0.72,
              0.85
            ],
            [
              "New customers",
              0.95,
              0.85
            ],
            [
              "Satisfaction",
              0.81,
              0.9
            ]
          ]
        },
        "mapping": {
          "category": "Category",
          "series": [
            "Actual"
          ],
          "target": "Target"
        },
        "bands": [
          {
            "to": 0.6
          },
          {
            "to": 0.85
          },
          {
            "to": 1
          }
        ]
      }
    }
  ],
  "catalogs": {
    "default": {
      "source": "https://www.pptx.gallery",
      "layouts": {
        "chart": {
          "name": "Chart",
          "summary": "One to six charts, with an optional note.",
          "tags": [
            "Visuals"
          ],
          "direction": "column",
          "regions": [
            {
              "name": "title"
            },
            {
              "name": "body",
              "accepts": [
                "chart",
                "group",
                "diagram"
              ],
              "flow": "grid"
            },
            {
              "name": "aside",
              "size": "auto",
              "accepts": [
                "text"
              ],
              "role": "supporting",
              "max": 1
            }
          ],
          "description": "Give a chart enough space to show its evidence. Use the title to state the conclusion and labels to explain the measures.",
          "preview": {
            "vectorSrc": "https://www.pptx.gallery/layout-previews/chart.svg"
          }
        }
      }
    }
  }
}
Open in visual editorOpen in Inspector

Load this config in the gallery's visual editor, or in the Inspector at pptx.dev.