blockcharts alpha

Gallery / Distributions /

Ridgeline

How values are spread across many categories or periods (a month each), compared at a glance (ridgeline).

70.8 KB of code · core 32.5 + 11 blocks 38.3

Daily high temperatures by month, °C

Daily highs climb from about 3 °C in January to 24 °C in July; December’s vary the most.

How it is made: The same density, drawn lying down: the months on a band y, the temperature along x, and side "one" makes each curve a ridge that rises into the band above it. Ridges further down are drawn over the ones behind them.

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: 11 of the 59, 70.8 KB of code, minified, which is 33% of the 215.9 KB that the core and every block weigh together. The report file is 78.4 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.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 11 blocks 38.370.8

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/ridgeline.json report.html. Saved as page.json, it composes the same with the skill's own runtime/compose.js.

ridgeline.json

{
  "title": "Ridgeline",
  "data": {
    "weather": [
      {"month": "January", "high": 5.1},
      {"month": "January", "high": 2.5},
      {"month": "January", "high": -0.7},
      {"month": "January", "high": 7.7},
      {"month": "January", "high": 4.5},
      {"month": "January", "high": -0.1},
      {"month": "January", "high": 6.5},
      {"month": "January", "high": 4.1},
      {"month": "January", "high": -2.0},
      {"month": "January", "high": 8.2},
      {"month": "January", "high": 4.1},
      {"month": "January", "high": 5.9},
      {"month": "January", "high": 3.6},
      {"month": "January", "high": 2.5},
      {"month": "January", "high": -2.0},
      {"month": "January", "high": 6.1},
      {"month": "January", "high": 3.1},
      {"month": "January", "high": 2.1},
      {"month": "January", "high": 4.1},
      {"month": "January", "high": 3.2},
      {"month": "January", "high": 5.2},
      {"month": "January", "high": 1.8},
      {"month": "January", "high": 2.9},
      {"month": "January", "high": -3.8},
      {"month": "January", "high": 1.6},
      {"month": "January", "high": 5.2},
      {"month": "January", "high": 7.3},
      {"month": "January", "high": 1.8},
      {"month": "January", "high": 2.6},
      {"month": "January", "high": 8.1},
      {"month": "February", "high": 3.0},
      {"month": "February", "high": 6.3},
      {"month": "February", "high": 9.4},
      {"month": "February", "high": 4.1},
      {"month": "February", "high": 7.9},
      {"month": "February", "high": 1.7},
      {"month": "February", "high": 4.7},
      {"month": "February", "high": 3.8},
      {"month": "February", "high": 4.4},
      {"month": "February", "high": 7.6},
      {"month": "February", "high": 11.6},
      {"month": "February", "high": 1.9},
      {"month": "February", "high": 2.2},
      {"month": "February", "high": 5.6},
      {"month": "February", "high": 0.6},
      {"month": "February", "high": 5.6},
      {"month": "February", "high": 5.8},
      {"month": "February", "high": 3.1},
      {"month": "February", "high": 5.7},
      {"month": "February", "high": -1.0},
      {"month": "February", "high": 6.4},
      {"month": "February", "high": -0.9},
      {"month": "February", "high": 1.8},
      {"month": "February", "high": 2.2},
      {"month": "February", "high": 2.7},
      {"month": "February", "high": 6.7},
      {"month": "February", "high": 4.3},
      {"month": "February", "high": 2.7},
      {"month": "February", "high": 5.7},
      {"month": "February", "high": 9.1},
      {"month": "March", "high": 8.0},
      {"month": "March", "high": 9.0},
      {"month": "March", "high": 11.2},
      {"month": "March", "high": 8.7},
      {"month": "March", "high": 4.7},
      {"month": "March", "high": 14.5},
      {"month": "March", "high": 13.7},
      {"month": "March", "high": 2.8},
      {"month": "March", "high": 7.9},
      {"month": "March", "high": 9.1},
      {"month": "March", "high": 10.5},
      {"month": "March", "high": 9.7},
      {"month": "March", "high": 7.3},
      {"month": "March", "high": 5.3},
      {"month": "March", "high": 8.3},
      {"month": "March", "high": 10.7},
      {"month": "March", "high": 5.2},
      {"month": "March", "high": 5.3},
      {"month": "March", "high": 7.9},
      {"month": "March", "high": 3.0},
      {"month": "March", "high": 7.3},
      {"month": "March", "high": 6.9},
      {"month": "March", "high": 9.2},
      {"month": "March", "high": 6.2},
      {"month": "March", "high": 5.7},
      {"month": "March", "high": 7.0},
      {"month": "March", "high": 7.9},
      {"month": "March", "high": 6.3},
      {"month": "March", "high": 8.0},
      {"month": "March", "high": 10.0},
      {"month": "April", "high": 16.1},
      {"month": "April", "high": 17.4},
      {"month": "April", "high": 11.0},
      {"month": "April", "high": 11.9},
      {"month": "April", "high": 6.5},
      {"month": "April", "high": 17.9},
      {"month": "April", "high": 11.1},
      {"month": "April", "high": 12.9},
      {"month": "April", "high": 14.4},
      {"month": "April", "high": 9.5},
      {"month": "April", "high": 14.2},
      {"month": "April", "high": 12.9},
      {"month": "April", "high": 8.3},
      {"month": "April", "high": 13.8},
      {"month": "April", "high": 16.1},
      {"month": "April", "high": 8.1},
      {"month": "April", "high": 15.1},
      {"month": "April", "high": 13.5},
      {"month": "April", "high": 14.2},
      {"month": "April", "high": 14.1},
      {"month": "April", "high": 16.4},
      {"month": "April", "high": 12.4},
      {"month": "April", "high": 15.3},
      {"month": "April", "high": 11.9},
      {"month": "April", "high": 14.9},
      {"month": "April", "high": 10.9},
      {"month": "April", "high": 12.7},
      {"month": "April", "high": 17.5},
      {"month": "April", "high": 14.2},
      {"month": "April", "high": 12.6},
      {"month": "May", "high": 14.0},
      {"month": "May", "high": 14.9},
      {"month": "May", "high": 17.5},
      {"month": "May", "high": 19.4},
      {"month": "May", "high": 18.1},
      {"month": "May", "high": 18.4},
      {"month": "May", "high": 16.9},
      {"month": "May", "high": 20.5},
      {"month": "May", "high": 16.0},
      {"month": "May", "high": 15.6},
      {"month": "May", "high": 19.3},
      {"month": "May", "high": 17.2},
      {"month": "May", "high": 16.3},
      {"month": "May", "high": 15.5},
      {"month": "May", "high": 16.3},
      {"month": "May", "high": 18.6},
      {"month": "May", "high": 17.9},
      {"month": "May", "high": 13.9},
      {"month": "May", "high": 18.1},
      {"month": "May", "high": 17.5},
      {"month": "May", "high": 14.4},
      {"month": "May", "high": 19.0},
      {"month": "May", "high": 16.3},
      {"month": "May", "high": 16.1},
      {"month": "May", "high": 19.1},
      {"month": "May", "high": 20.4},
      {"month": "May", "high": 15.2},
      {"month": "May", "high": 18.1},
      {"month": "May", "high": 14.7},
      {"month": "May", "high": 23.0},
      {"month": "June", "high": 19.7},
      {"month": "June", "high": 24.1},
      {"month": "June", "high": 19.3},
      {"month": "June", "high": 23.1},
      {"month": "June", "high": 26.8},
      {"month": "June", "high": 14.4},
      {"month": "June", "high": 19.9},
      {"month": "June", "high": 22.3},
      {"month": "June", "high": 20.8},
      {"month": "June", "high": 19.3},
      {"month": "June", "high": 26.6},
      {"month": "June", "high": 21.2},
      {"month": "June", "high": 16.7},
      {"month": "June", "high": 23.2},
      {"month": "June", "high": 16.5},
      {"month": "June", "high": 24.0},
      {"month": "June", "high": 19.5},
      {"month": "June", "high": 21.4},
      {"month": "June", "high": 24.3},
      {"month": "June", "high": 21.3},
      {"month": "June", "high": 17.4},
      {"month": "June", "high": 16.6},
      {"month": "June", "high": 24.1},
      {"month": "June", "high": 22.9},
      {"month": "June", "high": 18.9},
      {"month": "June", "high": 23.2},
      {"month": "June", "high": 22.3},
      {"month": "June", "high": 22.7},
      {"month": "June", "high": 15.1},
      {"month": "June", "high": 20.2},
      {"month": "July", "high": 26.3},
      {"month": "July", "high": 25.9},
      {"month": "July", "high": 26.3},
      {"month": "July", "high": 17.6},
      {"month": "July", "high": 24.4},
      {"month": "July", "high": 25.3},
      {"month": "July", "high": 30.6},
      {"month": "July", "high": 21.5},
      {"month": "July", "high": 23.1},
      {"month": "July", "high": 24.1},
      {"month": "July", "high": 26.3},
      {"month": "July", "high": 22.8},
      {"month": "July", "high": 27.0},
      {"month": "July", "high": 22.0},
      {"month": "July", "high": 24.7},
      {"month": "July", "high": 22.6},
      {"month": "July", "high": 24.4},
      {"month": "July", "high": 22.2},
      {"month": "July", "high": 19.8},
      {"month": "July", "high": 26.8},
      {"month": "July", "high": 24.8},
      {"month": "July", "high": 22.5},
      {"month": "July", "high": 24.5},
      {"month": "July", "high": 26.6},
      {"month": "July", "high": 21.5},
      {"month": "July", "high": 23.7},
      {"month": "July", "high": 25.4},
      {"month": "July", "high": 25.4},
      {"month": "July", "high": 23.1},
      {"month": "July", "high": 18.5},
      {"month": "August", "high": 26.2},
      {"month": "August", "high": 23.9},
      {"month": "August", "high": 23.0},
      {"month": "August", "high": 22.3},
      {"month": "August", "high": 23.7},
      {"month": "August", "high": 21.9},
      {"month": "August", "high": 20.3},
      {"month": "August", "high": 21.1},
      {"month": "August", "high": 21.4},
      {"month": "August", "high": 21.4},
      {"month": "August", "high": 20.0},
      {"month": "August", "high": 24.7},
      {"month": "August", "high": 19.6},
      {"month": "August", "high": 24.7},
      {"month": "August", "high": 20.4},
      {"month": "August", "high": 23.9},
      {"month": "August", "high": 26.6},
      {"month": "August", "high": 23.5},
      {"month": "August", "high": 21.1},
      {"month": "August", "high": 23.1},
      {"month": "August", "high": 23.4},
      {"month": "August", "high": 18.5},
      {"month": "August", "high": 21.4},
      {"month": "August", "high": 23.4},
      {"month": "August", "high": 21.8},
      {"month": "August", "high": 23.2},
      {"month": "August", "high": 24.9},
      {"month": "August", "high": 25.0},
      {"month": "August", "high": 25.4},
      {"month": "August", "high": 24.5},
      {"month": "September", "high": 18.3},
      {"month": "September", "high": 19.0},
      {"month": "September", "high": 18.3},
      {"month": "September", "high": 18.2},
      {"month": "September", "high": 18.5},
      {"month": "September", "high": 14.5},
      {"month": "September", "high": 18.1},
      {"month": "September", "high": 18.9},
      {"month": "September", "high": 16.5},
      {"month": "September", "high": 18.9},
      {"month": "September", "high": 20.3},
      {"month": "September", "high": 18.6},
      {"month": "September", "high": 24.4},
      {"month": "September", "high": 12.2},
      {"month": "September", "high": 18.5},
      {"month": "September", "high": 14.3},
      {"month": "September", "high": 21.5},
      {"month": "September", "high": 25.9},
      {"month": "September", "high": 12.5},
      {"month": "September", "high": 19.3},
      {"month": "September", "high": 20.3},
      {"month": "September", "high": 18.2},
      {"month": "September", "high": 20.4},
      {"month": "September", "high": 13.2},
      {"month": "September", "high": 21.2},
      {"month": "September", "high": 20.0},
      {"month": "September", "high": 19.1},
      {"month": "September", "high": 17.5},
      {"month": "September", "high": 20.7},
      {"month": "September", "high": 17.7},
      {"month": "October", "high": 13.6},
      {"month": "October", "high": 11.7},
      {"month": "October", "high": 7.2},
      {"month": "October", "high": 12.9},
      {"month": "October", "high": 13.5},
      {"month": "October", "high": 15.0},
      {"month": "October", "high": 10.7},
      {"month": "October", "high": 12.9},
      {"month": "October", "high": 14.6},
      {"month": "October", "high": 13.4},
      {"month": "October", "high": 16.2},
      {"month": "October", "high": 18.2},
      {"month": "October", "high": 10.6},
      {"month": "October", "high": 8.0},
      {"month": "October", "high": 15.2},
      {"month": "October", "high": 17.0},
      {"month": "October", "high": 15.4},
      {"month": "October", "high": 15.1},
      {"month": "October", "high": 11.4},
      {"month": "October", "high": 11.1},
      {"month": "October", "high": 15.3},
      {"month": "October", "high": 10.6},
      {"month": "October", "high": 8.3},
      {"month": "October", "high": 10.4},
      {"month": "October", "high": 19.5},
      {"month": "October", "high": 18.0},
      {"month": "October", "high": 11.2},
      {"month": "October", "high": 11.1},
      {"month": "October", "high": 13.6},
      {"month": "October", "high": 11.1},
      {"month": "November", "high": 11.4},
      {"month": "November", "high": 7.8},
      {"month": "November", "high": 5.2},
      {"month": "November", "high": 11.4},
      {"month": "November", "high": 6.5},
      {"month": "November", "high": 8.6},
      {"month": "November", "high": 8.0},
      {"month": "November", "high": 7.2},
      {"month": "November", "high": 8.8},
      {"month": "November", "high": 6.2},
      {"month": "November", "high": 3.2},
      {"month": "November", "high": 2.3},
      {"month": "November", "high": 4.7},
      {"month": "November", "high": 6.0},
      {"month": "November", "high": 7.9},
      {"month": "November", "high": 8.1},
      {"month": "November", "high": 9.4},
      {"month": "November", "high": 8.3},
      {"month": "November", "high": 5.9},
      {"month": "November", "high": 6.2},
      {"month": "November", "high": 2.5},
      {"month": "November", "high": 7.6},
      {"month": "November", "high": 9.3},
      {"month": "November", "high": 9.4},
      {"month": "November", "high": 7.7},
      {"month": "November", "high": 7.5},
      {"month": "November", "high": 10.4},
      {"month": "November", "high": 8.0},
      {"month": "November", "high": 9.9},
      {"month": "November", "high": 9.5},
      {"month": "December", "high": 4.7},
      {"month": "December", "high": 8.2},
      {"month": "December", "high": 2.2},
      {"month": "December", "high": 2.9},
      {"month": "December", "high": 1.4},
      {"month": "December", "high": 1.4},
      {"month": "December", "high": 9.0},
      {"month": "December", "high": 9.6},
      {"month": "December", "high": 4.1},
      {"month": "December", "high": 5.8},
      {"month": "December", "high": 7.8},
      {"month": "December", "high": 6.6},
      {"month": "December", "high": 7.9},
      {"month": "December", "high": -0.0},
      {"month": "December", "high": 2.0},
      {"month": "December", "high": 5.4},
      {"month": "December", "high": 8.6},
      {"month": "December", "high": 4.3},
      {"month": "December", "high": 1.3},
      {"month": "December", "high": 2.9},
      {"month": "December", "high": 1.9},
      {"month": "December", "high": 1.3},
      {"month": "December", "high": 8.8},
      {"month": "December", "high": 2.0},
      {"month": "December", "high": 4.1},
      {"month": "December", "high": 10.9},
      {"month": "December", "high": 7.8},
      {"month": "December", "high": 5.1},
      {"month": "December", "high": 2.0},
      {"month": "December", "high": 5.3}
    ]
  },
  "charts": [
    {
      "title": "Daily high temperatures by month, °C",
      "note": "Daily highs climb from about 3 °C in January to 24 °C in July; December’s vary the most.",
      "how": "The same density, drawn lying down: the months on a band y, the temperature along x, and side \"one\" makes each curve a ridge that rises into the band above it. Ridges further down are drawn over the ones behind them.",
      "spec": {
        "data": "weather",
        "size": [
          720,
          460
        ],
        "padding": {
          "top": 40
        },
        "transforms": [
          {
            "type": "density",
            "field": "high",
            "group": "month"
          }
        ],
        "scales": {
          "y": {
            "type": "band",
            "paddingInner": 0
          },
          "x": {
            "type": "linear"
          }
        },
        "guides": [
          {
            "type": "grid",
            "scale": "x"
          },
          {
            "type": "axis",
            "scale": "y"
          },
          {
            "type": "axis",
            "scale": "x",
            "format": {
              "maximumFractionDigits": 0,
              "suffix": "°"
            }
          }
        ],
        "marks": [
          {
            "type": "violin",
            "x": "value",
            "y": "month",
            "density": "density",
            "side": "one",
            "fill": "var(--bc-c0, #3a6fe4)"
          }
        ],
        "interaction": [
          {
            "type": "tooltip",
            "fields": [
              "value",
              "count"
            ],
            "labels": {
              "value": "°C",
              "count": "days"
            },
            "formats": {
              "value": {
                "maximumFractionDigits": 1
              }
            }
          }
        ]
      }
    }
  ]
}

The report the composer makes from it is one standalone file (78.4 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.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">
{"weather":[{"month":"January","high":5.1},{"month":"January","high":2.5},{"month":"January","high":-0.7},{"month":"January","high":7.7},{"month":"January","high":4.5},{"month":"January","high":-0.1},{"month":"January","high":6.5},{"month":"January","high":4.1},{"month":"January","high":-2},{"month":"January","high":8.2},{"month":"January","high":4.1},{"month":"January","high":5.9},{"month":"January","high":3.6},{"month":"January","high":2.5},{"month":"January","high":-2},{"month":"January","high":6.1},{"month":"January","high":3.1},{"month":"January","high":2.1},{"month":"January","high":4.1},{"month":"January","high":3.2},{"month":"January","high":5.2},{"month":"January","high":1.8},{"month":"January","high":2.9},{"month":"January","high":-3.8},{"month":"January","high":1.6},{"month":"January","high":5.2},{"month":"January","high":7.3},{"month":"January","high":1.8},{"month":"January","high":2.6},{"month":"January","high":8.1},{"month":"February","high":3},{"month":"February","high":6.3},{"month":"February","high":9.4},{"month":"February","high":4.1},{"month":"February","high":7.9},{"month":"February","high":1.7},{"month":"February","high":4.7},{"month":"February","high":3.8},{"month":"February","high":4.4},{"month":"February","high":7.6},{"month":"February","high":11.6},{"month":"February","high":1.9},{"month":"February","high":2.2},{"month":"February","high":5.6},{"month":"February","high":0.6},{"month":"February","high":5.6},{"month":"February","high":5.8},{"month":"February","high":3.1},{"month":"February","high":5.7},{"month":"February","high":-1},{"month":"February","high":6.4},{"month":"February","high":-0.9},{"month":"February","high":1.8},{"month":"February","high":2.2},{"month":"February","high":2.7},{"month":"February","high":6.7},{"month":"February","high":4.3},{"month":"February","high":2.7},{"month":"February","high":5.7},{"month":"February","high":9.1},{"month":"March","high":8},{"month":"March","high":9},{"month":"March","high":11.2},{"month":"March","high":8.7},{"month":"March","high":4.7},{"month":"March","high":14.5},{"month":"March","high":13.7},{"month":"March","high":2.8},{"month":"March","high":7.9},{"month":"March","high":9.1},{"month":"March","high":10.5},{"month":"March","high":9.7},{"month":"March","high":7.3},{"month":"March","high":5.3},{"month":"March","high":8.3},{"month":"March","high":10.7},{"month":"March","high":5.2},{"month":"March","high":5.3},{"month":"March","high":7.9},{"month":"March","high":3},{"month":"March","high":7.3},{"month":"March","high":6.9},{"month":"March","high":9.2},{"month":"March","high":6.2},{"month":"March","high":5.7},{"month":"March","high":7},{"month":"March","high":7.9},{"month":"March","high":6.3},{"month":"March","high":8},{"month":"March","high":10},{"month":"April","high":16.1},{"month":"April","high":17.4},{"month":"April","high":11},{"month":"April","high":11.9},{"month":"April","high":6.5},{"month":"April","high":17.9},{"month":"April","high":11.1},{"month":"April","high":12.9},{"month":"April","high":14.4},{"month":"April","high":9.5},{"month":"April","high":14.2},{"month":"April","high":12.9},{"month":"April","high":8.3},{"month":"April","high":13.8},{"month":"April","high":16.1},{"month":"April","high":8.1},{"month":"April","high":15.1},{"month":"April","high":13.5},{"month":"April","high":14.2},{"month":"April","high":14.1},{"month":"April","high":16.4},{"month":"April","high":12.4},{"month":"April","high":15.3},{"month":"April","high":11.9},{"month":"April","high":14.9},{"month":"April","high":10.9},{"month":"April","high":12.7},{"month":"April","high":17.5},{"month":"April","high":14.2},{"month":"April","high":12.6},{"month":"May","high":14},{"month":"May","high":14.9},{"month":"May","high":17.5},{"month":"May","high":19.4},{"month":"May","high":18.1},{"month":"May","high":18.4},{"month":"May","high":16.9},{"month":"May","high":20.5},{"month":"May","high":16},{"month":"May","high":15.6},{"month":"May","high":19.3},{"month":"May","high":17.2},{"month":"May","high":16.3},{"month":"May","high":15.5},{"month":"May","high":16.3},{"month":"May","high":18.6},{"month":"May","high":17.9},{"month":"May","high":13.9},{"month":"May","high":18.1},{"month":"May","high":17.5},{"month":"May","high":14.4},{"month":"May","high":19},{"month":"May","high":16.3},{"month":"May","high":16.1},{"month":"May","high":19.1},{"month":"May","high":20.4},{"month":"May","high":15.2},{"month":"May","high":18.1},{"month":"May","high":14.7},{"month":"May","high":23},{"month":"June","high":19.7},{"month":"June","high":24.1},{"month":"June","high":19.3},{"month":"June","high":23.1},{"month":"June","high":26.8},{"month":"June","high":14.4},{"month":"June","high":19.9},{"month":"June","high":22.3},{"month":"June","high":20.8},{"month":"June","high":19.3},{"month":"June","high":26.6},{"month":"June","high":21.2},{"month":"June","high":16.7},{"month":"June","high":23.2},{"month":"June","high":16.5},{"month":"June","high":24},{"month":"June","high":19.5},{"month":"June","high":21.4},{"month":"June","high":24.3},{"month":"June","high":21.3},{"month":"June","high":17.4},{"month":"June","high":16.6},{"month":"June","high":24.1},{"month":"June","high":22.9},{"month":"June","high":18.9},{"month":"June","high":23.2},{"month":"June","high":22.3},{"month":"June","high":22.7},{"month":"June","high":15.1},{"month":"June","high":20.2},{"month":"July","high":26.3},{"month":"July","high":25.9},{"month":"July","high":26.3},{"month":"July","high":17.6},{"month":"July","high":24.4},{"month":"July","high":25.3},{"month":"July","high":30.6},{"month":"July","high":21.5},{"month":"July","high":23.1},{"month":"July","high":24.1},{"month":"July","high":26.3},{"month":"July","high":22.8},{"month":"July","high":27},{"month":"July","high":22},{"month":"July","high":24.7},{"month":"July","high":22.6},{"month":"July","high":24.4},{"month":"July","high":22.2},{"month":"July","high":19.8},{"month":"July","high":26.8},{"month":"July","high":24.8},{"month":"July","high":22.5},{"month":"July","high":24.5},{"month":"July","high":26.6},{"month":"July","high":21.5},{"month":"July","high":23.7},{"month":"July","high":25.4},{"month":"July","high":25.4},{"month":"July","high":23.1},{"month":"July","high":18.5},{"month":"August","high":26.2},{"month":"August","high":23.9},{"month":"August","high":23},{"month":"August","high":22.3},{"month":"August","high":23.7},{"month":"August","high":21.9},{"month":"August","high":20.3},{"month":"August","high":21.1},{"month":"August","high":21.4},{"month":"August","high":21.4},{"month":"August","high":20},{"month":"August","high":24.7},{"month":"August","high":19.6},{"month":"August","high":24.7},{"month":"August","high":20.4},{"month":"August","high":23.9},{"month":"August","high":26.6},{"month":"August","high":23.5},{"month":"August","high":21.1},{"month":"August","high":23.1},{"month":"August","high":23.4},{"month":"August","high":18.5},{"month":"August","high":21.4},{"month":"August","high":23.4},{"month":"August","high":21.8},{"month":"August","high":23.2},{"month":"August","high":24.9},{"month":"August","high":25},{"month":"August","high":25.4},{"month":"August","high":24.5},{"month":"September","high":18.3},{"month":"September","high":19},{"month":"September","high":18.3},{"month":"September","high":18.2},{"month":"September","high":18.5},{"month":"September","high":14.5},{"month":"September","high":18.1},{"month":"September","high":18.9},{"month":"September","high":16.5},{"month":"September","high":18.9},{"month":"September","high":20.3},{"month":"September","high":18.6},{"month":"September","high":24.4},{"month":"September","high":12.2},{"month":"September","high":18.5},{"month":"September","high":14.3},{"month":"September","high":21.5},{"month":"September","high":25.9},{"month":"September","high":12.5},{"month":"September","high":19.3},{"month":"September","high":20.3},{"month":"September","high":18.2},{"month":"September","high":20.4},{"month":"September","high":13.2},{"month":"September","high":21.2},{"month":"September","high":20},{"month":"September","high":19.1},{"month":"September","high":17.5},{"month":"September","high":20.7},{"month":"September","high":17.7},{"month":"October","high":13.6},{"month":"October","high":11.7},{"month":"October","high":7.2},{"month":"October","high":12.9},{"month":"October","high":13.5},{"month":"October","high":15},{"month":"October","high":10.7},{"month":"October","high":12.9},{"month":"October","high":14.6},{"month":"October","high":13.4},{"month":"October","high":16.2},{"month":"October","high":18.2},{"month":"October","high":10.6},{"month":"October","high":8},{"month":"October","high":15.2},{"month":"October","high":17},{"month":"October","high":15.4},{"month":"October","high":15.1},{"month":"October","high":11.4},{"month":"October","high":11.1},{"month":"October","high":15.3},{"month":"October","high":10.6},{"month":"October","high":8.3},{"month":"October","high":10.4},{"month":"October","high":19.5},{"month":"October","high":18},{"month":"October","high":11.2},{"month":"October","high":11.1},{"month":"October","high":13.6},{"month":"October","high":11.1},{"month":"November","high":11.4},{"month":"November","high":7.8},{"month":"November","high":5.2},{"month":"November","high":11.4},{"month":"November","high":6.5},{"month":"November","high":8.6},{"month":"November","high":8},{"month":"November","high":7.2},{"month":"November","high":8.8},{"month":"November","high":6.2},{"month":"November","high":3.2},{"month":"November","high":2.3},{"month":"November","high":4.7},{"month":"November","high":6},{"month":"November","high":7.9},{"month":"November","high":8.1},{"month":"November","high":9.4},{"month":"November","high":8.3},{"month":"November","high":5.9},{"month":"November","high":6.2},{"month":"November","high":2.5},{"month":"November","high":7.6},{"month":"November","high":9.3},{"month":"November","high":9.4},{"month":"November","high":7.7},{"month":"November","high":7.5},{"month":"November","high":10.4},{"month":"November","high":8},{"month":"November","high":9.9},{"month":"November","high":9.5},{"month":"December","high":4.7},{"month":"December","high":8.2},{"month":"December","high":2.2},{"month":"December","high":2.9},{"month":"December","high":1.4},{"month":"December","high":1.4},{"month":"December","high":9},{"month":"December","high":9.6},{"month":"December","high":4.1},{"month":"December","high":5.8},{"month":"December","high":7.8},{"month":"December","high":6.6},{"month":"December","high":7.9},{"month":"December","high":0},{"month":"December","high":2},{"month":"December","high":5.4},{"month":"December","high":8.6},{"month":"December","high":4.3},{"month":"December","high":1.3},{"month":"December","high":2.9},{"month":"December","high":1.9},{"month":"December","high":1.3},{"month":"December","high":8.8},{"month":"December","high":2},{"month":"December","high":4.1},{"month":"December","high":10.9},{"month":"December","high":7.8},{"month":"December","high":5.1},{"month":"December","high":2},{"month":"December","high":5.3}]}
</script>

<script type="application/json" data-bc-chart>
{
  "data": "weather",
  "size": [
    720,
    460
  ],
  "padding": {
    "top": 40
  },
  "transforms": [
    {
      "type": "density",
      "field": "high",
      "group": "month"
    }
  ],
  "scales": {
    "y": {
      "type": "band",
      "paddingInner": 0
    },
    "x": {
      "type": "linear"
    }
  },
  "guides": [
    {
      "type": "grid",
      "scale": "x"
    },
    {
      "type": "axis",
      "scale": "y"
    },
    {
      "type": "axis",
      "scale": "x",
      "format": {
        "maximumFractionDigits": 0,
        "suffix": "°"
      }
    }
  ],
  "marks": [
    {
      "type": "violin",
      "x": "value",
      "y": "month",
      "density": "density",
      "side": "one",
      "fill": "var(--bc-c0, #3a6fe4)"
    }
  ],
  "interacti
…