Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

@dioramajs/data/chart

Exports of @dioramajs/data/chart.

View as Markdown
On this page
import { default, PALETTE, parseNumber } from '@dioramajs/data/chart'

Functions

parseNumberA number from a cell: thousand separators, a decimal comma, currency, `%`, a minus sign, accounting parentheses and k/M/B suffixes. NaN without digits.
readChartCategories and series of a `<table>` (first column labels, header row names) or a `<dl>`.
scaleOfBounds and ticks of the value axis: from 0, or below it for negative values.

Constants

defaultA `<table>` or `<dl>` drawn as an animated bar, column, line or area chart that grows in when it scrolls into view; the markup stays for screen readers and shows without WebGL.
PALETTEOkabe and Ito's palette: told apart with every common color vision deficiency.

Interfaces

ChartDataWhat the chart shows: categories down the rows and a series per value column.
SeriesOne column of the table, or the values of a `<dl>`.