The six charts a dashboard reaches for first, drawn on a canvas by Mote's own plot battery, with no library. Point at any of them for the tooltip, press a legend entry to hide its series, walk the points with the arrow keys. The chart gallery has the rest. Every chart on this page reads the same rows: change them with the bar below.
Scale
100%
Months
6
Tooltip
Tablet series
0 shuffles
Bar
config= is one {key, label, color} per series; data= is the rows; x= names the category field. xChars=3 cuts "January" to "Jan".
Grouped, with a legendChartContainer is a frame (role=group) for a chart and what goes with it.
Stackedstacked puts the series of a month on one another; the axis grows to the sums.
One series, with labelslabels writes each value on its bar; yAxis=false drops the scale.
Horizontal, with labelsorientation names the bars' own direction.
Horizontal, stacked
Below zero, no grid, no tooltipDesktop minus mobile. The axis always has zero; negative bars hang under it. grid=false, tooltip=false, height=160.
Line
curve= is linear, smooth (monotone) or step.
Linear
Smooth, with dots
Step, with labels
Area
A line with what is under it filled; stacked, the series sit on one another.
Smooth
Stacked
Gradient fill, with dots
Step
Pie
A slice per row, clockwise from twelve o'clock. value= and name= are the rows' fields; config= is one entry per row, by its name.
With labels and a legend
Donut, with a centre labelChildren are written in the middle. The slider is innerRadius, a percent of the radius.
925Visitors
innerRadius60% of the radius
Radar
A spoke per row, a shape per series.
Two series, with dots
Circle grid
Radial
A ring per row. max= is what a full turn stands for; left out, it is the largest value.
A ring per row
One value of a maximumOne row, max=300 and a wide hole make a gauge. The second has track=false: no ring behind the value.
200of 300
67%track=false
Valueof max=300
The parts
What the charts are made of, for use outside one.
ChartCartesianWhat BarChart, LineChart and AreaChart share: the scale, the axes, the grid, the pointer, the tooltip and the legend. kind= picks the marks.
stacked
kind="bar"
ChartTooltip and ChartLegendThe tooltip card with each indicator, fed the first row; and floating at x= y= inside a positioned box (flip hangs it to the left). The legend is the config's swatches.
dot
January
Desktop186
Mobile80
line
January
Desktop186
Mobile80
dashed
January
Desktop186
Mobile80
At x, y
fliptrue
At x, y
flipfalse
Desktop
Mobile
ChartLayerOne mask layer: svg= is the mask, color= what shows through it. Here a sparkline of the desktop row, drawn by a fn of the page's own, twice: filled faintly, then stroked.
214Desktop, latest monthpeak 305
ChartDataTableEvery chart is role=img followed by this table, which takes no room and is read by a screen reader. Here it is given back its size so you can see it; the numbers follow the bar above.
Visitors by month
month
Desktop
Mobile
Tablet
January
186
80
45
February
305
200
90
March
237
120
70
April
73
190
110
May
209
130
60
June
214
140
95
As a chart writes it, it is 1 px square and clipped: nothing to see, everything to hear.