Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-flutter-spark-charts(syncfusion Flutter spark charts 命令行)

syncfusion-flutter-spark-charts 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

syncfusion-flutter-spark-charts 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,854。

总安装 588周安装 25GitHub Stars 1下载 206核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-flutter-spark-charts(syncfusion Flutter spark charts 命令行)
来源仓库:https://github.com/syncfusion/flutter-ui-components-skills
仓库路径:skills/syncfusion-flutter-spark-charts
安装命令:
npx skills add https://github.com/syncfusion/flutter-ui-components-skills --skill syncfusion-flutter-spark-charts
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/flutter-ui-components-skills --skill syncfusion-flutter-spark-charts

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或协作事项进行整理。通过 npx skills add 命令从指定 GitHub 仓库安装使用。

安装前建议确认权限范围、维护状态及是否触发联网或文件读写操作。syncfusion-flutter-spark-charts 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/syncfusion-flutter-spark-charts

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/flutter-ui-components-skills --skil…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

syncfusion-flutter-spark-charts 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/flutter-ui-components-skills --skill syncfusi…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-flutter-spark-charts 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-flutter-spark-charts 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

syncfusion-flutter-spark-charts 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-flutter-spark-charts 用的人多吗?

公开数据是累计安装 588 次,近一周安装 25 次,下载 206 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-flutter-spark-charts 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
syncfusion-flutter-spark-charts

syncfusion Flutter spark charts 命令行 · 本页

5881只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Syncfusion Flutter Spark Charts

This skill covers the Syncfusion Flutter Spark Charts (also known as Micro Charts) - lightweight, condensed chart widgets designed to show data trends in a simple, compact format without axes or coordinates. The package includes four chart types: SfSparkLineChart, SfSparkAreaChart, SfSparkBarChart, and SfSparkWinLossChart.

When to Use This Skill

Use this skill when you need to:

  • Display compact data visualizations without complex chart elements
  • Show trends and patterns in a minimal, condensed format
  • Add inline charts to tables, cards, or dashboards
  • Visualize KPIs and performance indicators efficiently
  • Create lightweight visualizations where space is limited
  • Build dashboard widgets with quick data insights
  • Implement micro charts for mobile or web interfaces
  • Display data summaries without overwhelming detail
  • Show win-loss scenarios or binary outcomes
  • Add sparklines to data grids or list items

Choosing the Right Chart Type

Use SfSparkLineChart when:

  • You need to identify patterns and trends over time
  • Showing continuous data flow or sequences
  • Displaying seasonal effects or changes over a period
  • Line trends are the most appropriate visualization
  • Building: stock price trends, temperature changes, sales trends, performance metrics

Use SfSparkAreaChart when:

  • You want to emphasize magnitude of changes
  • Cumulative values need to be highlighted
  • The volume of change is more important than individual points
  • You need to fill the area under the trend line
  • Building: volume indicators, cumulative metrics, filled trend displays

Use SfSparkBarChart when:

  • Discrete values or individual data points are important
  • Comparing values across categories
  • Column/bar representation is more intuitive
  • Data is categorical or segmented
  • Building: monthly comparisons, category-wise data, discrete measurements

Use SfSparkWinLossChart when:

  • Showing binary outcomes (positive/negative, win/loss)
  • Performance indicators with success/failure states
  • Win-loss records or game results
  • Binary status over time periods
  • Building: win-loss records, success metrics, binary performance indicators, tie scenarios

Key Differences Summary:

FeatureSfSparkLineChartSfSparkAreaChartSfSparkBarChartSfSparkWinLossChart
Primary PurposeTrend linesMagnitude emphasisDiscrete comparisonsBinary outcomes
VisualizationLineFilled areaVertical barsWin/Loss bars
Marker Support✅ Yes✅ Yes❌ No❌ No
Best ForContinuous trendsCumulative dataCategorical dataBinary data
Data Label✅ Yes✅ Yes✅ Yes❌ No
Border StyleLine onlyArea + BorderBar + BorderBar + Border
Special PointsHigh, low, first, last, negativeHigh, low, first, last, negativeHigh, low, first, last, negativeHigh, low, first, last, tie
Dashed Style✅ Yes❌ No❌ No❌ No

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and package setup
  • Basic implementation for all chart types
  • Adding dependencies and imports
  • Binding data sources
  • First examples and quick starts

Chart Overview

📄 Read: references/overview.md

  • Spark Charts widget overview and features
  • When to use Spark Charts vs full charts
  • Four chart types explained
  • Key features and capabilities
  • Lightweight visualization benefits

Chart Types

📄 Read: references/chart-types.md

  • Line chart (SfSparkLineChart)
  • Area chart (SfSparkAreaChart)
  • Bar chart (SfSparkBarChart)
  • WinLoss chart (SfSparkWinLossChart)
  • Chart type comparison and selection
  • Type-specific properties and customization
  • Dashed line support for line charts

Axis Configuration

📄 Read: references/axis-types.md

  • Numeric axis
  • Date-time axis
  • Category axis
  • Custom data source binding
  • Axis line customization
  • Axis crossing positions
  • Axis styling (color, width, dash array)

Data Binding

📄 Read: references/data-binding.md

  • Simple data binding with List
  • Custom data source with xValueMapper and yValueMapper
  • Numeric, date-time, and category x-axis values
  • Data mapping patterns
  • Using.custom() constructors

Markers and Data Labels

📄 Read: references/markers-datalabels.md

  • Marker configuration (line and area charts only)
  • Marker shapes (circle, diamond, square, triangle, inverted triangle)
  • Marker display modes (all, high, low, first, last, none)
  • Marker customization (color, border, size)
  • Data label display modes
  • Data label styling

Trackball

📄 Read: references/trackball.md

  • Enabling trackball for interaction
  • Trackball activation modes (tap, longPress, doubleTap)
  • Trackball customization (color, border, background)
  • Trackball label styling
  • Touch interaction patterns

Plot Bands

📄 Read: references/plotband.md

  • Highlighting specific Y-axis ranges
  • Plot band start and end values
  • Plot band styling (color, border)
  • Use cases for plot bands

Customization and Styling

📄 Read: references/customization.md

  • Chart color customization
  • Special point colors (high, low, first, last, negative, tie)
  • Border styling (width, color)
  • Line width customization
  • Chart inversion
  • Visual appearance patterns

Accessibility

📄 Read: references/accessibility.md

  • Sufficient contrast for charts
  • Theme support and customization
  • Large font support
  • Text scaling with MediaQueryData
  • Color customization for accessibility

Quick Start Examples

Basic Line Chart

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_charts/sparkcharts.dart';

class MySparkLineChart extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Spark Line Chart')),
      body: Center(
        child: Container(
          height: 100,
          padding: EdgeInsets.all(16),
          child: SfSparkLineChart(
            data: <double>[
              5, 6, 5, 7, 4, 3, 9, 5, 6, 5, 7, 8, 4, 5, 3, 4, 11, 10, 2, 12, 4, 7, 6, 8
            ],
          ),
        ),
      ),
    );
  }
}

Bar Chart with Special Points

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_charts/sparkcharts.dart';

class SparkBarWithColors extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SfSparkBarChart(
      data: <double>[
        10, 6, 8, -5, 11, 5, -2, 7, -3, 6, 8, 10
      ],
      highPointColor: Colors.red,
      lowPointColor: Colors.green,
      firstPointColor: Colors.orange,
      lastPointColor: Colors.orange,
      negativePointColor: Colors.purple,
    );
  }
}

WinLoss Chart

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_charts/sparkcharts.dart';

class SparkWinLossChart extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SfSparkWinLossChart(
      data: <double>[
        12, 15, -10, 13, 15, 6, -12, 17, 13, 0, 8, -10
      ],
      color: Colors.blue,
      negativePointColor: Colors.red,
      tiePointColor: Colors.grey,
    );
  }
}

Chart with Trackball

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_charts/sparkcharts.dart';

class SparkLineWithTrackball extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SfSparkLineChart(
      axisLineWidth: 0,
      trackball: SparkChartTrackball(
        backgroundColor: Colors.blue.withOpacity(0.8),
        borderColor: Colors.blue.withOpacity(0.8),
        borderWidth: 2,
        color: Colors.blue,
        labelStyle: TextStyle(color: Colors.white),
        activationMode: SparkChartActivationMode.tap,
      ),
      marker: SparkChartMarker(
        displayMode: SparkChartMarkerDisplayMode.all,
      ),
      data: <double>[
        5, 6, 5, 7, 4, 3, 9, 5, 6, 5, 7, 8, 4, 5, 3, 4, 11, 10, 2, 12, 4, 7, 6, 8
      ],
    );
  }
}

Common Patterns

Pattern 1: Dashboard KPI Widget

// Compact KPI card with sparkline
class KPICard extends StatelessWidget {
  final String title;
  final String value;
  final List<double> trendData;
  final Color trendColor;

  const KPICard({
    required this.title,
    required this.value,
    required this.trendData,
    this.trendColor = Colors.blue,
  });

  @override
  Widget build(BuildContext context) {
    return Card(
      child: Padding(
        padding: EdgeInsets.all(16),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text(title, style: TextStyle(fontSize: 14, color: Colors.grey)),
            SizedBox(height: 8),
            Text(value, style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold)),
            SizedBox(height: 12),
            Container(
              height: 50,
              child: SfSparkLineChart(
                axisLineWidth: 0,
                data: trendData,
                color: trendColor,
                width: 2,
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Pattern 2: Data Table with Inline Sparklines

// Table row with sparkline trend
class DataRowWithSparkline extends StatelessWidget {
  final String label;
  final List<double> data;

  const DataRowWithSparkline({
    required this.label,
    required this.data,
  });

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Expanded(
          flex: 2,
          child: Text(label),
        ),
        Expanded(
          flex: 3,
          child: Container(
            height: 30,
            child: SfSparkLineChart(
              axisLineWidth: 0,
              data: data,
              highPointColor: Colors.green,
              lowPointColor: Colors.red,
            ),
          ),
        ),
      ],
    );
  }
}

Pattern 3: Win-Loss Record Display

// Display win-loss record with chart
class WinLossRecord extends StatelessWidget {
  final List<double> results; // 1 for win, -1 for loss, 0 for tie

  const WinLossRecord({required this.results});

  @override
  Widget build(BuildContext context) {
    int wins = results.where((r) => r > 0).length;
    int losses = results.where((r) => r < 0).length;
    int ties = results.where((r) => r == 0).length;

    return Column(
      children: [
        Row(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: [
            Text('W: $wins', style: TextStyle(color: Colors.green)),
            Text('L: $losses', style: TextStyle(color: Colors.red)),
            Text('T: $ties', style: TextStyle(color: Colors.grey)),
          ],
        ),
        SizedBox(height: 8),
        Container(
          height: 40,
          child: SfSparkWinLossChart(
            data: results,
            color: Colors.green,
            negativePointColor: Colors.red,
            tiePointColor: Colors.grey,
          ),
        ),
      ],
    );
  }
}

Pattern 4: Chart with Plot Band Threshold

// Highlight threshold zones with plot band
class ThresholdSparkLine extends StatelessWidget {
  final List<double> data;
  final double thresholdMin;
  final double thresholdMax;

  const ThresholdSparkLine({
    required this.data,
    this.thresholdMin = 5.0,
    this.thresholdMax = 10.0,
  });

  @override
  Widget build(BuildContext context) {
    return SfSparkLineChart(
      axisLineWidth: 1,
      axisLineColor: Colors.grey[300],
      data: data,
      color: Colors.blue,
      plotBand: SparkChartPlotBand(
        start: thresholdMin,
        end: thresholdMax,
        color: Colors.green.withOpacity(0.2),
        borderColor: Colors.green,
        borderWidth: 1,
      ),
    );
  }
}

Key Properties

Essential Properties (All Chart Types)

Data & Display:

  • data - List of data values (List)
  • color - Primary color of the chart
  • axisLineWidth - Axis line width (set to 0 to hide)
  • isInversed - Inverts chart vertically

Special Point Colors:

  • highPointColor, lowPointColor, firstPointColor, lastPointColor
  • negativePointColor - For negative values
  • tiePointColor - For zero values (Win-Loss only)

Interactive Features:

  • marker - Marker configuration (Line/Area only)
  • trackball - Interactive tooltip configuration
  • plotBand - Highlight Y-axis ranges

Line Chart Specific:

  • width - Line thickness
  • dashArray - Dashed line pattern [5, 3]

Area/Bar/Win-Loss Specific:

  • borderColor, borderWidth - Chart borders

Data Labels:

  • labelDisplayMode - Display mode (all, high, low, first, last, none)
  • labelStyle - Text style configuration

Custom Data Binding:

  • Use .custom() constructor with dataCount, xValueMapper, yValueMapper

📄 For detailed properties: See references/customization.md

Common Use Cases

  1. Dashboard KPIs - Use SfSparkLineChart for compact trend indicators
  2. Data Grid Trends - Use any chart type inline with table data
  3. Performance Metrics - Use SfSparkLineChart with special point colors
  4. Win-Loss Records - Use SfSparkWinLossChart for game/competition results
  5. Stock Price Indicators - Use SfSparkLineChart with markers
  6. Sales Trends - Use SfSparkAreaChart to emphasize volume
  7. Monthly Comparisons - Use SfSparkBarChart for discrete periods
  8. Threshold Monitoring - Use plot bands to highlight critical ranges
  9. Mobile Dashboards - Use compact sparklines for space-limited UIs
  10. Report Summaries - Use sparklines for quick data overviews

平台分布

Codex

37.55%
按下载量换算77

Claude

29.6%
按下载量换算61

Cursor

16.43%
按下载量换算34

Gemini CLI

8.4%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills