Skip to content

Instantly share code, notes, and snippets.

@starsinmypockets
Created July 22, 2019 19:30
Show Gist options
  • Save starsinmypockets/594563e3936344872419da9f612185a8 to your computer and use it in GitHub Desktop.
Save starsinmypockets/594563e3936344872419da9f612185a8 to your computer and use it in GitHub Desktop.
var config = {
widgets: [
{
"elementId": "testWidget",
"view": {
"title": "Economy",
"legend": "Recent unemployment rate",
"resources": [
{
"datasetId": "unemployment",
"name": "unemployment-rate",
"transform": [
{
"type": "aggregate",
"fields": [
"date"
],
"operations": [
"argmax"
]
}
]
}
],
"specType": "figure",
"spec": {
"fieldName": "unemployment_rate",
"suffix": "%"
}
}
}
],
datasets: ["https://datahub.io/london/unemployment"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment