Skip to content

Instantly share code, notes, and snippets.

@iaindillingham
Last active June 23, 2019 16:20
Show Gist options
  • Save iaindillingham/f592ceee43b6a83d5614de5636be514e to your computer and use it in GitHub Desktop.
Save iaindillingham/f592ceee43b6a83d5614de5636be514e to your computer and use it in GitHub Desktop.
Reporting a potential bug in Vega's pivot transform
dimension metric
A 1
A 1
B 2
B 2
dimension metric
C 3
C 3
D 4
D 4
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"signals": [
{
"name": "url",
"bind": {
"input": "select",
"options": [
"https://gist.githubusercontent.com/iaindillingham/f592ceee43b6a83d5614de5636be514e/raw/438d7b403c079c78cd6837ff633c18b33130105b/df1.csv",
"https://gist.githubusercontent.com/iaindillingham/f592ceee43b6a83d5614de5636be514e/raw/438d7b403c079c78cd6837ff633c18b33130105b/df2.csv"
]
},
"value": "https://gist.githubusercontent.com/iaindillingham/f592ceee43b6a83d5614de5636be514e/raw/438d7b403c079c78cd6837ff633c18b33130105b/df1.csv"
}
],
"data": [
{
"name": "table",
"format": {
"type": "csv"
},
"url": {
"signal": "url"
},
"transform": [
{
"type": "pivot",
"field": "dimension",
"value": "metric"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment