---
name: "python-pptx-chart-data-builder"
description: "Embed native, editable PowerPoint charts and Excel-backed graphs using python-pptx."
metadata:
  author: "scanny"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create native chart in powerpoint python"
  - "add bar chart python-pptx"
  - "bind excel data to pptx chart"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# python-pptx Native Chart & Data Binding

Generates native PowerPoint charts (bar, line, pie, stacked area) with python-pptx CategoryChartData, enabling presentation viewers to double-click and edit underlying data.

## When to Invoke
Invoke this skill whenever you need to:
- create native chart in powerpoint python
- add bar chart python-pptx
- bind excel data to pptx chart

## Execution SOP & Rules
1. Populate data with chart_data = CategoryChartData(), adding categories and series values.
2. Insert chart using slide.shapes.add_chart(XL_CHART_TYPE.COLUMN_CLUSTERED, x, y, cx, cy, chart_data).
3. Configure chart properties: chart.has_legend = True, chart.legend.position = XL_LEGEND_POSITION.RIGHT.
4. Enable data labels with chart.plots[0].has_data_labels = True for clear visual scanning.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
