Skip to content

Instantly share code, notes, and snippets.

@keckelt
Last active July 30, 2021 12:12
Show Gist options
  • Save keckelt/282650fa79e304ff2603b6cc682d3803 to your computer and use it in GitHub Desktop.
Save keckelt/282650fa79e304ff2603b6cc682d3803 to your computer and use it in GitHub Desktop.
Vega: Color Coded Parallel Coordinates
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "Publications planned and in progress.",
"width": 600,
"layer": [
{
"data": {"values": [
{
"paper": "Coral Application Note",
"end": "2021-08-31",
"lead": "Patrick"
},
{
"paper": "Multi-Level Embedding",
"end": "2021-09-10",
"lead": "Klaus"
},
{
"paper": "Jupyter Notebook Provenance",
"end": "2021-12-01",
"lead": "Klaus"
},
{
"paper": "Juypter Hyperparameter Tuning",
"end": "2021-12-01",
"lead": "Kai?"
},
{
"paper": "GraphTrain",
"start": "2021-09-01",
"end": "2022-03-31",
"lead": "Patrick"
},
{
"paper": "Coral: Cohort Comparison",
"start": "2021-10-01",
"end": "2022-03-31",
"lead": "Klaus"
},
{
"paper": "Coral Talk @ BioVis",
"start": "2022-04-01",
"end": "2022-05-01",
"lead": "Patrick"
},
{
"paper": "Data Ink Ratio Demonstrator",
"start": "2022-05-01",
"end": "2022-07-01",
"lead": "Klaus"
}
]},
"transform": [{
"calculate": "datum.start ? timeParse(datum.start, '%Y-%m-%d') : now()",
"as": "start2"
},{
"filter": "datum.end>now()"
}],
"mark": {"type": "bar", "tooltip": true, "cornerRadius": 8},
"encoding": {
"x": {
"field": "start2", "type": "temporal", "title": "Time",
"axis": {"ticks": false, "grid": false, "labels": false}
},
"x2": {"field": "end", "type": "temporal"},
"y": {"field": "paper", "type": "nominal", "sort": null},
"color": {"field": "lead", "type": "nominal"}
}
},
{
"data": {
"values": [
{
"journal": "Application Note (major revision)",
"deadline": "2021-10-17"
},
{
"journal": "CHI & TVCG",
"deadline": "2021-09-16"
},
{
"journal": "EuroVis Full Paper (tbd)",
"deadline": "2021-12-01"
},
{
"journal": "EuroVis Short paper (tbd)",
"deadline": "2022-03-01"
},
{
"journal": "VIS Full paper (tbd)",
"deadline": "2022-03-31"
},
{
"journal": "VIS Short paper (tbd)",
"deadline": "2022-06-01"
},
{
"journal": "BioVis Paper (tbd)",
"deadline": "2022-01-31"
},
{
"journal": "BioVis Talk (tbd)",
"deadline": "2022-05-01"
},
{
"journal": "VisActivites (tbd)",
"deadline": "2022-07-01"
}
]
},
"transform": [{
"filter": "datum.deadline>now()"
}],
"encoding": {
"x": {"field": "deadline", "type": "temporal"}
},
"layer": [
{
"mark": {"type": "rule", "strokeDash": [3,3]}
}, {
"mark": {"type": "text", "align": "right", "angle": 30},
"encoding": {
"text": {"field": "journal"},
"y": {"value": -6}
}
}, {
"mark": {"type": "text", "align": "left", "angle": 30},
"encoding": {
"text": {"field": "deadline", "type": "temporal"},
"y": {"value": 180}
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment