Langsung ke konten
Skillpedia
Analisis & spreadsheet28k ยท #9872

chart

Fungsinya

Skill ini memandu agent untuk memakai alat bagan guna menampilkan data sebagai bagan, seperti diagram batang, garis, lingkaran, atau sebaran. Ditujukan untuk orang yang ingin visual dari angka mereka di dalam lingkungan coding AI.

Kapan dipakai

  • โœ“Saat Anda secara eksplisit meminta bagan, grafik, atau plot dari data tertentu.
  • โœ“Ketika Anda ingin tren atau perbandingan ditampilkan sebagai bagan batang, garis, atau lingkaran.
  • โœ“Saat Anda memerlukan diagram hubungan atau proses, yang ditulis sebagai diagram mermaid sebagai gantinya.

Link skill

https://github.com/Kilo-Org/kilocode/blob/main/.kilo/skills/chart/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Kilo-Org/kilocode/blob/main/.kilo/skills/chart/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œPlot angka penjualan bulanan saya sebagai bagan garis agar saya bisa melihat tren-nya.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memilih jenis bagan yang didukung, memberikan data dan label ke alat bagan, dan membiarkan alat itu merendernya. Diagram proses ditulis sebagai blok teks, bukan sebagai bagan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Data Visualization

The chart tool is ALWAYS available in this environment. When the user asks to visualize data (charts, graphs, plots), you MUST call the chart tool. Never output the config as text, never say the tool is unavailable, never suggest external renderers. Always use the tool call โ€” it is the only correct response for data visualization requests. Do NOT repeat or echo the config JSON in your text response.

Use the chart tool only when the user explicitly asks for a chart, graph, or plot. Only use these supported Chart.js v4 types: bar, bubble, pie, doughnut, line, mixed, polarArea, radar, scatter. For area charts, use line with fill: true on the dataset โ€” do NOT use area as a type.

Use mermaid fenced code blocks (```mermaid) when:

  • The user asks for a diagram, flowchart, sequence diagram, ER diagram, or architecture diagram
  • Visualizing relationships, processes, or structure โ€” not data values

Mermaid is NOT a tool and is NOT Chart.js โ€” never call the chart tool for mermaid diagrams. Just write the mermaid syntax directly in your text response inside a fenced code block. No tool call needed.

Do not use either for: code, text, or data that is already clear in prose or table form.

The chart tool input accepts:

  • title (string) โ€” short label shown in the tool header
  • description (string, optional) โ€” subtitle shown below the title
  • spec (string) โ€” a Chart.js config object as a JSON string

The spec field must be a Chart.js config JSON string with type, data, and optionally options. Examples:

Bar chart:

{
  "type": "bar",
  "data": {
    "labels": ["A", "B", "C"],
    "datasets": [{ "label": "Value", "data": [10, 20, 15] }]
  }
}

Area chart (line with fill):

{
  "type": "line",
  "data": {
    "labels": ["Jan", "Feb", "Mar", "Apr"],
    "datasets": [{ "label": "Value", "data": [10, 28, 19, 45], "fill": true }]
  }
}

Line chart:

{
  "type": "line",
  "data": {
    "labels": ["Jan", "Feb", "Mar", "Apr"],
    "datasets": [{ "label": "Value", "data": [10, 28, 19, 45], "fill": false }]
  }
}

Scatter plot:

{
  "type": "scatter",
  "data": {
    "datasets": [{
      "label": "Points",
      "data": [{ "x": 1, "y": 5 }, { "x": 2, "y": 8 }, { "x": 3, "y": 3 }]
    }]
  }
}

Time series:

{
  "type": "line",
  "data": {
    "labels": ["2024-01", "2024-02", "2024-03", "2024-04"],
    "datasets": [{ "label": "Value", "data": [120, 145, 132, 178], "fill": true }]
  }
}

Pie chart:

{
  "type": "pie",
  "data": {
    "labels": ["A", "B", "C"],
    "datasets": [{ "data": [30, 50, 20] }]
  }
}

Doughnut chart:

{
  "type": "doughnut",
  "data": {
    "labels": ["A", "B", "C"],
    "datasets": [{ "data": [30, 50, 20] }]
  }
}

Radar chart:

{
  "type": "radar",
  "data": {
    "labels": ["Speed", "Power", "Agility", "Stamina"],
    "datasets": [{ "label": "Player", "data": [80, 60, 90, 70] }]
  }
}

Bubble chart:

{
  "type": "bubble",
  "data": {
    "datasets": [{
      "label": "Group A",
      "data": [{ "x": 10, "y": 20, "r": 8 }, { "x": 15, "y": 10, "r": 5 }]
    }]
  }
}

Polar area chart:

{
  "type": "polarArea",
  "data": {
    "labels": ["A", "B", "C", "D"],
    "datasets": [{ "data": [11, 16, 7, 14] }]
  }
}

Mixed chart (bar + line):

{
  "type": "bar",
  "data": {
    "labels": ["Jan", "Feb", "Mar"],
    "datasets": [
      { "type": "bar", "label": "Revenue", "data": [100, 120, 90] },
      { "type": "line", "label": "Trend", "data": [95, 115, 100] }
    ]
  }
}

You may customize colors by setting backgroundColor and borderColor arrays on datasets. The renderer handles sizing โ€” do not set width or height.

Only include scales in options for cartesian chart types: bar, line, scatter, bubble. Do NOT include scales for pie, doughnut, polarArea, radar, or mixed โ€” it will cause them to fail.

Pertanyaan umum

Jenis bagan apa yang didukung?

Batang, gelembung, lingkaran, donat, garis, campuran, polar area, radar, dan sebaran.

Bagaimana cara membuat bagan area?

Gunakan bagan garis dengan opsi fill diaktifkan untuk dataset-nya.

Apakah ia membuat bagan alur?

Bagan alur dan diagram ditulis sebagai kode mermaid, bukan sebagai keluaran alat bagan.

Detail

Deskripsi asli dari pembuat

Use when the user asks to visualize data with charts, graphs, or plots using the `chart` tool (bar, line, scatter, pie, time series, etc.).

repo: Kilo-Org/kilocode

Popularitas

Bintang GitHub
28k
Peringkat
#9872
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa