Get a chart's props + example
get_microchartGet full chart wiring by slug: import paths, props, data shape, best practices, and a copy-runnable example with sample JSON props 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 | ||
| tagline | Yes | ||
| avoidFor | Yes | ||
| encoding | Yes | ||
| dataShape | Yes | ||
| sharedProps | Yes | ||
| staticImport | Yes | ||
| interactiveImport | No |