Skip to content

Poorgramer-Zack/dart-expert-skills / skills/fl-chart

implementing-fl-chart

Verified

Implements data visualization charts in Flutter using the fl_chart package (v1.3.1). Supports LineChart, BarChart, PieChart, ScatterChart, RadarChart, and CandlestickChart with implicit animations, touch interactivity, and pan/zoom transformations. Use when building any Flutter chart, graph, or data visualization — including line graphs for trends, bar charts for comparisons, pie/donut charts for proportions, scatter plots for distributions, radar charts for multi-axis comparisons, or candlestick charts for financial OHLC data. Also use when customizing chart axes, titles, tooltips, grid lines, touch callbacks, chart animations, or chart zoom/pan behavior.

FileKindSize
SKILL.mdskill md14.3 KB
references/bar_chart.mdmarkdown6.2 KB
references/base_chart.mdmarkdown8.0 KB
references/candlestick_chart.mdmarkdown4.0 KB
references/line_chart.mdmarkdown8.0 KB
references/pie_chart.mdmarkdown3.3 KB
references/radar_chart.mdmarkdown3.8 KB
references/scatter_chart.mdmarkdown3.5 KB

references/radar_chart.md

View on GitHub
# RadarChart API Reference

## RadarChartData

| Property | Description | Default |
|:---------|:-----------|:--------|
| dataSets | List of [RadarDataSet](#radardataset) | `[]` |
| radarBackgroundColor | Background fill color | `Colors.transparent` |
| radarShape | Border/background shape | `RadarShape.circle` |
| radarBorderData | Outer border style | `BorderSide(color: Colors.black, width: 2)` |
| getTitle | `(index, angle) → RadarChartTitle` for axis titles | `null` |
| titleTextStyle | Default TextStyle for titles | `TextStyle(color: Colors.black, fontSize: 12)` |
| titlePositionPercentageOffset | Title distance from chart (0-1) | `0.2` |
| tickCount | Number of concentric tick rings | `1` |
| ticksTextStyle | TextStyle for tick labels | `TextStyle(fontSize: 10, color: Colors.black)` |
| tickBorderData | Style of tick ring borders | `BorderSide(color: Colors.black, width: 2)` |
| gridBorderData | Style of radial grid lines | `BorderSide(color: Colors.black, width: 2)` |
| radarTouchData | [RadarTouchData](#radartouchdata) | `RadarTouchData()` |
| isMinValueAtCenter | Place minimum value at center (vs zero) | `false` |

## RadarDataSet

| Property | Description | Default |
|:---------|:-----------|:--------|
| dataEntries | List of [RadarEntry](#radarentry) | `[]` |
| fillColor | Dataset fill color | `Colors.black12` |
| fillGradient | Dataset fill gradient | `null` |
| borderColor | Dataset border color | `Colors.blueAccent` |
| borderWidth | Dataset border width | `2.0` |
| entryRadius | Radius of each entry dot | `5.0` |

## RadarEntry

| Property | Description | Default |
|:---------|:-----------|:--------|
| value | Data value for this axis | required |

## RadarTouchData

| Property | Description | Default |
|:---------|:-----------|:--------|
| enabled | Enable/disable touch | `true` |
| mouseCursorResolver | Custom cursor per event | `MouseCursor.defer` |
| touchCallback | `(FlTouchEvent, RadarTouchResponse?) → void` | `null` |
| longPressDuration | Custom long-press duration | `null` |
| touchSpotThreshold | Touch accuracy threshold | `10` |

## RadarTouchResponse

| Property | Description |
|:---------|:-----------|
| touchLocation | Touch position in device pixel coordinates |
| touchedSpot | [RadarTouchedSpot](#radartouchedspot) |

## RadarTouchedSpot

| Property | Description |
|:---------|:-----------|
| touchedDataSet | Touched RadarDataSet |
| touchedDataSetIndex | Index of touched dataset |
| touchedRadarEntry | Touched RadarEntry |
| touchedRadarEntryIndex | Index of touched entry |

## RadarChartTitle

| Property | Description | Default |
|:---------|:-----------|:--------|
| text | Title text | required |
| children | List\<InlineSpan\> for rich text | `null` |
| angle | Rotation angle in degrees | `0` |
| positionPercentageOffset | Title distance (0-1), overrides chart-level setting | `null` |

## Usage Patterns

### Multi-Dataset Overlay

Stack multiple `RadarDataSet` to compare groups:

```dart
RadarChartData(
  dataSets: [
    RadarDataSet(
      dataEntries: [RadarEntry(value: 4), RadarEntry(value: 3), RadarEntry(value: 5), RadarEntry(value: 2), RadarEntry(value: 4)],
      fillColor: Colors.blue.withValues(alpha: 0.2),
      borderColor: Colors.blue,
      borderWidth: 2,
      entryRadius: 4,
    ),
    RadarDataSet(
      dataEntries: [RadarEntry(value: 3), RadarEntry(value: 4), RadarEntry(value: 2), RadarEntry(value: 5), RadarEntry(value: 3)],
      fillColor: Colors.red.withValues(alpha: 0.2),
      borderColor: Colors.red,
      borderWidth: 2,
      entryRadius: 4,
    ),
  ],
  radarShape: RadarShape.circle,
  tickCount: 4,
  getTitle: (index, angle) => RadarChartTitle(text: ['Speed', 'Power', 'Skill', 'Defense', 'Agility'][index]),
)
```
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall