Get a chart's props + example
get_microchartGet full wiring details for a chart by slug: import paths, props, data shape, best practices, runnable example, and sample JSON for rendering.
Instructions
Full wiring detail for one chart by slug: import paths, its props plus the shared props, data shape, best/avoid guidance, a copy-runnable example, and sample — the example as JSON props you can pass straight to render_microchart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Chart slug, e.g. "sparkline". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | Yes | ||
| props | Yes | ||
| sample | No | Ready-to-render props — pass straight to render_microchart. | |
| status | Yes | ||
| bestFor | Yes | ||
| example | Yes | ||
| gotchas | No | Behavior no prop description carries: documented caps, inputs the component derives, how format meets the chart's own sign or unit, and sizing knobs that are not width/height. Read before writing props. | |
| tagline | Yes | ||
| avoidFor | Yes | ||
| encoding | Yes | ||
| maxWidth | No | Authored maximum width prop, viewBox units. Past it the geometry stops scaling and the extra box is whitespace — scale with CSS instead. Absent on charts sized by cell, by content, or by CSS. | |
| dataShape | Yes | ||
| maxHeight | No | Authored maximum height prop, viewBox units. | |
| sharedProps | Yes | ||
| staticImport | Yes | ||
| interactiveImport | No |