Last active
June 23, 2019 16:20
-
-
Save iaindillingham/f592ceee43b6a83d5614de5636be514e to your computer and use it in GitHub Desktop.
Reporting a potential bug in Vega's pivot transform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dimension | metric | |
---|---|---|
A | 1 | |
A | 1 | |
B | 2 | |
B | 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dimension | metric | |
---|---|---|
C | 3 | |
C | 3 | |
D | 4 | |
D | 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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