Skip to content

⚠ Early release: v0.3.2.sophistry is not ready for production use. Until 1.0, any minor release may break the API; expect missing features and bugs too.Stability and versioning

Plotting and charts

Two families live here. The hand-built plots (Axes, FunctionGraph, PolarPlane, AreaUnderGraph, SecantSlopeGroup) place geometry in a coordinate system you control. The data-driven charts from @sophistry/charts (components BarChart, Histogram, Scatter, PieChart, … in @sophistry/solidjs/charts) take a data array plus channels that name which field feeds each quantity, and a <Chart> around them fits its axes to their data. Every chart batches its marks into a few nodes, so large datasets stay fast.

The examples are split by kind of chart below. Start with Function graphs and calculus for axes and graphs, and Bars, pies and part-to-whole for charts. Both reveal with the same draw() animation as any shape.

Function graphs and calculus

Axes, function and polar graphs, areas, tangents and vector fields.

Bars, pies and part-to-whole

Bar, histogram, waterfall, funnel, waffle, mosaic, pie and gauge charts.

Lines, areas and time series

Line and area charts, time axes, stacks, streamgraphs and candlesticks.

Scatter and distributions

Scatter plots, fits, strip and swarm plots, boxes, violins and densities.

Facets and linked views

Small multiples, pair and joint plots, and brushes that drive other charts.

Heatmaps and contours

Gridded and scattered fields as colour, iso-lines and colour norms.

Hierarchies, networks and flows

Treemaps, sunbursts, trees, network layouts, Sankey and chord diagrams.

Chart transitions

Data that morphs, keyed updates, rescaling axes, sorting, races and streams.