Skip to content

Instantly share code, notes, and snippets.

View domoritz's full-sized avatar
📊
charting new territory

Dominik Moritz domoritz

📊
charting new territory
View GitHub Profile
@domoritz
domoritz / spec.json
Last active September 28, 2020 21:51
Vega tooltip with images
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"padding": 5,
"height": 100,
"data": [
{
"name": "data",
"values": [
{"img": "data/ffox.png"},
{"img": "data/gimp.png"},
@domoritz
domoritz / spec.json
Last active May 8, 2020 17:05
Vega-Lite spec from Fri May 08 2020
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": 43},
{"a": "D", "b": 91}, {"a": "E", "b": 81}, {"a": "F", "b": 53},
{"a": "G", "b": 19}, {"a": "H", "b": 87}, {"a": "I", "b": 52}
]
},
@domoritz
domoritz / .block
Last active April 12, 2020 20:17
Vega-Lite Locale Example
license: bsd-3-clause
@domoritz
domoritz / README.md
Last active April 10, 2020 00:04
Accessible charts

Examples of accessible charts generated with Vega.

@domoritz
domoritz / .block
Last active April 7, 2020 00:47
Vega updates not queued
license: mit
license: mit
@domoritz
domoritz / schema.json
Last active January 29, 2020 21:17
Schema with encoded refs
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Foo<number>": {
"type": "object",
"properties": {"q1": {"enum": ["x1", "x2"]}}
}
},
"type": "object",
"properties": {
@domoritz
domoritz / .block
Last active December 3, 2019 22:48
Vega Pacman
We couldn’t find that file to show.
@domoritz
domoritz / .block
Last active November 26, 2019 20:13
Memory leak
license: mit
@domoritz
domoritz / .block
Last active August 30, 2019 18:53
Vega-Lite listener
license: bsd-3-clause