Skip to content

What is Charming? ​

A nested flow for data-driven drawing, animation and interaction.

Charming is a free, open-source JavaScript library for data-driven drawing, animation and interaction, such as generative art and visualization. It's built on one observation: generative art and visualization are both data-driven, typically the former by data generated procedurally and the latter by data collected from the real world.

Charming introduces a new flow model, inspired by D3's selections and G2's nested view tree, that transforms abstract data into visual data step by step, and nests: a flow can start again in each row of another.

Charming's core module provides the flow, shapes, transforms, transitions and signals, enough to draw anything from data. Its vis layer adds scales, axes, legends, coordinates and interactions as transforms of the same flow. Three renderers draw the result: SVG, Canvas, and the terminal for ASCII art.

Examples of Charming: a streamgraph, a scatterplot matrix, a rose, a Marimekko chart, pies by day, a polar ribbon, a unit chart, a heatmap, a stacked area in the terminal, parallel coordinates, a radar and a population pyramid

For more information, see the following links:

  • Why Charming?: the flow, one property at a time, compared with Vega-Lite, GoFish and Plot
  • Get Started: install Charming and draw a first chart
  • API Index: every function and method, by module
  • Examples: charts, animations, interaction and the terminal