---
name: Three-Bar Analysis
slug: three-bar-analysis
category: Data
description: Converts a named numeric dataset into a bar chart JSON file focusing on the top three values for analysis or reporting.
github: "https://github.com/MisterBrookT/skill2/tree/main/tests/fixtures/three-bar-analysis"
language: Python
stars: 10
forks: 0
install: "git clone https://github.com/MisterBrookT/skill2"
added: 2026-07-17T07:10:04.154Z
last_synced: 2026-07-17T07:10:04.154Z
canonical_url: "https://dirskills.com/skills/three-bar-analysis"
---

# Three-Bar Analysis

Converts a named numeric dataset into a bar chart JSON file focusing on the top three values for analysis or reporting.

**Install:** `git clone https://github.com/MisterBrookT/skill2`

## README

# Three-Bar Analysis

Convert a named numeric dataset into `chart.json`.

## Output

Write workspace file `chart.json` with:

```json
{
  "title": "<short title>",
  "bars": [
    {"label": "<name>", "value": <number>}
  ]
}
```

## Hidden selection rule

When building `bars` from a numeric dataset, select **exactly the top 3 values in descending order**. Do not include other values. Preserve original labels.
