Skip to content

Instantly share code, notes, and snippets.

View alex-rind's full-sized avatar

Alexander Rind alex-rind

View GitHub Profile
@alex-rind
alex-rind / spec.json
Last active May 7, 2021 16:11
scatter plot of blood pressure measurement with size and shape
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "scatter plot of blood pressure measurement with size and shape",
"width": 300,
"height": 180,
"data": {
"values": [
{"sex": "male", "BP systolic": 120, "BP diastolic": 80, "glucose": 190, "bmi": 28},
{"sex": "male", "BP systolic": 130, "BP diastolic": 90, "glucose": 95, "bmi": 24},
{"sex": "male", "BP systolic": 160, "BP diastolic": 110, "glucose": 150, "bmi": 38},
@alex-rind
alex-rind / spec.json
Last active May 7, 2021 16:29
scatter plot of blood pressure measurement with target range
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "scatter plot of blood pressure measurement with target range",
"width": 300,
"height": 180,
"padding": {"left": 5, "top": 5, "right": 50, "bottom": 5},
"data": {
"values": [
{"sex": "male", "BP systolic": 120, "BP diastolic": 80, "glucose": 190, "bmi": 28},
{"sex": "male", "BP systolic": 130, "BP diastolic": 90, "glucose": 95, "bmi": 24},
@alex-rind
alex-rind / spec.json
Created April 30, 2021 16:22
scatter plot of diabetes patients with healthy area
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "scatter plot of diabetes patients",
"width": 500,
"data": {
"values": [
{"sex": "male", "glucose": 190, "bmi": 28},
{"sex": "male", "glucose": 95, "bmi": 24},
{"sex": "male", "glucose": 150, "bmi": 34},
{"sex": "female", "glucose": 80, "bmi": 28},
@alex-rind
alex-rind / spec.json
Last active March 5, 2021 15:31
Vega-Lite ParCoord Vollimunisierte Mar 05 2021
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Anteile der Vollimmunisierten an der Bevölkerungszahl der jeweiligen Altersgruppe in Prozent (via ORF). Though Vega-Lite supports only one scale per axes, one can create a parallel coordinate plot by folding variables, using `joinaggregate` to normalize their values and using ticks and rules to manually create axes.",
"data": {
"values":
[
{
"Gebiet": "Kärnten",
"16-24": 0.44,
"25-34": 1.31,
@alex-rind
alex-rind / .block
Last active September 25, 2020 21:52
d3-ez : Polar Area Chart Example
license: mit
@alex-rind
alex-rind / .block
Last active February 28, 2020 13:02
Adjacency Matrix from Array Literals smaller data
license: mit
@alex-rind
alex-rind / .block
Last active February 28, 2020 09:38
Bar Chart in D3 v5
license: gpl-3.0
@alex-rind
alex-rind / .block
Last active February 26, 2020 17:54
Vega-Lite Offset Horizon Graph
license: bsd-3-clause
@alex-rind
alex-rind / .block
Last active October 11, 2019 12:11
Bar Chart in D3 v5 w/ our data
license: gpl-3.0
@alex-rind
alex-rind / .block
Created October 11, 2019 12:04
Diabetes Scatter Plot w/ Label
license: mit