Skip to content

Instantly share code, notes, and snippets.

@jartigag
Created November 22, 2021 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jartigag/5cd5e075bcd09b783246ee56c10154db to your computer and use it in GitHub Desktop.
Save jartigag/5cd5e075bcd09b783246ee56c10154db to your computer and use it in GitHub Desktop.
lichess_eval_games
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"width": 600,
"height": 400,
"data": {
"url": "https://api.tinybird.co/v0/sql?q=SELECT%20toStartOfDay(date)%2Ccount(*)%20FROM%20lichess_2020_eval_games%20group%20by%20toStartOfDay(date)%20order%20by%20toStartOfDay(date)%20desc%20%0A%20FORMAT%20CSVWithNames&token=p.eyJ1IjogIjNjYTZlNjZkLTBkZmItNGU4MS1hYWYyLWE5Y2QyMTA2NzVjNiIsICJpZCI6ICIxMTcwMzJiNS03N2Q1LTQ3NjEtODVhYy1lZTVkMWJiYzYyOTIifQ.dp6TJBEfgh-I_BS7DSxxTd-icd1Oyam4hg3yTXAde7w&pipeline=rango_temporal_datos_1563_copy",
"format": {
"type": "csv",
"parse": {
"count()": "number"
}
}
},
"mark": "bar",
"encoding": {
"x": {
"field": "toStartOfDay(date)",
"type": "temporal",
"title": "day"
},
"y": {"aggregate": "sum", "field": "count()", "title": "count"},
"tooltip": [
{
"field": "toStartOfDay(date)",
"type": "temporal",
"title": "day",
"timeUnit": "utcyearmonthdatehoursminutes"
},
{
"field": "count()",
"title": "count",
"type": "quantitative"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment