SuperAPIAI Directory

semiotic

github.com · AI developer platforms

Semiotic React data visualization: suggest charts for a dataset, render validated configs to SVG, diagnose anti-patterns and fetch component schemas.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Semiotic is a React data visualization library designed for AI-assisted development and streaming data. It starts from small chart components and adds network diagrams, streaming data, and linked views when needed. Structured schemas, diagnostics, and rendering evidence help coding assistants implement, inspect, and fix chart configurations.

Key Capabilities

Semiotic covers standard charts (line, bar, scatter, area), network visualization (force-directed graphs, Sankey diagrams, chord diagrams, tree layouts, treemaps, circle packing, orbital diagrams), streaming data (a ref-based push API that renders at 60fps on canvas), linked views (LinkedCharts provides hover cross-highlighting, brush cross-filtering, coordinate-based linked crosshairs, and selection synchronization), geographic visualization (choropleth maps, proportional symbol maps, flow maps with particle animation, distance-distorted maps, based on d3-geo projections, with zoom and pan, tile basemaps, and drag-to-rotate globes), statistical summaries (box plots, violin plots, swarm plots, histograms, LOESS smoothing, forecasts with confidence envelopes, anomaly detection, marginal distributions on scatterplot axes), and first-class annotations (labels bound to data, callouts, thresholds, bounding boxes, statistical overlays, and React components that move with the chart and render in the browser, SSR, and export paths).

AI-Assisted Development

Semiotic provides workflows for generating, inspecting, and fixing chart configurations. semiotic/ai is a single import containing a schema-backed catalog of chart capabilities, optimized for LLM code generation. ai/schema.json provides machine-readable prop schemas for every component. npx -y -p semiotic semiotic-mcp is an MCP server that enables tool-based chart rendering in any MCP client. npx -p semiotic semiotic-ai --doctor validates component-plus-props JSON from the command line, with spelling suggestions and anti-pattern detection. diagnoseConfig(component, props) is a programmable anti-pattern detector that provides actionable fix suggestions, covering validation, encoding, accessibility, and misleading design checks. auditData(component, props, data?) is a chart-aware numerical preflight for inputs that pass schema validation but break the math, including non-finite values, zeroSpan domains, invalid log inputs, negative-size geometry, unsafe normalization totals, and outliers in dominant ratios. Each chart has built-in error boundaries, development-mode validation warnings (with spelling suggestions), and accessibility features (canvas aria-label, keyboard-navigable legends, keyboard live-region announcements, SVG title/desc).

How to Use

Register the required mark plugins via the Chart HOC; using StreamXYFrame directly loads the remaining built-in plugins on the first client-side render. For SSR or when the first frame must include marks, call registerBuiltInXYPlugins() before the first render. Each Chart component accepts a frameProps prop to access the underlying Frame API through a simpler interface. Charts can be serialized to and deserialized from JSON: toConfig, fromConfig, toURL, copyConfig, configToJSX. fromVegaLite(spec) can convert Vega-Lite specs into Semiotic configs, supporting bar, line, area, point, rect, arc, and tick marks as well as encoding conversions for color, size, aggregation, and binning. Semiotic provides 41 stable JavaScript entry points (40 subpaths plus the root), and it is recommended to use the smallest subpath matching the chart or tool.

When to Use

Semiotic is suited to projects that go beyond libraries such as Recharts: when you need network diagrams alongside time series, streaming data alongside static snapshots, or linked views across chart types. If you only need standard bar or line charts that never go beyond color and label customization, Recharts has a larger ecosystem and more community examples; if you need GPU-accelerated rendering of millions of data points, Apache ECharts can handle that scale.

Limitations

Requires React 18.1+ or React 19. The European Accessibility Act applies to covered products and services as of June 28, 2025; a chart library cannot certify an application's legal compliance, and scope, content, surrounding controls, testing, and national enforcement remain the responsibility of the application owner. The July 27, 2026 assessment reported model- and task-specific results and does not guarantee correctness on the first attempt. As of version 3.12.1, network perspectives extend to the Atlas reader, with improvements to projected layout sizing, annotation anchors, and static SVG precision; semioticVite() removes unused worker assets from Vite 7 builds while preserving used workers.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools