agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/arcgis-charts/AGENTS.md

SKILL_JS5_ARCGIS / arcgis-charts

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for charts. Read before adding a chart. 1. Chart type? categories → barChart/pieChart; trend → lineChart; correlation → scatterplot; distribution → histogram/boxPlot. 2. The layer already has saved charts? → chart.layer = layer; chart.chartIndex = 0. 3. New chart? → createModel({ layer, chartType }), set the model's fields, chart.model = model. 4. Link to map? → chart.view = view; chart.syncViewSelection = true.

The file

Files
AGENTS.md

Agent Guide: arcgis-charts

Quick-reference for charts. Read before adding a chart.

Quick Decision Tree

  1. Chart type? categories → barChart/pieChart; trend → lineChart; correlation → scatterplot; distribution → histogram/boxPlot.
  2. The layer already has saved charts? → chart.layer = layer; chart.chartIndex = 0.
  3. New chart? → createModel({ layer, chartType }), set the model's fields, chart.model = model.
  4. Link to map? → chart.view = view; chart.syncViewSelection = true.

Setup Checklist

  • @esri/calcite-components pinned to ~5.1.2: Calcite 5.2 stops charts 5.1 from drawing.
  • createModel from @arcgis/charts-components/model/shared/setup-utils (no .js).
  • Set chart.layer AND chart.model; there is no config property on the element.
  • Check the model fields exist on the layer (layer.getField).
  • Give the element a size in CSS.
  • Wait for arcgisDataProcessComplete before exporting or asserting.

Anti-patterns (one-liner reminders)

  • ❌ chart.config = {...}: invented, silently ignored, empty chart.
  • ❌ ^5.1.x for Calcite: resolves to 5.2 and the chart never draws.
  • ❌ 5.0 names that 5.1 deprecated (filterByExtent, syncSelectionsBetweenChartAndLayerViewPolicy).

Files in This Skill

  • SKILL.md / SKILL.es.md — full guides
  • references/api-detail.md — arcgis-chart, createModel, models, 5.1 renames
  • references/examples.md — bar / line / map-link
  • references/pitfalls.md — extended troubleshooting
  • scripts/snippet-chart.ts

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.