Created
January 19, 2021 12:45
-
-
Save jackliusr/e557c4ea0db6b921a1765b530309ad6f to your computer and use it in GitHub Desktop.
vega-lite visualize ckan data
This file contains hidden or 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-lite/v4.json", | |
"data": { | |
"url": "https://data.gov.sg/api/action/datastore_search?resource_id=4ad866a7-c43a-4645-87fd-fc961c9de78a", | |
"format": { "type": "json","property": "result.records"} | |
}, | |
"mark": "line", | |
"encoding": { | |
"x": {"field": "year", "type": "nominal"}, | |
"y": {"field": "enrolment", "type": "quantitative"} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment