---
name: metadist-chart
description: "Turn a CSV into a clean bar or line chart, embedded as an SVG in a standalone HTML page (multi-series, light and dark, no dependencies)."
license: "Apache-2.0"
metadata:
  decimalai-skill-id: "0b6f3935-a6a7-4b01-9a4d-71fed51f04e8"
  decimalai-version-id: "ab4950c1-5d56-4fe7-b4f8-8ebb40a51628"
  decimalai-version: "1"
  decimalai-body-sha256: "44f59a0ad6c7549323d5e3cec79802aca7441ecf0947d5a993f0d27af719b3f4"
  decimalai-name: "metadist/chart"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "design-media"
  decimalai-source: "https://app.decimal.ai/s/metadist-chart@1/SKILL.md"
---
# chart

Render a CSV as a good-looking chart. The first column is the category (x-axis);
every other numeric column becomes a series. Bars are grouped; lines are drawn per
series. The result is one self-contained HTML file that opens in any browser.

## How to run

```
python3 <skill_dir>/run.py <input.csv> <output.html> [--type bar|line] [--title "Title"]
```

- `<input.csv>` — a CSV with a header row (an allowed folder, or the out-box).
- `<output.html>` — a path **inside the out-box**.
- `--type` — `bar` (default) or `line`.
- `--title` — optional chart title.

Standard library only. After running, tell the user the saved path.
