blockcharts alpha

Gallery / Distributions /

Violin plot

How values are spread in each category, with the shape a box plot hides (two humps, a tail).

71.6 KB of code · core 32.5 + 12 blocks 39.2

Response time by region, ms

US West has two humps: most requests are fast, a third take the slow path. Asia is the slowest overall.

How it is made: transform.density turns the raw times into a curve per region (extent [0, null]: no time is negative); mark.violin mirrors it on both sides of the band. Unlike a box plot it shows that US West has two humps: most requests are fast, a third take the slow path.

What the report is made of

The composer reads the JSON below and puts into the page the core and only the blocks its chart uses: 12 of the 59, 71.6 KB of code, minified, which is 33% of the 215.9 KB that the core and every block weigh together. The report file is 79.7 KB: that code, the data, the styles and the page around them.

BlockWhat it doesShare of the codeKB
core.composed
A report with compressed data: the composer has run the checks already.
A report with compressed data: the composer has run the checks already. 32.5
lib.pointer
Where the pointer is on the chart, and following a mouse or a finger once a frame. Shared by tooltip, crosshair, zoom and brush.
Where the pointer is on the chart, and following a mouse or a finger once a frame. Shared by tooltip, crosshair, zoom and brush. 1.7
lib.stats
The spread a smoothing kernel is made from. Shared by density and contour.
The spread a smoothing kernel is made from. Shared by density and contour. 0.4
lib.ticks
Round steps and ticks (1, 2 or 5 × 10ⁿ). Shared by the number scales and the histogram bins.
Round steps and ticks (1, 2 or 5 × 10ⁿ). Shared by the number scales and the histogram bins. 0.7
scale.band
One band per category: the axis of bar charts.
One band per category: the axis of bar charts. 1.2
scale.color
A color per category, from the theme palette.
A color per category, from the theme palette. 0.8
scale.linear
Numbers to positions, with round ticks.
Numbers to positions, with round ticks. 1.6
transform.density
How raw values are spread, as a smooth curve per group.
How raw values are spread, as a smooth curve per group. 2.9
mark.violin
Violins and ridgelines: the shape of a distribution per category.
Violins and ridgelines: the shape of a distribution per category. 3.0
guide.axis
Axes: formatted labels, a title, long categories wrapped.
Axes: formatted labels, a title, long categories wrapped. 11.7
guide.grid
Grid lines at the ticks.
Grid lines at the ticks. 0.6
interaction.tooltip
The values under the pointer.
The values under the pointer. 10.7
renderer.svg
Draws into SVG: sharp, selectable, prints well. The default.
Draws into SVG: sharp, selectable, prints well. The default. 3.9
TotalThe core 32.5 and 12 blocks 39.271.6

The JSON

This is the whole input. data holds the datasets, each chart is a spec that names one. In a checkout of the repository: node scripts/compose.js skills/blockcharts/recipes/violin.json report.html. Saved as page.json, it composes the same with the skill's own runtime/compose.js.

violin.json

{
  "title": "Violin plot",
  "data": {
    "requests": [
      {"region": "Europe", "ms": 136},
      {"region": "Europe", "ms": 178},
      {"region": "Europe", "ms": 137},
      {"region": "Europe", "ms": 133},
      {"region": "Europe", "ms": 107},
      {"region": "Europe", "ms": 138},
      {"region": "Europe", "ms": 219},
      {"region": "Europe", "ms": 172},
      {"region": "Europe", "ms": 213},
      {"region": "Europe", "ms": 162},
      {"region": "Europe", "ms": 170},
      {"region": "Europe", "ms": 158},
      {"region": "Europe", "ms": 83},
      {"region": "Europe", "ms": 200},
      {"region": "Europe", "ms": 177},
      {"region": "Europe", "ms": 177},
      {"region": "Europe", "ms": 82},
      {"region": "Europe", "ms": 81},
      {"region": "Europe", "ms": 109},
      {"region": "Europe", "ms": 126},
      {"region": "Europe", "ms": 165},
      {"region": "Europe", "ms": 146},
      {"region": "Europe", "ms": 178},
      {"region": "Europe", "ms": 119},
      {"region": "Europe", "ms": 165},
      {"region": "Europe", "ms": 170},
      {"region": "Europe", "ms": 118},
      {"region": "Europe", "ms": 271},
      {"region": "Europe", "ms": 180},
      {"region": "Europe", "ms": 226},
      {"region": "Europe", "ms": 119},
      {"region": "Europe", "ms": 115},
      {"region": "Europe", "ms": 132},
      {"region": "Europe", "ms": 143},
      {"region": "Europe", "ms": 185},
      {"region": "Europe", "ms": 162},
      {"region": "Europe", "ms": 127},
      {"region": "Europe", "ms": 106},
      {"region": "Europe", "ms": 124},
      {"region": "Europe", "ms": 228},
      {"region": "Europe", "ms": 112},
      {"region": "Europe", "ms": 162},
      {"region": "Europe", "ms": 172},
      {"region": "Europe", "ms": 88},
      {"region": "Europe", "ms": 151},
      {"region": "Europe", "ms": 234},
      {"region": "Europe", "ms": 73},
      {"region": "Europe", "ms": 133},
      {"region": "Europe", "ms": 143},
      {"region": "Europe", "ms": 111},
      {"region": "Europe", "ms": 177},
      {"region": "Europe", "ms": 145},
      {"region": "Europe", "ms": 89},
      {"region": "Europe", "ms": 198},
      {"region": "Europe", "ms": 188},
      {"region": "Europe", "ms": 207},
      {"region": "Europe", "ms": 246},
      {"region": "Europe", "ms": 168},
      {"region": "Europe", "ms": 155},
      {"region": "Europe", "ms": 94},
      {"region": "Europe", "ms": 184},
      {"region": "Europe", "ms": 120},
      {"region": "Europe", "ms": 127},
      {"region": "Europe", "ms": 95},
      {"region": "Europe", "ms": 106},
      {"region": "Europe", "ms": 123},
      {"region": "Europe", "ms": 233},
      {"region": "Europe", "ms": 73},
      {"region": "Europe", "ms": 89},
      {"region": "Europe", "ms": 161},
      {"region": "Europe", "ms": 246},
      {"region": "Europe", "ms": 182},
      {"region": "Europe", "ms": 76},
      {"region": "Europe", "ms": 61},
      {"region": "Europe", "ms": 168},
      {"region": "Europe", "ms": 115},
      {"region": "Europe", "ms": 100},
      {"region": "Europe", "ms": 209},
      {"region": "Europe", "ms": 218},
      {"region": "Europe", "ms": 157},
      {"region": "Europe", "ms": 162},
      {"region": "Europe", "ms": 173},
      {"region": "Europe", "ms": 259},
      {"region": "Europe", "ms": 184},
      {"region": "Europe", "ms": 178},
      {"region": "Europe", "ms": 180},
      {"region": "Europe", "ms": 86},
      {"region": "Europe", "ms": 232},
      {"region": "Europe", "ms": 207},
      {"region": "Europe", "ms": 179},
      {"region": "Europe", "ms": 74},
      {"region": "Europe", "ms": 119},
      {"region": "Europe", "ms": 199},
      {"region": "Europe", "ms": 79},
      {"region": "Europe", "ms": 139},
      {"region": "Europe", "ms": 212},
      {"region": "Europe", "ms": 94},
      {"region": "Europe", "ms": 261},
      {"region": "Europe", "ms": 180},
      {"region": "Europe", "ms": 141},
      {"region": "Europe", "ms": 166},
      {"region": "Europe", "ms": 186},
      {"region": "Europe", "ms": 155},
      {"region": "Europe", "ms": 222},
      {"region": "Europe", "ms": 118},
      {"region": "Europe", "ms": 128},
      {"region": "Europe", "ms": 214},
      {"region": "Europe", "ms": 150},
      {"region": "Europe", "ms": 109},
      {"region": "Europe", "ms": 207},
      {"region": "Europe", "ms": 248},
      {"region": "Europe", "ms": 127},
      {"region": "Europe", "ms": 92},
      {"region": "Europe", "ms": 142},
      {"region": "Europe", "ms": 141},
      {"region": "Europe", "ms": 134},
      {"region": "Europe", "ms": 243},
      {"region": "Europe", "ms": 104},
      {"region": "Europe", "ms": 231},
      {"region": "Europe", "ms": 95},
      {"region": "Europe", "ms": 113},
      {"region": "Europe", "ms": 185},
      {"region": "Europe", "ms": 220},
      {"region": "Europe", "ms": 200},
      {"region": "Europe", "ms": 167},
      {"region": "Europe", "ms": 156},
      {"region": "Europe", "ms": 157},
      {"region": "Europe", "ms": 182},
      {"region": "Europe", "ms": 140},
      {"region": "Europe", "ms": 164},
      {"region": "Europe", "ms": 181},
      {"region": "Europe", "ms": 148},
      {"region": "Europe", "ms": 194},
      {"region": "Europe", "ms": 181},
      {"region": "Europe", "ms": 300},
      {"region": "Europe", "ms": 166},
      {"region": "Europe", "ms": 128},
      {"region": "Europe", "ms": 130},
      {"region": "Europe", "ms": 148},
      {"region": "Europe", "ms": 205},
      {"region": "Europe", "ms": 132},
      {"region": "Europe", "ms": 170},
      {"region": "Europe", "ms": 282},
      {"region": "Europe", "ms": 60},
      {"region": "Europe", "ms": 100},
      {"region": "Europe", "ms": 162},
      {"region": "Europe", "ms": 171},
      {"region": "Europe", "ms": 161},
      {"region": "Europe", "ms": 128},
      {"region": "Europe", "ms": 187},
      {"region": "US East", "ms": 197},
      {"region": "US East", "ms": 155},
      {"region": "US East", "ms": 376},
      {"region": "US East", "ms": 202},
      {"region": "US East", "ms": 154},
      {"region": "US East", "ms": 176},
      {"region": "US East", "ms": 169},
      {"region": "US East", "ms": 178},
      {"region": "US East", "ms": 80},
      {"region": "US East", "ms": 157},
      {"region": "US East", "ms": 245},
      {"region": "US East", "ms": 128},
      {"region": "US East", "ms": 178},
      {"region": "US East", "ms": 241},
      {"region": "US East", "ms": 234},
      {"region": "US East", "ms": 284},
      {"region": "US East", "ms": 109},
      {"region": "US East", "ms": 163},
      {"region": "US East", "ms": 164},
      {"region": "US East", "ms": 219},
      {"region": "US East", "ms": 252},
      {"region": "US East", "ms": 81},
      {"region": "US East", "ms": 251},
      {"region": "US East", "ms": 117},
      {"region": "US East", "ms": 223},
      {"region": "US East", "ms": 116},
      {"region": "US East", "ms": 191},
      {"region": "US East", "ms": 259},
      {"region": "US East", "ms": 173},
      {"region": "US East", "ms": 192},
      {"region": "US East", "ms": 230},
      {"region": "US East", "ms": 189},
      {"region": "US East", "ms": 177},
      {"region": "US East", "ms": 287},
      {"region": "US East", "ms": 248},
      {"region": "US East", "ms": 166},
      {"region": "US East", "ms": 413},
      {"region": "US East", "ms": 129},
      {"region": "US East", "ms": 239},
      {"region": "US East", "ms": 167},
      {"region": "US East", "ms": 189},
      {"region": "US East", "ms": 224},
      {"region": "US East", "ms": 194},
      {"region": "US East", "ms": 220},
      {"region": "US East", "ms": 115},
      {"region": "US East", "ms": 115},
      {"region": "US East", "ms": 218},
      {"region": "US East", "ms": 136},
      {"region": "US East", "ms": 133},
      {"region": "US East", "ms": 117},
      {"region": "US East", "ms": 265},
      {"region": "US East", "ms": 227},
      {"region": "US East", "ms": 282},
      {"region": "US East", "ms": 137},
      {"region": "US East", "ms": 181},
      {"region": "US East", "ms": 129},
      {"region": "US East", "ms": 228},
      {"region": "US East", "ms": 292},
      {"region": "US East", "ms": 139},
      {"region": "US East", "ms": 289},
      {"region": "US East", "ms": 244},
      {"region": "US East", "ms": 172},
      {"region": "US East", "ms": 100},
      {"region": "US East", "ms": 276},
      {"region": "US East", "ms": 176},
      {"region": "US East", "ms": 151},
      {"region": "US East", "ms": 204},
      {"region": "US East", "ms": 205},
      {"region": "US East", "ms": 284},
      {"region": "US East", "ms": 133},
      {"region": "US East", "ms": 255},
      {"region": "US East", "ms": 283},
      {"region": "US East", "ms": 280},
      {"region": "US East", "ms": 172},
      {"region": "US East", "ms": 145},
      {"region": "US East", "ms": 246},
      {"region": "US East", "ms": 188},
      {"region": "US East", "ms": 188},
      {"region": "US East", "ms": 278},
      {"region": "US East", "ms": 167},
      {"region": "US East", "ms": 91},
      {"region": "US East", "ms": 161},
      {"region": "US East", "ms": 104},
      {"region": "US East", "ms": 232},
      {"region": "US East", "ms": 199},
      {"region": "US East", "ms": 151},
      {"region": "US East", "ms": 181},
      {"region": "US East", "ms": 233},
      {"region": "US East", "ms": 186},
      {"region": "US East", "ms": 270},
      {"region": "US East", "ms": 178},
      {"region": "US East", "ms": 248},
      {"region": "US East", "ms": 284},
      {"region": "US East", "ms": 294},
      {"region": "US East", "ms": 148},
      {"region": "US East", "ms": 236},
      {"region": "US East", "ms": 103},
      {"region": "US East", "ms": 131},
      {"region": "US East", "ms": 101},
      {"region": "US East", "ms": 250},
      {"region": "US East", "ms": 125},
      {"region": "US East", "ms": 181},
      {"region": "US East", "ms": 171},
      {"region": "US East", "ms": 180},
      {"region": "US East", "ms": 152},
      {"region": "US East", "ms": 194},
      {"region": "US East", "ms": 310},
      {"region": "US East", "ms": 184},
      {"region": "US East", "ms": 213},
      {"region": "US East", "ms": 245},
      {"region": "US East", "ms": 171},
      {"region": "US East", "ms": 124},
      {"region": "US East", "ms": 153},
      {"region": "US East", "ms": 250},
      {"region": "US East", "ms": 111},
      {"region": "US East", "ms": 152},
      {"region": "US East", "ms": 245},
      {"region": "US East", "ms": 230},
      {"region": "US East", "ms": 182},
      {"region": "US East", "ms": 231},
      {"region": "US East", "ms": 191},
      {"region": "US East", "ms": 127},
      {"region": "US East", "ms": 113},
      {"region": "US East", "ms": 150},
      {"region": "US East", "ms": 239},
      {"region": "US East", "ms": 153},
      {"region": "US East", "ms": 138},
      {"region": "US East", "ms": 144},
      {"region": "US East", "ms": 114},
      {"region": "US East", "ms": 175},
      {"region": "US East", "ms": 127},
      {"region": "US East", "ms": 202},
      {"region": "US East", "ms": 89},
      {"region": "US East", "ms": 200},
      {"region": "US East", "ms": 150},
      {"region": "US East", "ms": 101},
      {"region": "US East", "ms": 225},
      {"region": "US East", "ms": 167},
      {"region": "US East", "ms": 93},
      {"region": "US East", "ms": 139},
      {"region": "US East", "ms": 198},
      {"region": "US East", "ms": 158},
      {"region": "US East", "ms": 229},
      {"region": "US East", "ms": 227},
      {"region": "US East", "ms": 221},
      {"region": "US East", "ms": 200},
      {"region": "US East", "ms": 270},
      {"region": "US East", "ms": 221},
      {"region": "US East", "ms": 208},
      {"region": "US East", "ms": 97},
      {"region": "Asia", "ms": 405},
      {"region": "Asia", "ms": 487},
      {"region": "Asia", "ms": 237},
      {"region": "Asia", "ms": 219},
      {"region": "Asia", "ms": 648},
      {"region": "Asia", "ms": 123},
      {"region": "Asia", "ms": 334},
      {"region": "Asia", "ms": 805},
      {"region": "Asia", "ms": 178},
      {"region": "Asia", "ms": 369},
      {"region": "Asia", "ms": 632},
      {"region": "Asia", "ms": 256},
      {"region": "Asia", "ms": 348},
      {"region": "Asia", "ms": 406},
      {"region": "Asia", "ms": 180},
      {"region": "Asia", "ms": 260},
      {"region": "Asia", "ms": 309},
      {"region": "Asia", "ms": 392},
      {"region": "Asia", "ms": 266},
      {"region": "Asia", "ms": 248},
      {"region": "Asia", "ms": 171},
      {"region": "Asia", "ms": 230},
      {"region": "Asia", "ms": 404},
      {"region": "Asia", "ms": 283},
      {"region": "Asia", "ms": 184},
      {"region": "Asia", "ms": 185},
      {"region": "Asia", "ms": 898},
      {"region": "Asia", "ms": 452},
      {"region": "Asia", "ms": 360},
      {"region": "Asia", "ms": 84},
      {"region": "Asia", "ms": 358},
      {"region": "Asia", "ms": 336},
      {"region": "Asia", "ms": 577},
      {"region": "Asia", "ms": 328},
      {"region": "Asia", "ms": 262},
      {"region": "Asia", "ms": 342},
      {"region": "Asia", "ms": 113},
      {"region": "Asia", "ms": 431},
      {"region": "Asia", "ms": 313},
      {"region": "Asia", "ms": 197},
      {"region": "Asia", "ms": 491},
      {"region": "Asia", "ms": 610},
      {"region": "Asia", "ms": 144},
      {"region": "Asia", "ms": 200},
      {"region": "Asia", "ms": 308},
      {"region": "Asia", "ms": 294},
      {"region": "Asia", "ms": 226},
      {"region": "Asia", "ms": 174},
      {"region": "Asia", "ms": 702},
      {"region": "Asia", "ms": 431},
      {"region": "Asia", "ms": 158},
      {"region": "Asia", "ms": 148},
      {"region": "Asia", "ms": 582},
      {"region": "Asia", "ms": 422},
      {"region": "Asia", "ms": 614},
      {"region": "Asia", "ms": 389},
      {"region": "Asia", "ms": 183},
      {"region": "Asia", "ms": 304},
      {"region": "Asia", "ms": 102},
      {"region": "Asia", "ms": 193},
      {"region": "Asia", "ms": 263},
      {"region": "Asia", "ms": 342},
      {"region": "Asia", "ms": 195},
      {"region": "Asia", "ms": 256},
      {"region": "Asia", "ms": 332},
      {"region": "Asia", "ms": 320},
      {"region": "Asia", "ms": 360},
      {"region": "Asia", "ms": 297},
      {"region": "Asia", "ms": 234},
      {"region": "Asia", "ms": 386},
      {"region": "Asia", "ms": 277},
      {"region": "Asia", "ms": 186},
      {"region": "Asia", "ms": 204},
      {"region": "Asia", "ms": 270},
      {"region": "Asia", "ms": 257},
      {"region": "Asia", "ms": 290},
      {"region": "Asia", "ms": 270},
      {"region": "Asia", "ms": 293},
      {"region": "Asia", "ms": 255},
      {"region": "Asia", "ms": 154},
      {"region": "Asia", "ms": 327},
      {"region": "Asia", "ms": 434},
      {"region": "Asia", "ms": 329},
      {"region": "Asia", "ms": 248},
      {"region": "Asia", "ms": 331},
      {"region": "Asia", "ms": 175},
      {"region": "Asia", "ms": 115},
      {"region": "Asia", "ms": 278},
      {"region": "Asia", "ms": 178},
      {"region": "Asia", "ms": 377},
      {"region": "Asia", "ms": 166},
      {"region": "Asia", "ms": 83},
      {"region": "Asia", "ms": 169},
      {"region": "Asia", "ms": 550},
      {"region": "Asia", "ms": 228},
      {"region": "Asia", "ms": 146},
      {"region": "Asia", "ms": 192},
      {"region": "Asia", "ms": 342},
      {"region": "Asia", "ms": 338},
      {"region": "Asia", "ms": 293},
      {"region": "Asia", "ms": 527},
      {"region": "Asia", "ms": 372},
      {"region": "Asia", "ms": 268},
      {"region": "Asia", "ms": 354},
      {"region": "Asia", "ms": 569},
      {"region": "Asia", "ms": 419},
      {"region": "Asia", "ms": 429},
      {"region": "Asia", "ms": 166},
      {"region": "Asia", "ms": 253},
      {"region": "Asia", "ms": 376},
      {"region": "Asia", "ms": 237},
      {"region": "Asia", "ms": 437},
      {"region": "Asia", "ms": 354},
      {"region": "Asia", "ms": 407},
      {"region": "Asia", "ms": 246},
      {"region": "Asia", "ms": 851},
      {"region": "Asia", "ms": 472},
      {"region": "Asia", "ms": 245},
      {"region": "Asia", "ms": 282},
      {"region": "Asia", "ms": 869},
      {"region": "Asia", "ms": 232},
      {"region": "Asia", "ms": 401},
      {"region": "Asia", "ms": 420},
      {"region": "Asia", "ms": 271},
      {"region": "Asia", "ms": 160},
      {"region": "Asia", "ms": 294},
      {"region": "Asia", "ms": 318},
      {"region": "Asia", "ms": 450},
      {"region": "Asia", "ms": 385},
      {"region": "Asia", "ms": 273},
      {"region": "Asia", "ms": 397},
      {"region": "Asia", "ms": 345},
      {"region": "Asia", "ms": 297},
      {"region": "Asia", "ms": 277},
      {"region": "Asia", "ms": 242},
      {"region": "Asia", "ms": 368},
      {"region": "Asia", "ms": 168},
      {"region": "Asia", "ms": 204},
      {"region": "Asia", "ms": 271},
      {"region": "Asia", "ms": 140},
      {"region": "Asia", "ms": 222},
      {"region": "Asia", "ms": 110},
      {"region": "Asia", "ms": 199},
      {"region": "Asia", "ms": 349},
      {"region": "Asia", "ms": 349},
      {"region": "Asia", "ms": 264},
      {"region": "Asia", "ms": 244},
      {"region": "Asia", "ms": 143},
      {"region": "Asia", "ms": 616},
      {"region": "Asia", "ms": 341},
      {"region": "US West", "ms": 83},
      {"region": "US West", "ms": 82},
      {"region": "US West", "ms": 306},
      {"region": "US West", "ms": 105},
      {"region": "US West", "ms": 128},
      {"region": "US West", "ms": 82},
      {"region": "US West", "ms": 103},
      {"region": "US West", "ms": 330},
      {"region": "US West", "ms": 349},
      {"region": "US West", "ms": 120},
      {"region": "US West", "ms": 86},
      {"region": "US West", "ms": 85},
      {"region": "US West", "ms": 172},
      {"region": "US West", "ms": 111},
      {"region": "US West", "ms": 77},
      {"region": "US West", "ms": 348},
      {"region": "US West", "ms": 110},
      {"region": "US West", "ms": 387},
      {"region": "US West", "ms": 123},
      {"region": "US West", "ms": 163},
      {"region": "US West", "ms": 89},
      {"region": "US West", "ms": 133},
      {"region": "US West", "ms": 84},
      {"region": "US West", "ms": 316},
      {"region": "US West", "ms": 363},
      {"region": "US West", "ms": 467},
      {"region": "US West", "ms": 120},
      {"region": "US West", "ms": 367},
      {"region": "US West", "ms": 96},
      {"region": "US West", "ms": 296},
      {"region": "US West", "ms": 84},
      {"region": "US West", "ms": 379},
      {"region": "US West", "ms": 137},
      {"region": "US West", "ms": 212},
      {"region": "US West", "ms": 279},
      {"region": "US West", "ms": 124},
      {"region": "US West", "ms": 108},
      {"region": "US West", "ms": 130},
      {"region": "US West", "ms": 340},
      {"region": "US West", "ms": 103},
      {"region": "US West", "ms": 150},
      {"region": "US West", "ms": 155},
      {"region": "US West", "ms": 104},
      {"region": "US West", "ms": 92},
      {"region": "US West", "ms": 112},
      {"region": "US West", "ms": 110},
      {"region": "US West", "ms": 105},
      {"region": "US West", "ms": 395},
      {"region": "US West", "ms": 367},
      {"region": "US West", "ms": 109},
      {"region": "US West", "ms": 167},
      {"region": "US West", "ms": 163},
      {"region": "US West", "ms": 104},
      {"region": "US West", "ms": 139},
      {"region": "US West", "ms": 90},
      {"region": "US West", "ms": 97},
      {"region": "US West", "ms": 390},
      {"region": "US West", "ms": 114},
      {"region": "US West", "ms": 405},
      {"region": "US West", "ms": 349},
      {"region": "US West", "ms": 120},
      {"region": "US West", "ms": 138},
      {"region": "US West", "ms": 126},
      {"region": "US West", "ms": 79},
      {"region": "US West", "ms": 75},
      {"region": "US West", "ms": 339},
      {"region": "US West", "ms": 74},
      {"region": "US West", "ms": 125},
      {"region": "US West", "ms": 506},
      {"region": "US West", "ms": 405},
      {"region": "US West", "ms": 98},
      {"region": "US West", "ms": 131},
      {"region": "US West", "ms": 107},
      {"region": "US West", "ms": 454},
      {"region": "US West", "ms": 98},
      {"region": "US West", "ms": 386},
      {"region": "US West", "ms": 422},
      {"region": "US West", "ms": 331},
      {"region": "US West", "ms": 145},
      {"region": "US West", "ms": 364},
      {"region": "US West", "ms": 410},
      {"region": "US West", "ms": 393},
      {"region": "US West", "ms": 361},
      {"region": "US West", "ms": 152},
      {"region": "US West", "ms": 88},
      {"region": "US West", "ms": 126},
      {"region": "US West", "ms": 105},
      {"region": "US West", "ms": 382},
      {"region": "US West", "ms": 135},
      {"region": "US West", "ms": 136},
      {"region": "US West", "ms": 115},
      {"region": "US West", "ms": 410},
      {"region": "US West", "ms": 61},
      {"region": "US West", "ms": 135},
      {"region": "US West", "ms": 117},
      {"region": "US West", "ms": 111},
      {"region": "US West", "ms": 79},
      {"region": "US West", "ms": 377},
      {"region": "US West", "ms": 167},
      {"region": "US West", "ms": 89},
      {"region": "US West", "ms": 110},
      {"region": "US West", "ms": 392},
      {"region": "US West", "ms": 86},
      {"region": "US West", "ms": 64},
      {"region": "US West", "ms": 113},
      {"region": "US West", "ms": 83},
      {"region": "US West", "ms": 373},
      {"region": "US West", "ms": 92},
      {"region": "US West", "ms": 105},
      {"region": "US West", "ms": 393},
      {"region": "US West", "ms": 106},
      {"region": "US West", "ms": 341},
      {"region": "US West", "ms": 89},
      {"region": "US West", "ms": 339},
      {"region": "US West", "ms": 136},
      {"region": "US West", "ms": 111},
      {"region": "US West", "ms": 80},
      {"region": "US West", "ms": 73},
      {"region": "US West", "ms": 368},
      {"region": "US West", "ms": 208},
      {"region": "US West", "ms": 435},
      {"region": "US West", "ms": 114},
      {"region": "US West", "ms": 108},
      {"region": "US West", "ms": 159},
      {"region": "US West", "ms": 417},
      {"region": "US West", "ms": 115},
      {"region": "US West", "ms": 127},
      {"region": "US West", "ms": 168},
      {"region": "US West", "ms": 132},
      {"region": "US West", "ms": 535},
      {"region": "US West", "ms": 112},
      {"region": "US West", "ms": 131},
      {"region": "US West", "ms": 432},
      {"region": "US West", "ms": 346},
      {"region": "US West", "ms": 301},
      {"region": "US West", "ms": 132},
      {"region": "US West", "ms": 336},
      {"region": "US West", "ms": 122},
      {"region": "US West", "ms": 384},
      {"region": "US West", "ms": 113},
      {"region": "US West", "ms": 149},
      {"region": "US West", "ms": 84},
      {"region": "US West", "ms": 102},
      {"region": "US West", "ms": 127},
      {"region": "US West", "ms": 158},
      {"region": "US West", "ms": 118},
      {"region": "US West", "ms": 102},
      {"region": "US West", "ms": 395},
      {"region": "US West", "ms": 292},
      {"region": "US West", "ms": 493}
    ]
  },
  "charts": [
    {
      "title": "Response time by region, ms",
      "note": "US West has two humps: most requests are fast, a third take the slow path. Asia is the slowest overall.",
      "how": "transform.density turns the raw times into a curve per region (extent [0, null]: no time is negative); mark.violin mirrors it on both sides of the band. Unlike a box plot it shows that US West has two humps: most requests are fast, a third take the slow path.",
      "spec": {
        "data": "requests",
        "size": [
          720,
          340
        ],
        "transforms": [
          {
            "type": "density",
            "field": "ms",
            "group": "region",
            "extent": [
              0,
              null
            ]
          }
        ],
        "scales": {
          "x": {
            "type": "band"
          },
          "y": {
            "type": "linear",
            "zero": true
          },
          "color": {
            "type": "color"
          }
        },
        "guides": [
          {
            "type": "grid",
            "scale": "y"
          },
          {
            "type": "axis",
            "scale": "x"
          },
          {
            "type": "axis",
            "scale": "y",
            "title": "ms"
          }
        ],
        "marks": [
          {
            "type": "violin",
            "x": "region",
            "y": "value",
            "density": "density",
            "color": "region"
          }
        ],
        "interaction": [
          {
            "type": "tooltip",
            "fields": [
              "value",
              "count"
            ],
            "labels": {
              "value": "ms",
              "count": "requests"
            },
            "formats": {
              "value": "integer"
            }
          }
        ]
      }
    }
  ]
}

The report the composer makes from it is one standalone file (79.7 KB): open it from disk, mail it, print it.

In a page of your own

The charts above use the full kit (81.8 KB gzipped), the smallest one that has the blocks this example needs: lib.pointer, lib.stats, lib.ticks, scale.band, scale.color, scale.linear, transform.density, mark.violin, guide.axis, guide.grid, interaction.tooltip, renderer.svg. The HTML below loads it from the jsDelivr CDN, pinned to version 0.0.5; to serve it from your own site, put its file there (the files of a release) and change the address.

HTML

<script src="https://cdn.jsdelivr.net/npm/blockcharts@0.0.5/release/kits/full.js"></script>

<script type="application/json" id="bc-data">
{"requests":[{"region":"Europe","ms":136},{"region":"Europe","ms":178},{"region":"Europe","ms":137},{"region":"Europe","ms":133},{"region":"Europe","ms":107},{"region":"Europe","ms":138},{"region":"Europe","ms":219},{"region":"Europe","ms":172},{"region":"Europe","ms":213},{"region":"Europe","ms":162},{"region":"Europe","ms":170},{"region":"Europe","ms":158},{"region":"Europe","ms":83},{"region":"Europe","ms":200},{"region":"Europe","ms":177},{"region":"Europe","ms":177},{"region":"Europe","ms":82},{"region":"Europe","ms":81},{"region":"Europe","ms":109},{"region":"Europe","ms":126},{"region":"Europe","ms":165},{"region":"Europe","ms":146},{"region":"Europe","ms":178},{"region":"Europe","ms":119},{"region":"Europe","ms":165},{"region":"Europe","ms":170},{"region":"Europe","ms":118},{"region":"Europe","ms":271},{"region":"Europe","ms":180},{"region":"Europe","ms":226},{"region":"Europe","ms":119},{"region":"Europe","ms":115},{"region":"Europe","ms":132},{"region":"Europe","ms":143},{"region":"Europe","ms":185},{"region":"Europe","ms":162},{"region":"Europe","ms":127},{"region":"Europe","ms":106},{"region":"Europe","ms":124},{"region":"Europe","ms":228},{"region":"Europe","ms":112},{"region":"Europe","ms":162},{"region":"Europe","ms":172},{"region":"Europe","ms":88},{"region":"Europe","ms":151},{"region":"Europe","ms":234},{"region":"Europe","ms":73},{"region":"Europe","ms":133},{"region":"Europe","ms":143},{"region":"Europe","ms":111},{"region":"Europe","ms":177},{"region":"Europe","ms":145},{"region":"Europe","ms":89},{"region":"Europe","ms":198},{"region":"Europe","ms":188},{"region":"Europe","ms":207},{"region":"Europe","ms":246},{"region":"Europe","ms":168},{"region":"Europe","ms":155},{"region":"Europe","ms":94},{"region":"Europe","ms":184},{"region":"Europe","ms":120},{"region":"Europe","ms":127},{"region":"Europe","ms":95},{"region":"Europe","ms":106},{"region":"Europe","ms":123},{"region":"Europe","ms":233},{"region":"Europe","ms":73},{"region":"Europe","ms":89},{"region":"Europe","ms":161},{"region":"Europe","ms":246},{"region":"Europe","ms":182},{"region":"Europe","ms":76},{"region":"Europe","ms":61},{"region":"Europe","ms":168},{"region":"Europe","ms":115},{"region":"Europe","ms":100},{"region":"Europe","ms":209},{"region":"Europe","ms":218},{"region":"Europe","ms":157},{"region":"Europe","ms":162},{"region":"Europe","ms":173},{"region":"Europe","ms":259},{"region":"Europe","ms":184},{"region":"Europe","ms":178},{"region":"Europe","ms":180},{"region":"Europe","ms":86},{"region":"Europe","ms":232},{"region":"Europe","ms":207},{"region":"Europe","ms":179},{"region":"Europe","ms":74},{"region":"Europe","ms":119},{"region":"Europe","ms":199},{"region":"Europe","ms":79},{"region":"Europe","ms":139},{"region":"Europe","ms":212},{"region":"Europe","ms":94},{"region":"Europe","ms":261},{"region":"Europe","ms":180},{"region":"Europe","ms":141},{"region":"Europe","ms":166},{"region":"Europe","ms":186},{"region":"Europe","ms":155},{"region":"Europe","ms":222},{"region":"Europe","ms":118},{"region":"Europe","ms":128},{"region":"Europe","ms":214},{"region":"Europe","ms":150},{"region":"Europe","ms":109},{"region":"Europe","ms":207},{"region":"Europe","ms":248},{"region":"Europe","ms":127},{"region":"Europe","ms":92},{"region":"Europe","ms":142},{"region":"Europe","ms":141},{"region":"Europe","ms":134},{"region":"Europe","ms":243},{"region":"Europe","ms":104},{"region":"Europe","ms":231},{"region":"Europe","ms":95},{"region":"Europe","ms":113},{"region":"Europe","ms":185},{"region":"Europe","ms":220},{"region":"Europe","ms":200},{"region":"Europe","ms":167},{"region":"Europe","ms":156},{"region":"Europe","ms":157},{"region":"Europe","ms":182},{"region":"Europe","ms":140},{"region":"Europe","ms":164},{"region":"Europe","ms":181},{"region":"Europe","ms":148},{"region":"Europe","ms":194},{"region":"Europe","ms":181},{"region":"Europe","ms":300},{"region":"Europe","ms":166},{"region":"Europe","ms":128},{"region":"Europe","ms":130},{"region":"Europe","ms":148},{"region":"Europe","ms":205},{"region":"Europe","ms":132},{"region":"Europe","ms":170},{"region":"Europe","ms":282},{"region":"Europe","ms":60},{"region":"Europe","ms":100},{"region":"Europe","ms":162},{"region":"Europe","ms":171},{"region":"Europe","ms":161},{"region":"Europe","ms":128},{"region":"Europe","ms":187},{"region":"US East","ms":197},{"region":"US East","ms":155},{"region":"US East","ms":376},{"region":"US East","ms":202},{"region":"US East","ms":154},{"region":"US East","ms":176},{"region":"US East","ms":169},{"region":"US East","ms":178},{"region":"US East","ms":80},{"region":"US East","ms":157},{"region":"US East","ms":245},{"region":"US East","ms":128},{"region":"US East","ms":178},{"region":"US East","ms":241},{"region":"US East","ms":234},{"region":"US East","ms":284},{"region":"US East","ms":109},{"region":"US East","ms":163},{"region":"US East","ms":164},{"region":"US East","ms":219},{"region":"US East","ms":252},{"region":"US East","ms":81},{"region":"US East","ms":251},{"region":"US East","ms":117},{"region":"US East","ms":223},{"region":"US East","ms":116},{"region":"US East","ms":191},{"region":"US East","ms":259},{"region":"US East","ms":173},{"region":"US East","ms":192},{"region":"US East","ms":230},{"region":"US East","ms":189},{"region":"US East","ms":177},{"region":"US East","ms":287},{"region":"US East","ms":248},{"region":"US East","ms":166},{"region":"US East","ms":413},{"region":"US East","ms":129},{"region":"US East","ms":239},{"region":"US East","ms":167},{"region":"US East","ms":189},{"region":"US East","ms":224},{"region":"US East","ms":194},{"region":"US East","ms":220},{"region":"US East","ms":115},{"region":"US East","ms":115},{"region":"US East","ms":218},{"region":"US East","ms":136},{"region":"US East","ms":133},{"region":"US East","ms":117},{"region":"US East","ms":265},{"region":"US East","ms":227},{"region":"US East","ms":282},{"region":"US East","ms":137},{"region":"US East","ms":181},{"region":"US East","ms":129},{"region":"US East","ms":228},{"region":"US East","ms":292},{"region":"US East","ms":139},{"region":"US East","ms":289},{"region":"US East","ms":244},{"region":"US East","ms":172},{"region":"US East","ms":100},{"region":"US East","ms":276},{"region":"US East","ms":176},{"region":"US East","ms":151},{"region":"US East","ms":204},{"region":"US East","ms":205},{"region":"US East","ms":284},{"region":"US East","ms":133},{"region":"US East","ms":255},{"region":"US East","ms":283},{"region":"US East","ms":280},{"region":"US East","ms":172},{"region":"US East","ms":145},{"region":"US East","ms":246},{"region":"US East","ms":188},{"region":"US East","ms":188},{"region":"US East","ms":278},{"region":"US East","ms":167},{"region":"US East","ms":91},{"region":"US East","ms":161},{"region":"US East","ms":104},{"region":"US East","ms":232},{"region":"US East","ms":199},{"region":"US East","ms":151},{"region":"US East","ms":181},{"region":"US East","ms":233},{"region":"US East","ms":186},{"region":"US East","ms":270},{"region":"US East","ms":178},{"region":"US East","ms":248},{"region":"US East","ms":284},{"region":"US East","ms":294},{"region":"US East","ms":148},{"region":"US East","ms":236},{"region":"US East","ms":103},{"region":"US East","ms":131},{"region":"US East","ms":101},{"region":"US East","ms":250},{"region":"US East","ms":125},{"region":"US East","ms":181},{"region":"US East","ms":171},{"region":"US East","ms":180},{"region":"US East","ms":152},{"region":"US East","ms":194},{"region":"US East","ms":310},{"region":"US East","ms":184},{"region":"US East","ms":213},{"region":"US East","ms":245},{"region":"US East","ms":171},{"region":"US East","ms":124},{"region":"US East","ms":153},{"region":"US East","ms":250},{"region":"US East","ms":111},{"region":"US East","ms":152},{"region":"US East","ms":245},{"region":"US East","ms":230},{"region":"US East","ms":182},{"region":"US East","ms":231},{"region":"US East","ms":191},{"region":"US East","ms":127},{"region":"US East","ms":113},{"region":"US East","ms":150},{"region":"US East","ms":239},{"region":"US East","ms":153},{"region":"US East","ms":138},{"region":"US East","ms":144},{"region":"US East","ms":114},{"region":"US East","ms":175},{"region":"US East","ms":127},{"region":"US East","ms":202},{"region":"US East","ms":89},{"region":"US East","ms":200},{"region":"US East","ms":150},{"region":"US East","ms":101},{"region":"US East","ms":225},{"region":"US East","ms":167},{"region":"US East","ms":93},{"region":"US East","ms":139},{"region":"US East","ms":198},{"region":"US East","ms":158},{"region":"US East","ms":229},{"region":"US East","ms":227},{"region":"US East","ms":221},{"region":"US East","ms":200},{"region":"US East","ms":270},{"region":"US East","ms":221},{"region":"US East","ms":208},{"region":"US East","ms":97},{"region":"Asia","ms":405},{"region":"Asia","ms":487},{"region":"Asia","ms":237},{"region":"Asia","ms":219},{"region":"Asia","ms":648},{"region":"Asia","ms":123},{"region":"Asia","ms":334},{"region":"Asia","ms":805},{"region":"Asia","ms":178},{"region":"Asia","ms":369},{"region":"Asia","ms":632},{"region":"Asia","ms":256},{"region":"Asia","ms":348},{"region":"Asia","ms":406},{"region":"Asia","ms":180},{"region":"Asia","ms":260},{"region":"Asia","ms":309},{"region":"Asia","ms":392},{"region":"Asia","ms":266},{"region":"Asia","ms":248},{"region":"Asia","ms":171},{"region":"Asia","ms":230},{"region":"Asia","ms":404},{"region":"Asia","ms":283},{"region":"Asia","ms":184},{"region":"Asia","ms":185},{"region":"Asia","ms":898},{"region":"Asia","ms":452},{"region":"Asia","ms":360},{"region":"Asia","ms":84},{"region":"Asia","ms":358},{"region":"Asia","ms":336},{"region":"Asia","ms":577},{"region":"Asia","ms":328},{"region":"Asia","ms":262},{"region":"Asia","ms":342},{"region":"Asia","ms":113},{"region":"Asia","ms":431},{"region":"Asia","ms":313},{"region":"Asia","ms":197},{"region":"Asia","ms":491},{"region":"Asia","ms":610},{"region":"Asia","ms":144},{"region":"Asia","ms":200},{"region":"Asia","ms":308},{"region":"Asia","ms":294},{"region":"Asia","ms":226},{"region":"Asia","ms":174},{"region":"Asia","ms":702},{"region":"Asia","ms":431},{"region":"Asia","ms":158},{"region":"Asia","ms":148},{"region":"Asia","ms":582},{"region":"Asia","ms":422},{"region":"Asia","ms":614},{"region":"Asia","ms":389},{"region":"Asia","ms":183},{"region":"Asia","ms":304},{"region":"Asia","ms":102},{"region":"Asia","ms":193},{"region":"Asia","ms":263},{"region":"Asia","ms":342},{"region":"Asia","ms":195},{"region":"Asia","ms":256},{"region":"Asia","ms":332},{"region":"Asia","ms":320},{"region":"Asia","ms":360},{"region":"Asia","ms":297},{"region":"Asia","ms":234},{"region":"Asia","ms":386},{"region":"Asia","ms":277},{"region":"Asia","ms":186},{"region":"Asia","ms":204},{"region":"Asia","ms":270},{"region":"Asia","ms":257},{"region":"Asia","ms":290},{"region":"Asia","ms":270},{"region":"Asia","ms":293},{"region":"Asia","ms":255},{"region":"Asia","ms":154},{"region":"Asia","ms":327},{"region":"Asia","ms":434},{"region":"Asia","ms":329},{"region":"Asia","ms":248},{"region":"Asia","ms":331},{"region":"Asia","ms":175},{"region":"Asia","ms":115},{"region":"Asia","ms":278},{"region":"Asia","ms":178},{"region":"Asia","ms":377},{"region":"Asia","ms":166},{"region":"Asia","ms":83},{"region":"Asia","ms":169},{"region":"Asia","ms":550},{"region":"Asia","ms":228},{"region":"Asia","ms":146},{"region":"Asia","ms":192},{"region":"Asia","ms":342},{"region":"Asia","ms":338},{"region":"Asia","ms":293},{"region":"Asia","ms":527},{"region":"Asia","ms":372},{"region":"Asia","ms":268},{"region":"Asia","ms":354},{"region":"Asia","ms":569},{"region":"Asia","ms":419},{"region":"Asia","ms":429},{"region":"Asia","ms":166},{"region":"Asia","ms":253},{"region":"Asia","ms":376},{"region":"Asia","ms":237},{"region":"Asia","ms":437},{
…