working-with-charts
Skill721 starsChanged 2 months agoMITView on GitHub
Guides consumers of @posthog/quill-charts through chart selection, data, themes, sizing, and composition. Use when adding or changing a chart built with the package, including its axes, tooltips, legend, overlays, or interactions. Links to package examples and API docs. Does not cover product integration or library internals.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- PostHog/posthogword for word, first seen Oct 4, 2026
Other versions1 project uses a version of this.
Word for word · 1
- PostHog/posthog★ 40k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- common/AGENTS.mdAGENTS.md
- proto/AGENTS.mdAGENTS.md
- rust/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- common/CLAUDE.mdCLAUDE.md
- proto/CLAUDE.mdCLAUDE.md
- rust/CLAUDE.mdCLAUDE.md
- .cursor/rules/django-python.mdcCursor rule
- .cursor/rules/react-typescript.mdcCursor rule
- .cursor/rules/rust.mdcCursor rule
- adding-activity-loggingSkill
- adding-api-scopesSkill
- adding-inbound-webhooksSkill
- adding-inbox-sourcesSkill
- adding-ingestion-warningsSkill
- adding-mcp-store-serversSkill
- adding-personhog-rpcSkill
- adding-product-alertingSkill
- adding-project-secret-api-key-authSkill
- adopting-generated-api-typesSkill
- analyzing-experiment-precompute-canarySkill
- analyzing-experiment-query-performanceSkill
- analyzing-insights-across-teamsSkill
- announcing-behavior-changesSkill
- auditing-llm-gateway-paritySkill
- auditing-warehouse-source-coverageSkill
- authenticating-to-clickhouseSkill
- authoring-ci-workflowsSkill
- autoresolving-pr-conflictsSkill
- building-product-empty-statesSkill
- clickhouse-migrationsSkill
- debugging-ci-failuresSkill
- debugging-local-replaySkill
- debugging-local-task-agent-runsSkill
- debugging-mcp-analyticsSkill
- debugging-signals-pipelineSkill
- debugging-table-access-deniedSkill
- depot-ciSkill
- depot-container-buildsSkill
- depot-github-runnersSkill
- developing-subscriptionsSkill
- django-migrationsSkill
- django-startup-timeSkill
- documenting-warehouse-sourcesSkill
- editing-agents-mdSkill
- establishing-code-ownershipSkill
- extending-hobby-smoke-testsSkill
- extending-personhog-test-harnessSkill
- finding-llm-gateway-migration-candidatesSkill
- fixing-flaky-testsSkill
- gating-production-deploysSkill
- gating-sensitive-actionsSkill
- generating-clickhouse-query-performance-reportsSkill
- hogliSkill
- implementing-mcp-toolsSkill
- implementing-mcp-ui-appsSkill
- implementing-warehouse-sourcesSkill
- improving-drf-endpointsSkill
- improving-mcp-toolsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use the package's components and defaults before writing custom chart code.
- Distinctive: line 12
Read only the example or topic needed for the task.
- Distinctive: line 17
Use the chart-selection table, then read a matching package story.
- Very specific: line 19
Import components and types from @posthog/quill-charts, not internal source paths.
- Very specific: line 23
Use stable series keys and typed meta for tooltip or click data.
- Very specific: line 25
Use ISO date labels with TimeSeries* charts.
- Very specific: line 26
Use NaN for missing numeric series values, not zero.
- Distinctive: line 27
Keep series, config, and callbacks stable across unrelated renders.
- Distinctive: line 32
Follow the setup and theme docs for tokens and CSS.
- Distinctive: line 34
Read the selected chart's props and the Series type for its data contract.
- Distinctive: line 38
Prefer the selected chart's built-in tooltip and legend.
- Distinctive: line 39
Use config options and exported overlays before custom renderers.
- Distinctive: line 54
Check missing values, long labels, and any interactions you changed.
- Distinctive: line 57
Keep detailed API behavior in the package docs rather than copying it into this skill.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Consuming quill-charts
Use the package's components and defaults before writing custom chart code. Read only the example or topic needed for the task. For changes inside the library, use CONTRIBUTING.md instead.
Choose a component
Use the chart-selection table, then read a matching package story.
For a date axis, start with DateAxis in TimeSeriesLineChart stories.
Import components and types from @posthog/quill-charts, not internal source paths.
Supply data, theme, and dimensions
- Use stable series keys and typed
metafor tooltip or click data. - For label-based charts, keep labels unique and align each series' data with them.
- Use ISO date labels with
TimeSeries*charts; format ticks through the axis config. - Use
NaNfor missing numeric series values, not zero. - Keep series, config, and callbacks stable across unrelated renders.
- Give charts that fill their container a parent with real dimensions, including a nonzero height.
Reuse the host's existing chart theme setup.
For a new host without chart theming, use the package's useChartTheme hook.
Follow the setup and theme docs for tokens and CSS.
Omit series colors to use the theme palette; resolve CSS variables before passing explicit canvas colors.
Read the selected chart's props and the Series type for its data contract.
Configure before customizing
Prefer the selected chart's built-in tooltip and legend. Use config options and exported overlays before custom renderers. Load only the relevant topic:
| Task | Package docs |
| Axis formatting, ranges, or multiple axes | Axes |
| Bar layouts or per-bar styling | Bars |
| Tooltip formatting or content | Tooltips |
| Legend visibility or interaction | Legend |
| Reference lines, labels, or custom overlays | Overlays |
| Clicks, zoom, or selection | Interactions |
Verify
Render at the intended container sizes and in light and dark themes. Check missing values, long labels, and any interactions you changed. Extend relevant tests and stories; use the consumer testing guide for chart accessors.
Keep detailed API behavior in the package docs rather than copying it into this skill.
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
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.

