openchart

Category: Development & Coding | Uploader: tryopendatatryopendata | Downloads: 0 | Version: v1.0(Latest)

Generates OpenChart (https://github.com/tryopendata/openchart) chart, table, and graph specs from data, and guides editorial design decisions. Use when creating visualizations, building charts, rendering data tables, generating VizSpec JSON, creating network graphs, answering questions about OpenChart types and encoding rules, or making design decisions about chart type selection, color strategy, typography, annotations, and editorial framing. Also covers custom D3.js infographics for cases that go beyond declarative specs. --- # Data Visualization with OpenChart **Core concept:** Write a VizSpec JSON object, render with `<Chart spec={spec} />` / `<DataTable spec={spec} />` / `<Graph spec={spec} />` (React) or `createChart(container, spec)` / `createTable(container, spec)` / `createGraph(container, spec)` (vanilla JS). The engine validates, compiles, and renders. Specs are plain JSON, no imperative drawing. See https://github.com/tryopendata/openchart for the rendering engine. **CSS is required.** OpenChart's stylesheet must be loaded for proper rendering (chrome, tables, tooltips, brand watermark). Framework imports handle this automatically, but CDN/standalone HTML needs an explicit `<link>`: ```html <link rel="stylesheet" href="https://esm.sh/@opendata-ai/openchart-vanilla/styles.css"> ``` See [rendering reference](references/rendering.md) for details. ## Chart Selection Decision Tree ``` Single value to highlight -> Use chrome.title as a big number display Temporal x-axis column? -> 1 series: line | 2-5 series: line + color | 6+: filter to top 5 Categorical + numeric? -> Ranked list: bar (horizontal) | Periodic (Q1, Jan): bar (vertical) | 2-6 composition: arc Two numeric columns? -> point (optional size/color for 3rd/4th dims) Categorical + series + num? -> stacked bar (use color for series) Distribution/spread? -> circle (strip plot) Nodes + edges / network? -> graph (force/radial/hierarchical layout) Flow between stages?

Changelog: Source: GitHub https://github.com/tryopendata/skills

Directory Structure

Current level: tree/main/plugins/openchart/skills/openchart/

SKILL.md

Login to download/like/favorite ❤ 29 | ★ 0
Comments 0

Please login before commenting.

No comments yet. Be the first one!