All charts / Words and text
Animated charts for words and text
Your data is words, quotes or sentences. Chartreuse has 10 chart types for this data: 3 free (MIT) and 7 in Pro (not released yet). Each is live with real public data, moves once when it scrolls into view, and can play sound if the viewer turns it on.
What this data looks like
Your data is words, quotes or sentences. A typical table for it, from the letter frequency example:
books[].title(category): the text: 1 to 4 of them, side by side; the last is the reference (or the one titled hints.reference), and with one there is no comparisonbooks[].counts(number): times each letter or symbol appears; its keys, in order, are the alphabet (a to z here, accents removed, case ignored)books[].letters(number): all letters countedbooks[].words(number): words counted
Not sure? Describe your data on the search page, or let an agent call suggest_charts on the MCP server with a few rows.
Free charts (MIT)
Start here: these are the forms every chart library has, and they install with no account.
- Letter frequency · Free (MIT). Use a letter-frequency chart to show how often each letter appears in a text, usually against a reference text so the differences stand out. Use it when comparing the make-up of a text with a reference (ciphers, constrained writing, languages).
- Sentence lengths · Free (MIT). Use a sentence-length chart to show the rhythm of a text: every sentence as a bar, in reading order, as tall as its word count. Use it when the rhythm or pacing of a text is the story.
- Word frequency · Free (MIT). Use word frequency bars to show the most used words in a text, sorted, once the common little words are removed. Use it when a first look at what a text is about.
Pro charts
Pick one when it fits the story better than a free form: a race, annotations, steps, physics or a playful shape. Every one can be tried on its page first.
- Diff view · Pro · not released yet. Use a diff view to show how a text changed between two versions: what was kept, cut and added, word by word. Use it when two versions of the same text are compared.
- Highlighted text · Pro · not released yet. Use highlighted text to show a passage in full with words or phrases marked by category, so readers see both the pattern and the words themselves. Use it when the passage is short enough to read whole (up to about 500 words).
- Key word in context · Pro · not released yet. Use a key-word-in-context view (a concordance) to line up every use of a word with the words around it, so patterns in how it is used jump out. Use it when you want to see how a word is used, not only how often.
- Quote wall · Pro · not released yet. Use a quote wall to show many short quotes at once, each card sized by a measure and coloured by its source or theme. Use it when the words themselves are the data (quotes, reviews, survey answers).
- Sentiment strip · Pro · not released yet. Use a sentiment strip to show how the mood of a text moves from start to end: every sentence as a thin bar, coloured by its sentiment score. Use it when you want the arc of a long text: a novel, a speech, a transcript.
- Text timeline · Pro · not released yet. Use a text timeline to place words or phrases along time, so the language of each period can be read in order. Use it when the data is short text with a date (headlines, slogans, firsts, words of the year).
- Word tree · Pro · not released yet. Use a word tree to show what follows a word in a text: branches split wherever the next words differ, sized by how often each path appears. Use it when exploring how a word or phrase is used across a text.
Use one
Install it as source you own, then pass your own rows with the same fields.
npx chartreuse add letter-frequency
import "./chartreuse/chartreuse.css";
import { mount } from "./chartreuse/lib/mount";
import render from "./chartreuse/charts/letter-frequency/index";
import meta from "./chartreuse/charts/letter-frequency/meta.json";
mount(document.getElementById("chart"), render, { meta, data: yourRows });
For a video: npx chartreuse render letter-frequency --data rows.csv --format mp4 --size 1080x1920. See animated charts for video.
Other kinds of data
- Values per item: A number for each item, and you want to see which is bigger and by how much.
- Shares of a total: Counts or percentages that add up to one whole.
- Values over time: Years, months or dates, and you want the trend, the cycle or the change.
- Several measures per item: Two or more numbers for each item, and you want to see how they move together.
- Many values of one measure: Lots of readings, and you want the range, the typical value or the odds.
- Movement between stages: Things going from one state, place or step to the next.
- Groups within groups: Categories that nest inside other categories.
- Values by place: Each value belongs to a country, region or point on a map.
- One very big or small number: A size or amount to make people feel how big it is.