Poorgramer-Zack/dart-expert-skills / skills/fl-chart
implementing-fl-chart
VerifiedImplements 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.3 KB |
| references/bar_chart.md | markdown | 6.2 KB |
| references/base_chart.md | markdown | 8.0 KB |
| references/candlestick_chart.md | markdown | 4.0 KB |
| references/line_chart.md | markdown | 8.0 KB |
| references/pie_chart.md | markdown | 3.3 KB |
| references/radar_chart.md | markdown | 3.8 KB |
| references/scatter_chart.md | markdown | 3.5 KB |
references/scatter_chart.md
View on GitHub# ScatterChart API Reference
## ScatterChartData
| Property | Description | Default |
|:---------|:-----------|:--------|
| scatterSpots | List of [ScatterSpot](#scatterspot) | `[]` |
| titlesData | [FlTitlesData](./base_chart.md#fltitlesdata) | `FlTitlesData()` |
| scatterTouchData | [ScatterTouchData](#scattertouchdata) | `ScatterTouchData()` |
| showingTooltipIndicators | Spot indices for manual tooltip display (disable touches first) | `[]` |
| rotationQuarterTurns | Rotate chart 90° per quarter turn | `0` |
| errorIndicatorData | Error indicator for spot xError/yError | `ErrorIndicatorData()` |
## ScatterSpot
| Property | Description | Default |
|:---------|:-----------|:--------|
| show | Show/hide spot | `true` |
| radius | Spot radius | `8` |
| color | Spot color | auto-calculated |
| renderPriority | Sort order to manage overlap | `0` |
| xError | [FlErrorRange](./base_chart.md#flerrorrange) for x-axis error | `null` |
| yError | [FlErrorRange](./base_chart.md#flerrorrange) for y-axis error | `null` |
## ScatterTouchData
| Property | Description | Default |
|:---------|:-----------|:--------|
| enabled | Enable/disable touch | `true` |
| mouseCursorResolver | Custom cursor per event | `MouseCursor.defer` |
| touchTooltipData | [ScatterTouchTooltipData](#scattertouchtooltipdata) | `ScatterTouchTooltipData()` |
| touchSpotThreshold | Touch accuracy threshold | `0` |
| handleBuiltInTouches | Enable built-in tooltip display | `true` |
| touchCallback | `(FlTouchEvent, ScatterTouchResponse?) → void` | `null` |
| longPressDuration | Custom long-press duration | `null` |
## ScatterTouchTooltipData
| Property | Description | Default |
|:---------|:-----------|:--------|
| tooltipBorder | Border | `BorderSide.none` |
| tooltipBorderRadius | Corner radius | `BorderRadius.circular(4)` |
| tooltipPadding | Padding | `EdgeInsets.symmetric(horizontal: 16, vertical: 8)` |
| tooltipHorizontalAlignment | Alignment relative to spot | `FLHorizontalAlignment.center` |
| tooltipHorizontalOffset | Horizontal offset | `0` |
| maxContentWidth | Max width before text wrap | `120` |
| getTooltipItems | `(ScatterSpot) → ScatterTooltipItem` | `defaultScatterTooltipItem` |
| fitInsideHorizontally | Force inside bounds | `false` |
| fitInsideVertically | Force inside bounds | `false` |
| getTooltipColor | Background color callback | `Colors.blueGrey.darken(15)` |
## ScatterTooltipItem
| Property | Description | Default |
|:---------|:-----------|:--------|
| text | Text content | `null` |
| textStyle | TextStyle | `null` |
| textDirection | TextDirection | `TextDirection.ltr` |
| bottomMargin | Bottom margin to top of spot | `0` |
| children | List\<TextSpan\> for rich text | `null` |
## ScatterTouchResponse
| Property | Description |
|:---------|:-----------|
| touchLocation | Touch position in device pixel coordinates |
| touchChartCoordinate | Touch position in chart coordinates |
| touchedSpot | [ScatterTouchedSpot](#scattertouchedspot) |
## ScatterTouchedSpot
| Property | Description |
|:---------|:-----------|
| spot | Touched ScatterSpot |
| spotIndex | Index of touched spot |
## ScatterLabelSettings
| Property | Description | Default |
|:---------|:-----------|:--------|
| showLabel | Show/hide labels | `false` |
| getLabelTextStyleFunction | `(index) → TextStyle` | `null` |
| getLabelFunction | `(index) → String` | `spot.radius.toString()` |
| textDirection | TextDirection | `TextDirection.ltr` |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |