Skip to content

Instantly share code, notes, and snippets.

View lsh's full-sized avatar

Lukas Hermann lsh

View GitHub Profile
@lsh
lsh / spec.json
Created July 19, 2022 16:50
Vega-Lite spec from Tue Jul 19 2022
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/population.json"},
"transform": [
{"filter": "datum.year == 2000"},
{"calculate": "datum.sex == 2 ? 'Female' : 'Male'", "as": "gender"}
],
"mark": {"type": "arc", "tooltip": true},
"encoding": {
"theta": {
### A Pluto.jl notebook ###
# v0.12.6
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))