Skip to content

Instantly share code, notes, and snippets.

@djbarnwal
Created April 4, 2024 11:24
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 djbarnwal/5955434843d1ca6ede9f71429aeb39de to your computer and use it in GitHub Desktop.
Save djbarnwal/5955434843d1ca6ede9f71429aeb39de to your computer and use it in GitHub Desktop.
Vega-Lite selection bug
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A stacked area chart.",
"width": 1000,
"height": 400,
"data": {
"values": [
{
"dimension": "Department of Transportation",
"ts": "2020-12-20T18:30:00.000Z",
"ts_position": "2020-12-24T06:30:00.000Z",
"bin": 0,
"measure": 828
},
{
"dimension": "Department of Transportation",
"ts": "2020-12-27T18:30:00.000Z",
"ts_position": "2020-12-31T06:30:00.000Z",
"bin": 0,
"measure": 1117
},
{
"dimension": "Department of Transportation",
"ts": "2021-01-03T18:30:00.000Z",
"ts_position": "2021-01-07T06:30:00.000Z",
"bin": 0,
"measure": 620
},
{
"dimension": "Department of Transportation",
"ts": "2021-01-10T18:30:00.000Z",
"ts_position": "2021-01-14T06:30:00.000Z",
"bin": 0,
"measure": 90
},
{
"dimension": "Department of Transportation",
"ts": "2021-01-17T18:30:00.000Z",
"ts_position": "2021-01-21T06:30:00.000Z",
"bin": 0,
"measure": 81
},
{
"dimension": "Department of Transportation",
"ts": "2021-01-24T18:30:00.000Z",
"ts_position": "2021-01-28T06:30:00.000Z",
"bin": 0,
"measure": 98
},
{
"dimension": "Department of Transportation",
"ts": "2021-01-31T18:30:00.000Z",
"ts_position": "2021-02-04T06:30:00.000Z",
"bin": 0,
"measure": 67
},
{
"dimension": "Department of Transportation",
"ts": "2021-02-07T18:30:00.000Z",
"ts_position": "2021-02-11T06:30:00.000Z",
"bin": 0,
"measure": 78
},
{
"dimension": "Department of Transportation",
"ts": "2021-02-14T18:30:00.000Z",
"ts_position": "2021-02-18T06:30:00.000Z",
"bin": 0,
"measure": 83
},
{
"dimension": "Department of Transportation",
"ts": "2021-02-21T18:30:00.000Z",
"ts_position": "2021-02-25T06:30:00.000Z",
"bin": 0,
"measure": 101
},
{
"dimension": "Department of Transportation",
"ts": "2021-02-28T18:30:00.000Z",
"ts_position": "2021-03-04T06:30:00.000Z",
"bin": 0,
"measure": 239
},
{
"dimension": "Department of Transportation",
"ts": "2021-03-07T18:30:00.000Z",
"ts_position": "2021-03-11T06:30:00.000Z",
"bin": 0,
"measure": 242
},
{
"dimension": "Department of Transportation",
"ts": "2021-03-14T18:30:00.000Z",
"ts_position": "2021-03-18T06:30:00.000Z",
"bin": 0,
"measure": 145
},
{
"dimension": "Department of Transportation",
"ts": "2021-03-21T18:30:00.000Z",
"ts_position": "2021-03-25T06:30:00.000Z",
"bin": 0,
"measure": 169
},
{
"dimension": "Department of Transportation",
"ts": "2021-03-28T18:30:00.000Z",
"ts_position": "2021-04-01T06:30:00.000Z",
"bin": 0,
"measure": 182
},
{
"dimension": "Department of Transportation",
"ts": "2021-04-04T18:30:00.000Z",
"ts_position": "2021-04-08T06:30:00.000Z",
"bin": 0,
"measure": 160
},
{
"dimension": "Department of Transportation",
"ts": "2021-04-11T18:30:00.000Z",
"ts_position": "2021-04-15T06:30:00.000Z",
"bin": 0,
"measure": 103
},
{
"dimension": "Department of Transportation",
"ts": "2021-04-18T18:30:00.000Z",
"ts_position": "2021-04-22T06:30:00.000Z",
"bin": 0,
"measure": 71
},
{
"dimension": "Department of Transportation",
"ts": "2021-04-25T18:30:00.000Z",
"ts_position": "2021-04-29T06:30:00.000Z",
"bin": 0,
"measure": 74
},
{
"dimension": "Department of Transportation",
"ts": "2021-05-02T18:30:00.000Z",
"ts_position": "2021-05-06T06:30:00.000Z",
"bin": 0,
"measure": 82
},
{
"dimension": "Department of Transportation",
"ts": "2021-05-09T18:30:00.000Z",
"ts_position": "2021-05-13T06:30:00.000Z",
"bin": 0,
"measure": 64
},
{
"dimension": "Department of Transportation",
"ts": "2021-05-16T18:30:00.000Z",
"ts_position": "2021-05-20T06:30:00.000Z",
"bin": 0,
"measure": 88
},
{
"dimension": "Department of Transportation",
"ts": "2021-05-23T18:30:00.000Z",
"ts_position": "2021-05-27T06:30:00.000Z",
"bin": 0,
"measure": 61
},
{
"dimension": "Department of Transportation",
"ts": "2021-05-30T18:30:00.000Z",
"ts_position": "2021-06-03T06:30:00.000Z",
"bin": 0,
"measure": 68
},
{
"dimension": "Department of Transportation",
"ts": "2021-06-06T18:30:00.000Z",
"ts_position": "2021-06-10T06:30:00.000Z",
"bin": 0,
"measure": 105
},
{
"dimension": "Department of Transportation",
"ts": "2021-06-13T18:30:00.000Z",
"ts_position": "2021-06-17T06:30:00.000Z",
"bin": 0,
"measure": 120
},
{
"dimension": "Department of Transportation",
"ts": "2021-06-20T18:30:00.000Z",
"ts_position": "2021-06-24T06:30:00.000Z",
"bin": 0,
"measure": 358
},
{
"dimension": "Department of Transportation",
"ts": "2021-06-27T18:30:00.000Z",
"ts_position": "2021-07-01T06:30:00.000Z",
"bin": 0,
"measure": 99
},
{
"dimension": "Department of Transportation",
"ts": "2021-07-04T18:30:00.000Z",
"ts_position": "2021-07-08T06:30:00.000Z",
"bin": 0,
"measure": 108
},
{
"dimension": "Department of Transportation",
"ts": "2021-07-11T18:30:00.000Z",
"ts_position": "2021-07-15T06:30:00.000Z",
"bin": 0,
"measure": 199
},
{
"dimension": "Department of Transportation",
"ts": "2021-07-18T18:30:00.000Z",
"ts_position": "2021-07-22T06:30:00.000Z",
"bin": 0,
"measure": 331
},
{
"dimension": "Department of Transportation",
"ts": "2021-07-25T18:30:00.000Z",
"ts_position": "2021-07-29T06:30:00.000Z",
"bin": 0,
"measure": 130
},
{
"dimension": "Department of Transportation",
"ts": "2021-08-01T18:30:00.000Z",
"ts_position": "2021-08-05T06:30:00.000Z",
"bin": 0,
"measure": 92
},
{
"dimension": "Department of Transportation",
"ts": "2021-08-08T18:30:00.000Z",
"ts_position": "2021-08-12T06:30:00.000Z",
"bin": 0,
"measure": 62
},
{
"dimension": "Department of Transportation",
"ts": "2021-08-15T18:30:00.000Z",
"ts_position": "2021-08-19T06:30:00.000Z",
"bin": 0,
"measure": 292
},
{
"dimension": "Department of Transportation",
"ts": "2021-08-22T18:30:00.000Z",
"ts_position": "2021-08-26T06:30:00.000Z",
"bin": 0,
"measure": 502
},
{
"dimension": "Department of Transportation",
"ts": "2021-08-29T18:30:00.000Z",
"ts_position": "2021-09-02T06:30:00.000Z",
"bin": 0,
"measure": 203
},
{
"dimension": "Department of Transportation",
"ts": "2021-09-05T18:30:00.000Z",
"ts_position": "2021-09-09T06:30:00.000Z",
"bin": 0,
"measure": 162
},
{
"dimension": "Department of Transportation",
"ts": "2021-09-12T18:30:00.000Z",
"ts_position": "2021-09-16T06:30:00.000Z",
"bin": 0,
"measure": 472
},
{
"dimension": "Department of Transportation",
"ts": "2021-09-19T18:30:00.000Z",
"ts_position": "2021-09-23T06:30:00.000Z",
"bin": 0,
"measure": 2563
},
{
"dimension": "Department of Transportation",
"ts": "2021-09-26T18:30:00.000Z",
"ts_position": "2021-09-30T06:30:00.000Z",
"bin": 0,
"measure": 1462
},
{
"dimension": "Department of Transportation",
"ts": "2021-10-03T18:30:00.000Z",
"ts_position": "2021-10-07T06:30:00.000Z",
"bin": 0,
"measure": 234
},
{
"dimension": "Department of Transportation",
"ts": "2021-10-10T18:30:00.000Z",
"ts_position": "2021-10-14T06:30:00.000Z",
"bin": 0,
"measure": 181
},
{
"dimension": "Department of Transportation",
"ts": "2021-10-17T18:30:00.000Z",
"ts_position": "2021-10-21T06:30:00.000Z",
"bin": 0,
"measure": 1018
},
{
"dimension": "Department of Transportation",
"ts": "2021-10-24T18:30:00.000Z",
"ts_position": "2021-10-28T06:30:00.000Z",
"bin": 0,
"measure": 453
},
{
"dimension": "Department of Transportation",
"ts": "2021-10-31T18:30:00.000Z",
"ts_position": "2021-11-04T06:30:00.000Z",
"bin": 0,
"measure": 715
},
{
"dimension": "Department of Transportation",
"ts": "2021-11-07T18:30:00.000Z",
"ts_position": "2021-11-11T06:30:00.000Z",
"bin": 0,
"measure": 674
},
{
"dimension": "Department of Transportation",
"ts": "2021-11-14T18:30:00.000Z",
"ts_position": "2021-11-18T06:30:00.000Z",
"bin": 0,
"measure": 811
},
{
"dimension": "Department of Transportation",
"ts": "2021-11-21T18:30:00.000Z",
"ts_position": "2021-11-25T06:30:00.000Z",
"bin": 0,
"measure": 356
},
{
"dimension": "Department of Transportation",
"ts": "2021-11-28T18:30:00.000Z",
"ts_position": "2021-12-02T06:30:00.000Z",
"bin": 0,
"measure": 824
},
{
"dimension": "Department of Transportation",
"ts": "2021-12-05T18:30:00.000Z",
"ts_position": "2021-12-09T06:30:00.000Z",
"bin": 0,
"measure": 2947
},
{
"dimension": "Department of Transportation",
"ts": "2021-12-12T18:30:00.000Z",
"ts_position": "2021-12-16T06:30:00.000Z",
"bin": 0,
"measure": 1315
},
{
"dimension": "Department of Environmental Protection",
"ts": "2020-12-20T18:30:00.000Z",
"ts_position": "2020-12-24T06:30:00.000Z",
"bin": 0,
"measure": 965
},
{
"dimension": "Department of Environmental Protection",
"ts": "2020-12-27T18:30:00.000Z",
"ts_position": "2020-12-31T06:30:00.000Z",
"bin": 0,
"measure": 380
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-01-03T18:30:00.000Z",
"ts_position": "2021-01-07T06:30:00.000Z",
"bin": 0,
"measure": 32
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-01-10T18:30:00.000Z",
"ts_position": "2021-01-14T06:30:00.000Z",
"bin": 0,
"measure": 30
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-01-17T18:30:00.000Z",
"ts_position": "2021-01-21T06:30:00.000Z",
"bin": 0,
"measure": 5
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-01-24T18:30:00.000Z",
"ts_position": "2021-01-28T06:30:00.000Z",
"bin": 0,
"measure": 13
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-01-31T18:30:00.000Z",
"ts_position": "2021-02-04T06:30:00.000Z",
"bin": 0,
"measure": 17
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-02-07T18:30:00.000Z",
"ts_position": "2021-02-11T06:30:00.000Z",
"bin": 0,
"measure": 12
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-02-14T18:30:00.000Z",
"ts_position": "2021-02-18T06:30:00.000Z",
"bin": 0,
"measure": 8
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-02-21T18:30:00.000Z",
"ts_position": "2021-02-25T06:30:00.000Z",
"bin": 0,
"measure": 14
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-02-28T18:30:00.000Z",
"ts_position": "2021-03-04T06:30:00.000Z",
"bin": 0,
"measure": 143
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-03-07T18:30:00.000Z",
"ts_position": "2021-03-11T06:30:00.000Z",
"bin": 0,
"measure": 221
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-03-14T18:30:00.000Z",
"ts_position": "2021-03-18T06:30:00.000Z",
"bin": 0,
"measure": 239
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-03-21T18:30:00.000Z",
"ts_position": "2021-03-25T06:30:00.000Z",
"bin": 0,
"measure": 392
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-03-28T18:30:00.000Z",
"ts_position": "2021-04-01T06:30:00.000Z",
"bin": 0,
"measure": 447
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-04-04T18:30:00.000Z",
"ts_position": "2021-04-08T06:30:00.000Z",
"bin": 0,
"measure": 252
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-04-11T18:30:00.000Z",
"ts_position": "2021-04-15T06:30:00.000Z",
"bin": 0,
"measure": 105
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-04-18T18:30:00.000Z",
"ts_position": "2021-04-22T06:30:00.000Z",
"bin": 0,
"measure": 3
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-04-25T18:30:00.000Z",
"ts_position": "2021-04-29T06:30:00.000Z",
"bin": 0,
"measure": 3
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-05-02T18:30:00.000Z",
"ts_position": "2021-05-06T06:30:00.000Z",
"bin": 0,
"measure": 8
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-05-09T18:30:00.000Z",
"ts_position": "2021-05-13T06:30:00.000Z",
"bin": 0,
"measure": 8
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-05-16T18:30:00.000Z",
"ts_position": "2021-05-20T06:30:00.000Z",
"bin": 0,
"measure": 27
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-05-23T18:30:00.000Z",
"ts_position": "2021-05-27T06:30:00.000Z",
"bin": 0,
"measure": 15
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-05-30T18:30:00.000Z",
"ts_position": "2021-06-03T06:30:00.000Z",
"bin": 0,
"measure": 32
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-06-06T18:30:00.000Z",
"ts_position": "2021-06-10T06:30:00.000Z",
"bin": 0,
"measure": 65
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-06-13T18:30:00.000Z",
"ts_position": "2021-06-17T06:30:00.000Z",
"bin": 0,
"measure": 63
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-06-20T18:30:00.000Z",
"ts_position": "2021-06-24T06:30:00.000Z",
"bin": 0,
"measure": 126
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-06-27T18:30:00.000Z",
"ts_position": "2021-07-01T06:30:00.000Z",
"bin": 0,
"measure": 123
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-07-04T18:30:00.000Z",
"ts_position": "2021-07-08T06:30:00.000Z",
"bin": 0,
"measure": 648
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-07-11T18:30:00.000Z",
"ts_position": "2021-07-15T06:30:00.000Z",
"bin": 0,
"measure": 847
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-07-18T18:30:00.000Z",
"ts_position": "2021-07-22T06:30:00.000Z",
"bin": 0,
"measure": 149
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-07-25T18:30:00.000Z",
"ts_position": "2021-07-29T06:30:00.000Z",
"bin": 0,
"measure": 129
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-08-01T18:30:00.000Z",
"ts_position": "2021-08-05T06:30:00.000Z",
"bin": 0,
"measure": 50
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-08-08T18:30:00.000Z",
"ts_position": "2021-08-12T06:30:00.000Z",
"bin": 0,
"measure": 43
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-08-15T18:30:00.000Z",
"ts_position": "2021-08-19T06:30:00.000Z",
"bin": 0,
"measure": 76
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-08-22T18:30:00.000Z",
"ts_position": "2021-08-26T06:30:00.000Z",
"bin": 0,
"measure": 139
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-08-29T18:30:00.000Z",
"ts_position": "2021-09-02T06:30:00.000Z",
"bin": 0,
"measure": 854
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-09-05T18:30:00.000Z",
"ts_position": "2021-09-09T06:30:00.000Z",
"bin": 0,
"measure": 1005
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-09-12T18:30:00.000Z",
"ts_position": "2021-09-16T06:30:00.000Z",
"bin": 0,
"measure": 1101
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-09-19T18:30:00.000Z",
"ts_position": "2021-09-23T06:30:00.000Z",
"bin": 0,
"measure": 1502
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-09-26T18:30:00.000Z",
"ts_position": "2021-09-30T06:30:00.000Z",
"bin": 0,
"measure": 487
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-10-03T18:30:00.000Z",
"ts_position": "2021-10-07T06:30:00.000Z",
"bin": 0,
"measure": 138
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-10-10T18:30:00.000Z",
"ts_position": "2021-10-14T06:30:00.000Z",
"bin": 0,
"measure": 487
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-10-17T18:30:00.000Z",
"ts_position": "2021-10-21T06:30:00.000Z",
"bin": 0,
"measure": 307
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-10-24T18:30:00.000Z",
"ts_position": "2021-10-28T06:30:00.000Z",
"bin": 0,
"measure": 575
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-10-31T18:30:00.000Z",
"ts_position": "2021-11-04T06:30:00.000Z",
"bin": 0,
"measure": 316
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-11-07T18:30:00.000Z",
"ts_position": "2021-11-11T06:30:00.000Z",
"bin": 0,
"measure": 339
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-11-14T18:30:00.000Z",
"ts_position": "2021-11-18T06:30:00.000Z",
"bin": 0,
"measure": 370
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-11-21T18:30:00.000Z",
"ts_position": "2021-11-25T06:30:00.000Z",
"bin": 0,
"measure": 322
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-11-28T18:30:00.000Z",
"ts_position": "2021-12-02T06:30:00.000Z",
"bin": 0,
"measure": 1084
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-12-05T18:30:00.000Z",
"ts_position": "2021-12-09T06:30:00.000Z",
"bin": 0,
"measure": 2193
},
{
"dimension": "Department of Environmental Protection",
"ts": "2021-12-12T18:30:00.000Z",
"ts_position": "2021-12-16T06:30:00.000Z",
"bin": 0,
"measure": 943
},
{
"dimension": "Department of Buildings",
"ts": "2020-12-20T18:30:00.000Z",
"ts_position": "2020-12-24T06:30:00.000Z",
"bin": 0,
"measure": 130
},
{
"dimension": "Department of Buildings",
"ts": "2020-12-27T18:30:00.000Z",
"ts_position": "2020-12-31T06:30:00.000Z",
"bin": 0,
"measure": 278
},
{
"dimension": "Department of Buildings",
"ts": "2021-01-03T18:30:00.000Z",
"ts_position": "2021-01-07T06:30:00.000Z",
"bin": 0,
"measure": 196
},
{
"dimension": "Department of Buildings",
"ts": "2021-01-10T18:30:00.000Z",
"ts_position": "2021-01-14T06:30:00.000Z",
"bin": 0,
"measure": 24
},
{
"dimension": "Department of Buildings",
"ts": "2021-01-17T18:30:00.000Z",
"ts_position": "2021-01-21T06:30:00.000Z",
"bin": 0,
"measure": 22
},
{
"dimension": "Department of Buildings",
"ts": "2021-01-24T18:30:00.000Z",
"ts_position": "2021-01-28T06:30:00.000Z",
"bin": 0,
"measure": 13
},
{
"dimension": "Department of Buildings",
"ts": "2021-01-31T18:30:00.000Z",
"ts_position": "2021-02-04T06:30:00.000Z",
"bin": 0,
"measure": 24
},
{
"dimension": "Department of Buildings",
"ts": "2021-02-07T18:30:00.000Z",
"ts_position": "2021-02-11T06:30:00.000Z",
"bin": 0,
"measure": 14
},
{
"dimension": "Department of Buildings",
"ts": "2021-02-14T18:30:00.000Z",
"ts_position": "2021-02-18T06:30:00.000Z",
"bin": 0,
"measure": 20
},
{
"dimension": "Department of Buildings",
"ts": "2021-02-21T18:30:00.000Z",
"ts_position": "2021-02-25T06:30:00.000Z",
"bin": 0,
"measure": 34
},
{
"dimension": "Department of Buildings",
"ts": "2021-02-28T18:30:00.000Z",
"ts_position": "2021-03-04T06:30:00.000Z",
"bin": 0,
"measure": 128
},
{
"dimension": "Department of Buildings",
"ts": "2021-03-07T18:30:00.000Z",
"ts_position": "2021-03-11T06:30:00.000Z",
"bin": 0,
"measure": 165
},
{
"dimension": "Department of Buildings",
"ts": "2021-03-14T18:30:00.000Z",
"ts_position": "2021-03-18T06:30:00.000Z",
"bin": 0,
"measure": 224
},
{
"dimension": "Department of Buildings",
"ts": "2021-03-21T18:30:00.000Z",
"ts_position": "2021-03-25T06:30:00.000Z",
"bin": 0,
"measure": 156
},
{
"dimension": "Department of Buildings",
"ts": "2021-03-28T18:30:00.000Z",
"ts_position": "2021-04-01T06:30:00.000Z",
"bin": 0,
"measure": 158
},
{
"dimension": "Department of Buildings",
"ts": "2021-04-04T18:30:00.000Z",
"ts_position": "2021-04-08T06:30:00.000Z",
"bin": 0,
"measure": 258
},
{
"dimension": "Department of Buildings",
"ts": "2021-04-11T18:30:00.000Z",
"ts_position": "2021-04-15T06:30:00.000Z",
"bin": 0,
"measure": 38
},
{
"dimension": "Department of Buildings",
"ts": "2021-04-18T18:30:00.000Z",
"ts_position": "2021-04-22T06:30:00.000Z",
"bin": 0,
"measure": 15
},
{
"dimension": "Department of Buildings",
"ts": "2021-04-25T18:30:00.000Z",
"ts_position": "2021-04-29T06:30:00.000Z",
"bin": 0,
"measure": 20
},
{
"dimension": "Department of Buildings",
"ts": "2021-05-02T18:30:00.000Z",
"ts_position": "2021-05-06T06:30:00.000Z",
"bin": 0,
"measure": 38
},
{
"dimension": "Department of Buildings",
"ts": "2021-05-09T18:30:00.000Z",
"ts_position": "2021-05-13T06:30:00.000Z",
"bin": 0,
"measure": 70
},
{
"dimension": "Department of Buildings",
"ts": "2021-05-16T18:30:00.000Z",
"ts_position": "2021-05-20T06:30:00.000Z",
"bin": 0,
"measure": 82
},
{
"dimension": "Department of Buildings",
"ts": "2021-05-23T18:30:00.000Z",
"ts_position": "2021-05-27T06:30:00.000Z",
"bin": 0,
"measure": 82
},
{
"dimension": "Department of Buildings",
"ts": "2021-05-30T18:30:00.000Z",
"ts_position": "2021-06-03T06:30:00.000Z",
"bin": 0,
"measure": 107
},
{
"dimension": "Department of Buildings",
"ts": "2021-06-06T18:30:00.000Z",
"ts_position": "2021-06-10T06:30:00.000Z",
"bin": 0,
"measure": 110
},
{
"dimension": "Department of Buildings",
"ts": "2021-06-13T18:30:00.000Z",
"ts_position": "2021-06-17T06:30:00.000Z",
"bin": 0,
"measure": 91
},
{
"dimension": "Department of Buildings",
"ts": "2021-06-20T18:30:00.000Z",
"ts_position": "2021-06-24T06:30:00.000Z",
"bin": 0,
"measure": 187
},
{
"dimension": "Department of Buildings",
"ts": "2021-06-27T18:30:00.000Z",
"ts_position": "2021-07-01T06:30:00.000Z",
"bin": 0,
"measure": 388
},
{
"dimension": "Department of Buildings",
"ts": "2021-07-04T18:30:00.000Z",
"ts_position": "2021-07-08T06:30:00.000Z",
"bin": 0,
"measure": 69
},
{
"dimension": "Department of Buildings",
"ts": "2021-07-11T18:30:00.000Z",
"ts_position": "2021-07-15T06:30:00.000Z",
"bin": 0,
"measure": 135
},
{
"dimension": "Department of Buildings",
"ts": "2021-07-18T18:30:00.000Z",
"ts_position": "2021-07-22T06:30:00.000Z",
"bin": 0,
"measure": 302
},
{
"dimension": "Department of Buildings",
"ts": "2021-07-25T18:30:00.000Z",
"ts_position": "2021-07-29T06:30:00.000Z",
"bin": 0,
"measure": 95
},
{
"dimension": "Department of Buildings",
"ts": "2021-08-01T18:30:00.000Z",
"ts_position": "2021-08-05T06:30:00.000Z",
"bin": 0,
"measure": 61
},
{
"dimension": "Department of Buildings",
"ts": "2021-08-08T18:30:00.000Z",
"ts_position": "2021-08-12T06:30:00.000Z",
"bin": 0,
"measure": 74
},
{
"dimension": "Department of Buildings",
"ts": "2021-08-15T18:30:00.000Z",
"ts_position": "2021-08-19T06:30:00.000Z",
"bin": 0,
"measure": 64
},
{
"dimension": "Department of Buildings",
"ts": "2021-08-22T18:30:00.000Z",
"ts_position": "2021-08-26T06:30:00.000Z",
"bin": 0,
"measure": 208
},
{
"dimension": "Department of Buildings",
"ts": "2021-08-29T18:30:00.000Z",
"ts_position": "2021-09-02T06:30:00.000Z",
"bin": 0,
"measure": 300
},
{
"dimension": "Department of Buildings",
"ts": "2021-09-05T18:30:00.000Z",
"ts_position": "2021-09-09T06:30:00.000Z",
"bin": 0,
"measure": 122
},
{
"dimension": "Department of Buildings",
"ts": "2021-09-12T18:30:00.000Z",
"ts_position": "2021-09-16T06:30:00.000Z",
"bin": 0,
"measure": 326
},
{
"dimension": "Department of Buildings",
"ts": "2021-09-19T18:30:00.000Z",
"ts_position": "2021-09-23T06:30:00.000Z",
"bin": 0,
"measure": 701
},
{
"dimension": "Department of Buildings",
"ts": "2021-09-26T18:30:00.000Z",
"ts_position": "2021-09-30T06:30:00.000Z",
"bin": 0,
"measure": 679
},
{
"dimension": "Department of Buildings",
"ts": "2021-10-03T18:30:00.000Z",
"ts_position": "2021-10-07T06:30:00.000Z",
"bin": 0,
"measure": 119
},
{
"dimension": "Department of Buildings",
"ts": "2021-10-10T18:30:00.000Z",
"ts_position": "2021-10-14T06:30:00.000Z",
"bin": 0,
"measure": 143
},
{
"dimension": "Department of Buildings",
"ts": "2021-10-17T18:30:00.000Z",
"ts_position": "2021-10-21T06:30:00.000Z",
"bin": 0,
"measure": 322
},
{
"dimension": "Department of Buildings",
"ts": "2021-10-24T18:30:00.000Z",
"ts_position": "2021-10-28T06:30:00.000Z",
"bin": 0,
"measure": 193
},
{
"dimension": "Department of Buildings",
"ts": "2021-10-31T18:30:00.000Z",
"ts_position": "2021-11-04T06:30:00.000Z",
"bin": 0,
"measure": 314
},
{
"dimension": "Department of Buildings",
"ts": "2021-11-07T18:30:00.000Z",
"ts_position": "2021-11-11T06:30:00.000Z",
"bin": 0,
"measure": 122
},
{
"dimension": "Department of Buildings",
"ts": "2021-11-14T18:30:00.000Z",
"ts_position": "2021-11-18T06:30:00.000Z",
"bin": 0,
"measure": 485
},
{
"dimension": "Department of Buildings",
"ts": "2021-11-21T18:30:00.000Z",
"ts_position": "2021-11-25T06:30:00.000Z",
"bin": 0,
"measure": 227
},
{
"dimension": "Department of Buildings",
"ts": "2021-11-28T18:30:00.000Z",
"ts_position": "2021-12-02T06:30:00.000Z",
"bin": 0,
"measure": 362
},
{
"dimension": "Department of Buildings",
"ts": "2021-12-05T18:30:00.000Z",
"ts_position": "2021-12-09T06:30:00.000Z",
"bin": 0,
"measure": 1243
},
{
"dimension": "Department of Buildings",
"ts": "2021-12-12T18:30:00.000Z",
"ts_position": "2021-12-16T06:30:00.000Z",
"bin": 0,
"measure": 453
},
{
"dimension": "Department of Homeless Services",
"ts": "2020-12-20T18:30:00.000Z",
"ts_position": "2020-12-24T06:30:00.000Z",
"bin": 0,
"measure": 3
},
{
"dimension": "Department of Homeless Services",
"ts": "2020-12-27T18:30:00.000Z",
"ts_position": "2020-12-31T06:30:00.000Z",
"bin": 0,
"measure": 11
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-01-03T18:30:00.000Z",
"ts_position": "2021-01-07T06:30:00.000Z",
"bin": 0,
"measure": 9
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-01-10T18:30:00.000Z",
"ts_position": "2021-01-14T06:30:00.000Z",
"bin": 0,
"measure": 9
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-01-17T18:30:00.000Z",
"ts_position": "2021-01-21T06:30:00.000Z",
"bin": 0,
"measure": 9
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-01-24T18:30:00.000Z",
"ts_position": "2021-01-28T06:30:00.000Z",
"bin": 0,
"measure": 11
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-01-31T18:30:00.000Z",
"ts_position": "2021-02-04T06:30:00.000Z",
"bin": 0,
"measure": 6
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-02-07T18:30:00.000Z",
"ts_position": "2021-02-11T06:30:00.000Z",
"bin": 0,
"measure": 8
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-02-14T18:30:00.000Z",
"ts_position": "2021-02-18T06:30:00.000Z",
"bin": 0,
"measure": 4
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-02-21T18:30:00.000Z",
"ts_position": "2021-02-25T06:30:00.000Z",
"bin": 0,
"measure": 3
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-02-28T18:30:00.000Z",
"ts_position": "2021-03-04T06:30:00.000Z",
"bin": 0,
"measure": 9
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-03-07T18:30:00.000Z",
"ts_position": "2021-03-11T06:30:00.000Z",
"bin": 0,
"measure": 10
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-03-14T18:30:00.000Z",
"ts_position": "2021-03-18T06:30:00.000Z",
"bin": 0,
"measure": 10
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-03-21T18:30:00.000Z",
"ts_position": "2021-03-25T06:30:00.000Z",
"bin": 0,
"measure": 14
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-03-28T18:30:00.000Z",
"ts_position": "2021-04-01T06:30:00.000Z",
"bin": 0,
"measure": 14
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-04-04T18:30:00.000Z",
"ts_position": "2021-04-08T06:30:00.000Z",
"bin": 0,
"measure": 12
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-04-11T18:30:00.000Z",
"ts_position": "2021-04-15T06:30:00.000Z",
"bin": 0,
"measure": 17
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-04-18T18:30:00.000Z",
"ts_position": "2021-04-22T06:30:00.000Z",
"bin": 0,
"measure": 81
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-04-25T18:30:00.000Z",
"ts_position": "2021-04-29T06:30:00.000Z",
"bin": 0,
"measure": 174
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-05-02T18:30:00.000Z",
"ts_position": "2021-05-06T06:30:00.000Z",
"bin": 0,
"measure": 22
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-05-09T18:30:00.000Z",
"ts_position": "2021-05-13T06:30:00.000Z",
"bin": 0,
"measure": 20
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-05-16T18:30:00.000Z",
"ts_position": "2021-05-20T06:30:00.000Z",
"bin": 0,
"measure": 34
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-05-23T18:30:00.000Z",
"ts_position": "2021-05-27T06:30:00.000Z",
"bin": 0,
"measure": 85
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-05-30T18:30:00.000Z",
"ts_position": "2021-06-03T06:30:00.000Z",
"bin": 0,
"measure": 36
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-06-06T18:30:00.000Z",
"ts_position": "2021-06-10T06:30:00.000Z",
"bin": 0,
"measure": 190
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-06-13T18:30:00.000Z",
"ts_position": "2021-06-17T06:30:00.000Z",
"bin": 0,
"measure": 136
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-06-20T18:30:00.000Z",
"ts_position": "2021-06-24T06:30:00.000Z",
"bin": 0,
"measure": 304
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-06-27T18:30:00.000Z",
"ts_position": "2021-07-01T06:30:00.000Z",
"bin": 0,
"measure": 298
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-07-04T18:30:00.000Z",
"ts_position": "2021-07-08T06:30:00.000Z",
"bin": 0,
"measure": 396
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-07-11T18:30:00.000Z",
"ts_position": "2021-07-15T06:30:00.000Z",
"bin": 0,
"measure": 453
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-07-18T18:30:00.000Z",
"ts_position": "2021-07-22T06:30:00.000Z",
"bin": 0,
"measure": 397
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-07-25T18:30:00.000Z",
"ts_position": "2021-07-29T06:30:00.000Z",
"bin": 0,
"measure": 379
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-08-01T18:30:00.000Z",
"ts_position": "2021-08-05T06:30:00.000Z",
"bin": 0,
"measure": 282
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-08-08T18:30:00.000Z",
"ts_position": "2021-08-12T06:30:00.000Z",
"bin": 0,
"measure": 345
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-08-15T18:30:00.000Z",
"ts_position": "2021-08-19T06:30:00.000Z",
"bin": 0,
"measure": 391
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-08-22T18:30:00.000Z",
"ts_position": "2021-08-26T06:30:00.000Z",
"bin": 0,
"measure": 437
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-08-29T18:30:00.000Z",
"ts_position": "2021-09-02T06:30:00.000Z",
"bin": 0,
"measure": 439
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-09-05T18:30:00.000Z",
"ts_position": "2021-09-09T06:30:00.000Z",
"bin": 0,
"measure": 347
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-09-12T18:30:00.000Z",
"ts_position": "2021-09-16T06:30:00.000Z",
"bin": 0,
"measure": 372
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-09-19T18:30:00.000Z",
"ts_position": "2021-09-23T06:30:00.000Z",
"bin": 0,
"measure": 926
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-09-26T18:30:00.000Z",
"ts_position": "2021-09-30T06:30:00.000Z",
"bin": 0,
"measure": 795
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-10-03T18:30:00.000Z",
"ts_position": "2021-10-07T06:30:00.000Z",
"bin": 0,
"measure": 584
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-10-10T18:30:00.000Z",
"ts_position": "2021-10-14T06:30:00.000Z",
"bin": 0,
"measure": 709
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-10-17T18:30:00.000Z",
"ts_position": "2021-10-21T06:30:00.000Z",
"bin": 0,
"measure": 768
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-10-24T18:30:00.000Z",
"ts_position": "2021-10-28T06:30:00.000Z",
"bin": 0,
"measure": 281
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-10-31T18:30:00.000Z",
"ts_position": "2021-11-04T06:30:00.000Z",
"bin": 0,
"measure": 239
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-11-07T18:30:00.000Z",
"ts_position": "2021-11-11T06:30:00.000Z",
"bin": 0,
"measure": 266
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-11-14T18:30:00.000Z",
"ts_position": "2021-11-18T06:30:00.000Z",
"bin": 0,
"measure": 108
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-11-21T18:30:00.000Z",
"ts_position": "2021-11-25T06:30:00.000Z",
"bin": 0,
"measure": 17
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-11-28T18:30:00.000Z",
"ts_position": "2021-12-02T06:30:00.000Z",
"bin": 0,
"measure": 196
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-12-05T18:30:00.000Z",
"ts_position": "2021-12-09T06:30:00.000Z",
"bin": 0,
"measure": 648
},
{
"dimension": "Department of Homeless Services",
"ts": "2021-12-12T18:30:00.000Z",
"ts_position": "2021-12-16T06:30:00.000Z",
"bin": 0,
"measure": 217
}
]
},
"encoding": {
"x": {
"field": "ts_position",
"type": "temporal",
"scale": {
"domain": ["2020-12-31T18:30:00.000Z", "2021-12-16T14:53:59.999Z"]
},
"axis": {"ticks": false, "title": ""}
},
"y": {
"field": "measure",
"type": "quantitative",
"stack": "zero",
"axis": {"title": ""}
}
},
"layer": [
{
"mark": {"type": "area", "clip": true},
"encoding": {
"color": {"field": "dimension", "type": "nominal", "legend": null},
"opacity": {
"condition": {"param": "hover", "empty": false, "value": 1},
"value": 0.7
}
},
"params": [
{
"name": "hover",
"select": {
"type": "point",
"on": "pointerover",
"clear": "pointerout"
}
}
]
},
{
"mark": {"type": "line", "strokeWidth": 1, "clip": true},
"encoding": {
"x": {"field": "ts_position", "type": "temporal"},
"y": {"field": "measure", "type": "quantitative", "stack": "zero"},
"stroke": {"field": "dimension", "type": "nominal", "legend": null}
}
},
{
"mark": {"type": "rule", "color": "none"},
"encoding": {
"x": {"type": "temporal", "field": "ts_position"},
"tooltip": [
{"field": "measure", "type": "quantitative"},
{"field": "ts", "type": "temporal", "title": "Time"},
{"field": "dimension", "type": "nominal"}
]
},
"params": [
{
"name": "x_hover",
"select": {
"type": "point",
"encodings": ["x"],
"nearest": true,
"on": "pointerover",
"clear": "pointerout"
}
}
]
},
{
"transform": [{"filter": {"param": "x-hover", "empty": false}}],
"mark": {"type": "point"},
"encoding": {
"x": {"type": "temporal", "field": "ts_position"},
"y": {"type": "quantitative", "field": "measure"},
"color": {"type": "nominal", "field": "dimension"},
"tooltip": [
{"field": "AAPL", "type": "quantitative"},
{"field": "AMZN", "type": "quantitative"},
{"field": "GOOG", "type": "quantitative"},
{"field": "IBM", "type": "quantitative"},
{"field": "MSFT", "type": "quantitative"}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment