Skip to content

Instantly share code, notes, and snippets.

@aaugustin
Created July 10, 2015 11:14
Show Gist options
  • Save aaugustin/ec38962aec5cd8c58629 to your computer and use it in GitHub Desktop.
Save aaugustin/ec38962aec5cd8c58629 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Vega - bug 259</title>
<script src="http://vega.github.io/vega/lib/d3.v3.min.js"></script>
<script src="http://vega.github.io/vega/vega.min.js"></script>
</head>
<body>
<div id="chart"></div>
<script type="text/javascript">
(function () {
var raw_data =
[
{
"datetime": "2015-05-01T00:00:00",
"actual_raw": 0.02614297297292323,
"time": "00:00"
},
{
"datetime": "2015-05-01T00:05:00",
"actual_raw": 0.8325991432338262,
"time": "00:05"
},
{
"datetime": "2015-05-01T00:10:00",
"actual_raw": 0.5733968645182629,
"time": "00:10"
},
{
"datetime": "2015-05-01T00:15:00",
"actual_raw": 0.40711755749312906,
"time": "00:15"
},
{
"datetime": "2015-05-01T00:20:00",
"actual_raw": 0.6633383747262676,
"time": "00:20"
},
{
"datetime": "2015-05-01T00:25:00",
"actual_raw": 0.8011268422676758,
"time": "00:25"
},
{
"datetime": "2015-05-01T00:30:00",
"actual_raw": 0.3263280869145242,
"time": "00:30"
},
{
"datetime": "2015-05-01T00:35:00",
"actual_raw": 0.5664612635685203,
"time": "00:35"
},
{
"datetime": "2015-05-01T00:40:00",
"actual_raw": 0.30312607169701034,
"time": "00:40"
},
{
"datetime": "2015-05-01T00:45:00",
"actual_raw": 0.42324993557532664,
"time": "00:45"
},
{
"datetime": "2015-05-01T00:50:00",
"actual_raw": 0.21560199081551357,
"time": "00:50"
},
{
"datetime": "2015-05-01T00:55:00",
"actual_raw": 0.5910314480116658,
"time": "00:55"
},
{
"datetime": "2015-05-01T01:00:00",
"actual_raw": 0.24476766522298432,
"time": "01:00"
},
{
"datetime": "2015-05-01T01:05:00",
"actual_raw": 0.8153461400467283,
"time": "01:05"
},
{
"datetime": "2015-05-01T01:10:00",
"actual_raw": 0.6046618396195336,
"time": "01:10"
},
{
"datetime": "2015-05-01T01:15:00",
"actual_raw": 0.8378294217867116,
"time": "01:15"
},
{
"datetime": "2015-05-01T01:20:00",
"actual_raw": 0.7876222469158427,
"time": "01:20"
},
{
"datetime": "2015-05-01T01:25:00",
"actual_raw": 0.0436093844680584,
"time": "01:25"
},
{
"datetime": "2015-05-01T01:30:00",
"actual_raw": 0.1427885940546778,
"time": "01:30"
},
{
"datetime": "2015-05-01T01:35:00",
"actual_raw": 0.5708871873564662,
"time": "01:35"
},
{
"datetime": "2015-05-01T01:40:00",
"actual_raw": 0.7862568417084368,
"time": "01:40"
},
{
"datetime": "2015-05-01T01:45:00",
"actual_raw": 0.5955609359294117,
"time": "01:45"
},
{
"datetime": "2015-05-01T01:50:00",
"actual_raw": 0.49844681573226035,
"time": "01:50"
},
{
"datetime": "2015-05-01T01:55:00",
"actual_raw": 0.7383686092931386,
"time": "01:55"
},
{
"datetime": "2015-05-01T02:00:00",
"actual_raw": 0.4566678784251874,
"time": "02:00"
},
{
"datetime": "2015-05-01T02:05:00",
"actual_raw": 0.5489274070259629,
"time": "02:05"
},
{
"datetime": "2015-05-01T02:10:00",
"actual_raw": 0.8292700603456495,
"time": "02:10"
},
{
"datetime": "2015-05-01T02:15:00",
"actual_raw": 0.9252450705643759,
"time": "02:15"
},
{
"datetime": "2015-05-01T02:20:00",
"actual_raw": 0.16270722632089007,
"time": "02:20"
},
{
"datetime": "2015-05-01T02:25:00",
"actual_raw": 0.6206977883174047,
"time": "02:25"
},
{
"datetime": "2015-05-01T02:30:00",
"actual_raw": 0.8327269580759541,
"time": "02:30"
},
{
"datetime": "2015-05-01T02:35:00",
"actual_raw": 0.7176203647385018,
"time": "02:35"
},
{
"datetime": "2015-05-01T02:40:00",
"actual_raw": 0.4856857719923955,
"time": "02:40"
},
{
"datetime": "2015-05-01T02:45:00",
"actual_raw": 0.15319746097823372,
"time": "02:45"
},
{
"datetime": "2015-05-01T02:50:00",
"actual_raw": 0.35329337028184604,
"time": "02:50"
},
{
"datetime": "2015-05-01T02:55:00",
"actual_raw": 0.1371640795557767,
"time": "02:55"
},
{
"datetime": "2015-05-01T03:00:00",
"actual_raw": 0.15023701820928292,
"time": "03:00"
},
{
"datetime": "2015-05-01T03:05:00",
"actual_raw": 0.8921430918755624,
"time": "03:05"
},
{
"datetime": "2015-05-01T03:10:00",
"actual_raw": 0.4888996767534969,
"time": "03:10"
},
{
"datetime": "2015-05-01T03:15:00",
"actual_raw": 0.7107044128041021,
"time": "03:15"
},
{
"datetime": "2015-05-01T03:20:00",
"actual_raw": 0.9665640917358191,
"time": "03:20"
},
{
"datetime": "2015-05-01T03:25:00",
"actual_raw": 0.5693157821100401,
"time": "03:25"
},
{
"datetime": "2015-05-01T03:30:00",
"actual_raw": 0.8753089095019722,
"time": "03:30"
},
{
"datetime": "2015-05-01T03:35:00",
"actual_raw": 0.698861840010688,
"time": "03:35"
},
{
"datetime": "2015-05-01T03:40:00",
"actual_raw": 0.5566634822478438,
"time": "03:40"
},
{
"datetime": "2015-05-01T03:45:00",
"actual_raw": 0.9214221698405975,
"time": "03:45"
},
{
"datetime": "2015-05-01T03:50:00",
"actual_raw": 0.08593975410593635,
"time": "03:50"
},
{
"datetime": "2015-05-01T03:55:00",
"actual_raw": 0.2283441330779724,
"time": "03:55"
},
{
"datetime": "2015-05-01T04:00:00",
"actual_raw": 0.2847894513319654,
"time": "04:00"
},
{
"datetime": "2015-05-01T04:05:00",
"actual_raw": 0.36757068864660647,
"time": "04:05"
},
{
"datetime": "2015-05-01T04:10:00",
"actual_raw": 0.8645352110258284,
"time": "04:10"
},
{
"datetime": "2015-05-01T04:15:00",
"actual_raw": 0.3311265514318499,
"time": "04:15"
},
{
"datetime": "2015-05-01T04:20:00",
"actual_raw": 0.6016601646701758,
"time": "04:20"
},
{
"datetime": "2015-05-01T04:25:00",
"actual_raw": 0.6873549733607501,
"time": "04:25"
},
{
"datetime": "2015-05-01T04:30:00",
"actual_raw": 0.0705598139036594,
"time": "04:30"
},
{
"datetime": "2015-05-01T04:35:00",
"actual_raw": 0.42046852176813243,
"time": "04:35"
},
{
"datetime": "2015-05-01T04:40:00",
"actual_raw": 0.37554418918386223,
"time": "04:40"
},
{
"datetime": "2015-05-01T04:45:00",
"actual_raw": 0.30385418636215633,
"time": "04:45"
},
{
"datetime": "2015-05-01T04:50:00",
"actual_raw": 0.7435914471265449,
"time": "04:50"
},
{
"datetime": "2015-05-01T04:55:00",
"actual_raw": 0.8028285466077473,
"time": "04:55"
},
{
"datetime": "2015-05-01T05:00:00",
"actual_raw": 0.7903381372956466,
"time": "05:00"
},
{
"datetime": "2015-05-01T05:05:00",
"actual_raw": 0.41285522854155765,
"time": "05:05"
},
{
"datetime": "2015-05-01T05:10:00",
"actual_raw": 0.02138640787361612,
"time": "05:10"
},
{
"datetime": "2015-05-01T05:15:00",
"actual_raw": 0.4186725636365869,
"time": "05:15"
},
{
"datetime": "2015-05-01T05:20:00",
"actual_raw": 0.7198561232590049,
"time": "05:20"
},
{
"datetime": "2015-05-01T05:25:00",
"actual_raw": 0.2780242508588785,
"time": "05:25"
},
{
"datetime": "2015-05-01T05:30:00",
"actual_raw": 0.3798420851046842,
"time": "05:30"
},
{
"datetime": "2015-05-01T05:35:00",
"actual_raw": 0.272299483111473,
"time": "05:35"
},
{
"datetime": "2015-05-01T05:40:00",
"actual_raw": 0.1429120158062599,
"time": "05:40"
},
{
"datetime": "2015-05-01T05:45:00",
"actual_raw": 0.3733182834937867,
"time": "05:45"
},
{
"datetime": "2015-05-01T05:50:00",
"actual_raw": 0.5731226265065842,
"time": "05:50"
},
{
"datetime": "2015-05-01T05:55:00",
"actual_raw": 0.7138130350263854,
"time": "05:55"
},
{
"datetime": "2015-05-01T06:00:00",
"actual_raw": 0.15418709960942778,
"time": "06:00"
},
{
"datetime": "2015-05-01T06:05:00",
"actual_raw": 0.7119722808344401,
"time": "06:05"
},
{
"datetime": "2015-05-01T06:10:00",
"actual_raw": 0.537962215764878,
"time": "06:10"
},
{
"datetime": "2015-05-01T06:15:00",
"actual_raw": 0.6155827044190679,
"time": "06:15"
},
{
"datetime": "2015-05-01T06:20:00",
"actual_raw": 0.9469908253116025,
"time": "06:20"
},
{
"datetime": "2015-05-01T06:25:00",
"actual_raw": 0.8784666661906876,
"time": "06:25"
},
{
"datetime": "2015-05-01T06:30:00",
"actual_raw": 0.6656934726652621,
"time": "06:30"
},
{
"datetime": "2015-05-01T06:35:00",
"actual_raw": 0.951043847142578,
"time": "06:35"
},
{
"datetime": "2015-05-01T06:40:00",
"actual_raw": 0.8237176097836945,
"time": "06:40"
},
{
"datetime": "2015-05-01T06:45:00",
"actual_raw": 0.988527097899255,
"time": "06:45"
},
{
"datetime": "2015-05-01T06:50:00",
"actual_raw": 0.7615918042538999,
"time": "06:50"
},
{
"datetime": "2015-05-01T06:55:00",
"actual_raw": 0.5605956773953095,
"time": "06:55"
},
{
"datetime": "2015-05-01T07:00:00",
"actual_raw": 0.5189324206827748,
"time": "07:00"
},
{
"datetime": "2015-05-01T07:05:00",
"actual_raw": 0.8901169068085402,
"time": "07:05"
},
{
"datetime": "2015-05-01T07:10:00",
"actual_raw": 0.4783977164616279,
"time": "07:10"
},
{
"datetime": "2015-05-01T07:15:00",
"actual_raw": 0.19412923308019114,
"time": "07:15"
},
{
"datetime": "2015-05-01T07:20:00",
"actual_raw": 0.38293318213473004,
"time": "07:20"
},
{
"datetime": "2015-05-01T07:25:00",
"actual_raw": 0.19205530026087858,
"time": "07:25"
},
{
"datetime": "2015-05-01T07:30:00",
"actual_raw": 0.5540040767397342,
"time": "07:30"
},
{
"datetime": "2015-05-01T07:35:00",
"actual_raw": 0.415235443305374,
"time": "07:35"
},
{
"datetime": "2015-05-01T07:40:00",
"actual_raw": 0.14356991453664836,
"time": "07:40"
},
{
"datetime": "2015-05-01T07:45:00",
"actual_raw": 0.26939348421660936,
"time": "07:45"
},
{
"datetime": "2015-05-01T07:50:00",
"actual_raw": 0.4135150093531579,
"time": "07:50"
},
{
"datetime": "2015-05-01T07:55:00",
"actual_raw": 0.8974502261213052,
"time": "07:55"
},
{
"datetime": "2015-05-01T08:00:00",
"actual_raw": 0.5692499363280753,
"time": "08:00"
},
{
"datetime": "2015-05-01T08:05:00",
"actual_raw": 0.20649367320949918,
"time": "08:05"
},
{
"datetime": "2015-05-01T08:10:00",
"actual_raw": 0.9558699254491897,
"time": "08:10"
},
{
"datetime": "2015-05-01T08:15:00",
"actual_raw": 0.9705898707919952,
"time": "08:15"
},
{
"datetime": "2015-05-01T08:20:00",
"actual_raw": 0.6770814703953917,
"time": "08:20"
},
{
"datetime": "2015-05-01T08:25:00",
"actual_raw": 0.5622207185745356,
"time": "08:25"
},
{
"datetime": "2015-05-01T08:30:00",
"actual_raw": 0.9317665873440875,
"time": "08:30"
},
{
"datetime": "2015-05-01T08:35:00",
"actual_raw": 0.6001066239310862,
"time": "08:35"
},
{
"datetime": "2015-05-01T08:40:00",
"actual_raw": 0.8192782492318743,
"time": "08:40"
},
{
"datetime": "2015-05-01T08:45:00",
"actual_raw": 0.8558703808229807,
"time": "08:45"
},
{
"datetime": "2015-05-01T08:50:00",
"actual_raw": 0.6695547747443593,
"time": "08:50"
},
{
"datetime": "2015-05-01T08:55:00",
"actual_raw": 0.2706823930646399,
"time": "08:55"
},
{
"datetime": "2015-05-01T09:00:00",
"actual_raw": 0.9869523227096653,
"time": "09:00"
},
{
"datetime": "2015-05-01T09:05:00",
"actual_raw": 0.4873988001764642,
"time": "09:05"
},
{
"datetime": "2015-05-01T09:10:00",
"actual_raw": 0.9006526100740434,
"time": "09:10"
},
{
"datetime": "2015-05-01T09:15:00",
"actual_raw": 0.8003203200491532,
"time": "09:15"
},
{
"datetime": "2015-05-01T09:20:00",
"actual_raw": 0.5335818361621752,
"time": "09:20"
},
{
"datetime": "2015-05-01T09:25:00",
"actual_raw": 0.9815798274721276,
"time": "09:25"
},
{
"datetime": "2015-05-01T09:30:00",
"actual_raw": 0.5255669544709076,
"time": "09:30"
},
{
"datetime": "2015-05-01T09:35:00",
"actual_raw": 0.7959944668659632,
"time": "09:35"
},
{
"datetime": "2015-05-01T09:40:00",
"actual_raw": 0.17804915458564918,
"time": "09:40"
},
{
"datetime": "2015-05-01T09:45:00",
"actual_raw": 0.37408590177401546,
"time": "09:45"
},
{
"datetime": "2015-05-01T09:50:00",
"actual_raw": 0.34923193603928426,
"time": "09:50"
},
{
"datetime": "2015-05-01T09:55:00",
"actual_raw": 0.010395327401267807,
"time": "09:55"
},
{
"datetime": "2015-05-01T10:00:00",
"actual_raw": 0.798093108648223,
"time": "10:00"
},
{
"datetime": "2015-05-01T10:05:00",
"actual_raw": 0.0648573483284044,
"time": "10:05"
},
{
"datetime": "2015-05-01T10:10:00",
"actual_raw": 0.1766911211381702,
"time": "10:10"
},
{
"datetime": "2015-05-01T10:15:00",
"actual_raw": 0.21159028404244207,
"time": "10:15"
},
{
"datetime": "2015-05-01T10:20:00",
"actual_raw": 0.7088227311175836,
"time": "10:20"
},
{
"datetime": "2015-05-01T10:25:00",
"actual_raw": 0.7631876035988638,
"time": "10:25"
},
{
"datetime": "2015-05-01T10:30:00",
"actual_raw": 0.503639971583396,
"time": "10:30"
},
{
"datetime": "2015-05-01T10:35:00",
"actual_raw": 0.0764235299906435,
"time": "10:35"
},
{
"datetime": "2015-05-01T10:40:00",
"actual_raw": 0.535222342709597,
"time": "10:40"
},
{
"datetime": "2015-05-01T10:45:00",
"actual_raw": 0.29824199514725336,
"time": "10:45"
},
{
"datetime": "2015-05-01T10:50:00",
"actual_raw": 0.7461139610265537,
"time": "10:50"
},
{
"datetime": "2015-05-01T10:55:00",
"actual_raw": 0.5022677077363229,
"time": "10:55"
},
{
"datetime": "2015-05-01T11:00:00",
"actual_raw": 0.9857225535001234,
"time": "11:00"
},
{
"datetime": "2015-05-01T11:05:00",
"actual_raw": 0.42510056716934985,
"time": "11:05"
},
{
"datetime": "2015-05-01T11:10:00",
"actual_raw": 0.5110329862963899,
"time": "11:10"
},
{
"datetime": "2015-05-01T11:15:00",
"actual_raw": 0.031068521555435824,
"time": "11:15"
},
{
"datetime": "2015-05-01T11:20:00",
"actual_raw": 0.8348383464922564,
"time": "11:20"
},
{
"datetime": "2015-05-01T11:25:00",
"actual_raw": 0.7542123176261462,
"time": "11:25"
},
{
"datetime": "2015-05-01T11:30:00",
"actual_raw": 0.5187002642253691,
"time": "11:30"
},
{
"datetime": "2015-05-01T11:35:00",
"actual_raw": 0.15703030739111046,
"time": "11:35"
},
{
"datetime": "2015-05-01T11:40:00",
"actual_raw": 0.18565843483230093,
"time": "11:40"
},
{
"datetime": "2015-05-01T11:45:00",
"actual_raw": 0.6123156826245912,
"time": "11:45"
},
{
"datetime": "2015-05-01T11:50:00",
"actual_raw": 0.07030942817293706,
"time": "11:50"
},
{
"datetime": "2015-05-01T11:55:00",
"actual_raw": 0.9897232834395897,
"time": "11:55"
},
{
"datetime": "2015-05-01T12:00:00",
"actual_raw": 0.06353799453002651,
"time": "12:00"
},
{
"datetime": "2015-05-01T12:05:00",
"actual_raw": 0.12748364539628831,
"time": "12:05"
},
{
"datetime": "2015-05-01T12:10:00",
"actual_raw": 0.7867708919937121,
"time": "12:10"
},
{
"datetime": "2015-05-01T12:15:00",
"actual_raw": 0.4306720200716716,
"time": "12:15"
},
{
"datetime": "2015-05-01T12:20:00",
"actual_raw": 0.9362611520908188,
"time": "12:20"
},
{
"datetime": "2015-05-01T12:25:00",
"actual_raw": 0.8115819907459406,
"time": "12:25"
},
{
"datetime": "2015-05-01T12:30:00",
"actual_raw": 0.37010602691254646,
"time": "12:30"
},
{
"datetime": "2015-05-01T12:35:00",
"actual_raw": 0.004837592126712309,
"time": "12:35"
},
{
"datetime": "2015-05-01T12:40:00",
"actual_raw": 0.3860813145152836,
"time": "12:40"
},
{
"datetime": "2015-05-01T12:45:00",
"actual_raw": 0.4500292702650506,
"time": "12:45"
},
{
"datetime": "2015-05-01T12:50:00",
"actual_raw": 0.9397008976598934,
"time": "12:50"
},
{
"datetime": "2015-05-01T12:55:00",
"actual_raw": 0.00546946032840856,
"time": "12:55"
},
{
"datetime": "2015-05-01T13:00:00",
"actual_raw": 0.8567526087598093,
"time": "13:00"
},
{
"datetime": "2015-05-01T13:05:00",
"actual_raw": 0.33821467123846005,
"time": "13:05"
},
{
"datetime": "2015-05-01T13:10:00",
"actual_raw": 0.4608549792500577,
"time": "13:10"
},
{
"datetime": "2015-05-01T13:15:00",
"actual_raw": 0.18689745810841418,
"time": "13:15"
},
{
"datetime": "2015-05-01T13:20:00",
"actual_raw": 0.4527772514100148,
"time": "13:20"
},
{
"datetime": "2015-05-01T13:25:00",
"actual_raw": 0.5569659328185143,
"time": "13:25"
},
{
"datetime": "2015-05-01T13:30:00",
"actual_raw": 0.19523711864087556,
"time": "13:30"
},
{
"datetime": "2015-05-01T13:35:00",
"actual_raw": 0.7840788522330706,
"time": "13:35"
},
{
"datetime": "2015-05-01T13:40:00",
"actual_raw": 0.32852336708633223,
"time": "13:40"
},
{
"datetime": "2015-05-01T13:45:00",
"actual_raw": 0.5520301895381873,
"time": "13:45"
},
{
"datetime": "2015-05-01T13:50:00",
"actual_raw": 0.7886172181812324,
"time": "13:50"
},
{
"datetime": "2015-05-01T13:55:00",
"actual_raw": 0.6423376837149369,
"time": "13:55"
},
{
"datetime": "2015-05-01T14:00:00",
"actual_raw": 0.46337352959234857,
"time": "14:00"
},
{
"datetime": "2015-05-01T14:05:00",
"actual_raw": 0.821277366280008,
"time": "14:05"
},
{
"datetime": "2015-05-01T14:10:00",
"actual_raw": 0.3710759478364699,
"time": "14:10"
},
{
"datetime": "2015-05-01T14:15:00",
"actual_raw": 0.2628688290169833,
"time": "14:15"
},
{
"datetime": "2015-05-01T14:20:00",
"actual_raw": 0.09141309668000741,
"time": "14:20"
},
{
"datetime": "2015-05-01T14:25:00",
"actual_raw": 0.7986901712116666,
"time": "14:25"
},
{
"datetime": "2015-05-01T14:30:00",
"actual_raw": 0.40764567301914967,
"time": "14:30"
},
{
"datetime": "2015-05-01T14:35:00",
"actual_raw": 0.1057902189250155,
"time": "14:35"
},
{
"datetime": "2015-05-01T14:40:00",
"actual_raw": 0.9046543781927371,
"time": "14:40"
},
{
"datetime": "2015-05-01T14:45:00",
"actual_raw": 0.863577511136186,
"time": "14:45"
},
{
"datetime": "2015-05-01T14:50:00",
"actual_raw": 0.34605842584936786,
"time": "14:50"
},
{
"datetime": "2015-05-01T14:55:00",
"actual_raw": 0.9078113547444201,
"time": "14:55"
},
{
"datetime": "2015-05-01T15:00:00",
"actual_raw": 0.08160149592451571,
"time": "15:00"
},
{
"datetime": "2015-05-01T15:05:00",
"actual_raw": 0.3445691223663512,
"time": "15:05"
},
{
"datetime": "2015-05-01T15:10:00",
"actual_raw": 0.929196317457672,
"time": "15:10"
},
{
"datetime": "2015-05-01T15:15:00",
"actual_raw": 0.471509097746343,
"time": "15:15"
},
{
"datetime": "2015-05-01T15:20:00",
"actual_raw": 0.27661118681847774,
"time": "15:20"
},
{
"datetime": "2015-05-01T15:25:00",
"actual_raw": 0.0314598899195504,
"time": "15:25"
},
{
"datetime": "2015-05-01T15:30:00",
"actual_raw": 0.37923461976077044,
"time": "15:30"
},
{
"datetime": "2015-05-01T15:35:00",
"actual_raw": 0.5469630609650983,
"time": "15:35"
},
{
"datetime": "2015-05-01T15:40:00",
"actual_raw": 0.19417229243880607,
"time": "15:40"
},
{
"datetime": "2015-05-01T15:45:00",
"actual_raw": 0.12284994174497454,
"time": "15:45"
},
{
"datetime": "2015-05-01T15:50:00",
"actual_raw": 0.10981271490268762,
"time": "15:50"
},
{
"datetime": "2015-05-01T15:55:00",
"actual_raw": 0.26628695768381383,
"time": "15:55"
},
{
"datetime": "2015-05-01T16:00:00",
"actual_raw": 0.1495491944746744,
"time": "16:00"
},
{
"datetime": "2015-05-01T16:05:00",
"actual_raw": 0.356557062912382,
"time": "16:05"
},
{
"datetime": "2015-05-01T16:10:00",
"actual_raw": 0.3409948010988971,
"time": "16:10"
},
{
"datetime": "2015-05-01T16:15:00",
"actual_raw": 0.333141654297076,
"time": "16:15"
},
{
"datetime": "2015-05-01T16:20:00",
"actual_raw": 0.61907548026561,
"time": "16:20"
},
{
"datetime": "2015-05-01T16:25:00",
"actual_raw": 0.7117111957445662,
"time": "16:25"
},
{
"datetime": "2015-05-01T16:30:00",
"actual_raw": 0.1577848732134931,
"time": "16:30"
},
{
"datetime": "2015-05-01T16:35:00",
"actual_raw": 0.7483620711823563,
"time": "16:35"
},
{
"datetime": "2015-05-01T16:40:00",
"actual_raw": 0.4070095743643575,
"time": "16:40"
},
{
"datetime": "2015-05-01T16:45:00",
"actual_raw": 0.9956768951711292,
"time": "16:45"
},
{
"datetime": "2015-05-01T16:50:00",
"actual_raw": 0.12393908334362203,
"time": "16:50"
},
{
"datetime": "2015-05-01T16:55:00",
"actual_raw": 0.027168025642099636,
"time": "16:55"
},
{
"datetime": "2015-05-01T17:00:00",
"actual_raw": 0.8224554613126761,
"time": "17:00"
},
{
"datetime": "2015-05-01T17:05:00",
"actual_raw": 0.49422720083969673,
"time": "17:05"
},
{
"datetime": "2015-05-01T17:10:00",
"actual_raw": 0.4989567960139415,
"time": "17:10"
},
{
"datetime": "2015-05-01T17:15:00",
"actual_raw": 0.8200690887779692,
"time": "17:15"
},
{
"datetime": "2015-05-01T17:20:00",
"actual_raw": 0.4096492814579009,
"time": "17:20"
},
{
"datetime": "2015-05-01T17:25:00",
"actual_raw": 0.17685789093557136,
"time": "17:25"
},
{
"datetime": "2015-05-01T17:30:00",
"actual_raw": 0.24288962760978494,
"time": "17:30"
},
{
"datetime": "2015-05-01T17:35:00",
"actual_raw": 0.46954779413924663,
"time": "17:35"
},
{
"datetime": "2015-05-01T17:40:00",
"actual_raw": 0.8367555730254648,
"time": "17:40"
},
{
"datetime": "2015-05-01T17:45:00",
"actual_raw": 0.06308343639722924,
"time": "17:45"
},
{
"datetime": "2015-05-01T17:50:00",
"actual_raw": 0.301274700307242,
"time": "17:50"
},
{
"datetime": "2015-05-01T17:55:00",
"actual_raw": 0.08699031938334834,
"time": "17:55"
},
{
"datetime": "2015-05-01T18:00:00",
"actual_raw": 0.18991003485134628,
"time": "18:00"
},
{
"datetime": "2015-05-01T18:05:00",
"actual_raw": 0.11771026236393589,
"time": "18:05"
},
{
"datetime": "2015-05-01T18:10:00",
"actual_raw": 0.04362771229983142,
"time": "18:10"
},
{
"datetime": "2015-05-01T18:15:00",
"actual_raw": 0.4943487518759181,
"time": "18:15"
},
{
"datetime": "2015-05-01T18:20:00",
"actual_raw": 0.5765906152265743,
"time": "18:20"
},
{
"datetime": "2015-05-01T18:25:00",
"actual_raw": 0.46780666788069525,
"time": "18:25"
},
{
"datetime": "2015-05-01T18:30:00",
"actual_raw": 0.40132904539760317,
"time": "18:30"
},
{
"datetime": "2015-05-01T18:35:00",
"actual_raw": 0.940552297383368,
"time": "18:35"
},
{
"datetime": "2015-05-01T18:40:00",
"actual_raw": 0.987851656876418,
"time": "18:40"
},
{
"datetime": "2015-05-01T18:45:00",
"actual_raw": 0.35356306201999366,
"time": "18:45"
},
{
"datetime": "2015-05-01T18:50:00",
"actual_raw": 0.6716736571191905,
"time": "18:50"
},
{
"datetime": "2015-05-01T18:55:00",
"actual_raw": 0.46134645873933033,
"time": "18:55"
},
{
"datetime": "2015-05-01T19:00:00",
"actual_raw": 0.9601062795180108,
"time": "19:00"
},
{
"datetime": "2015-05-01T19:05:00",
"actual_raw": 0.9303564962817635,
"time": "19:05"
},
{
"datetime": "2015-05-01T19:10:00",
"actual_raw": 0.14943366186536844,
"time": "19:10"
},
{
"datetime": "2015-05-01T19:15:00",
"actual_raw": 0.9744904262104094,
"time": "19:15"
},
{
"datetime": "2015-05-01T19:20:00",
"actual_raw": 0.8381004427738176,
"time": "19:20"
},
{
"datetime": "2015-05-01T19:25:00",
"actual_raw": 0.9198885715702138,
"time": "19:25"
},
{
"datetime": "2015-05-01T19:30:00",
"actual_raw": 0.17471368027187484,
"time": "19:30"
},
{
"datetime": "2015-05-01T19:35:00",
"actual_raw": 0.8923566563454017,
"time": "19:35"
},
{
"datetime": "2015-05-01T19:40:00",
"actual_raw": 0.07175962390668778,
"time": "19:40"
},
{
"datetime": "2015-05-01T19:45:00",
"actual_raw": 0.8165448817918827,
"time": "19:45"
},
{
"datetime": "2015-05-01T19:50:00",
"actual_raw": 0.9380820870208537,
"time": "19:50"
},
{
"datetime": "2015-05-01T19:55:00",
"actual_raw": 0.10291174475684028,
"time": "19:55"
},
{
"datetime": "2015-05-01T20:00:00",
"actual_raw": 0.2498087497726048,
"time": "20:00"
},
{
"datetime": "2015-05-01T20:05:00",
"actual_raw": 0.602627917272362,
"time": "20:05"
},
{
"datetime": "2015-05-01T20:10:00",
"actual_raw": 0.1988466846614747,
"time": "20:10"
},
{
"datetime": "2015-05-01T20:15:00",
"actual_raw": 0.25835287654951944,
"time": "20:15"
},
{
"datetime": "2015-05-01T20:20:00",
"actual_raw": 0.6975400588661358,
"time": "20:20"
},
{
"datetime": "2015-05-01T20:25:00",
"actual_raw": 0.14249723372888334,
"time": "20:25"
},
{
"datetime": "2015-05-01T20:30:00",
"actual_raw": 0.6127594303573451,
"time": "20:30"
},
{
"datetime": "2015-05-01T20:35:00",
"actual_raw": 0.6511133799838278,
"time": "20:35"
},
{
"datetime": "2015-05-01T20:40:00",
"actual_raw": 0.627011008643325,
"time": "20:40"
},
{
"datetime": "2015-05-01T20:45:00",
"actual_raw": 0.24205198018366503,
"time": "20:45"
},
{
"datetime": "2015-05-01T20:50:00",
"actual_raw": 0.40946213469468373,
"time": "20:50"
},
{
"datetime": "2015-05-01T20:55:00",
"actual_raw": 0.8948487612486239,
"time": "20:55"
},
{
"datetime": "2015-05-01T21:00:00",
"actual_raw": 0.3369829989210106,
"time": "21:00"
},
{
"datetime": "2015-05-01T21:05:00",
"actual_raw": 0.9273027898507924,
"time": "21:05"
},
{
"datetime": "2015-05-01T21:10:00",
"actual_raw": 0.5942141658238553,
"time": "21:10"
},
{
"datetime": "2015-05-01T21:15:00",
"actual_raw": 0.8632923954140872,
"time": "21:15"
},
{
"datetime": "2015-05-01T21:20:00",
"actual_raw": 0.4669674191432198,
"time": "21:20"
},
{
"datetime": "2015-05-01T21:25:00",
"actual_raw": 0.9991295963798047,
"time": "21:25"
},
{
"datetime": "2015-05-01T21:30:00",
"actual_raw": 0.4562632253866835,
"time": "21:30"
},
{
"datetime": "2015-05-01T21:35:00",
"actual_raw": 0.8116025255098096,
"time": "21:35"
},
{
"datetime": "2015-05-01T21:40:00",
"actual_raw": 0.49473876170455977,
"time": "21:40"
},
{
"datetime": "2015-05-01T21:45:00",
"actual_raw": 0.6427772450085122,
"time": "21:45"
},
{
"datetime": "2015-05-01T21:50:00",
"actual_raw": 0.9290506832797943,
"time": "21:50"
},
{
"datetime": "2015-05-01T21:55:00",
"actual_raw": 0.17248493839887113,
"time": "21:55"
},
{
"datetime": "2015-05-01T22:00:00",
"actual_raw": 0.7656462761928818,
"time": "22:00"
},
{
"datetime": "2015-05-01T22:05:00",
"actual_raw": 0.5908720293034568,
"time": "22:05"
},
{
"datetime": "2015-05-01T22:10:00",
"actual_raw": 0.09069252954837337,
"time": "22:10"
},
{
"datetime": "2015-05-01T22:15:00",
"actual_raw": 0.23034661251226396,
"time": "22:15"
},
{
"datetime": "2015-05-01T22:20:00",
"actual_raw": 0.9368095030696179,
"time": "22:20"
},
{
"datetime": "2015-05-01T22:25:00",
"actual_raw": 0.6749388285653006,
"time": "22:25"
},
{
"datetime": "2015-05-01T22:30:00",
"actual_raw": 0.7631361740569497,
"time": "22:30"
},
{
"datetime": "2015-05-01T22:35:00",
"actual_raw": 0.1884516835726867,
"time": "22:35"
},
{
"datetime": "2015-05-01T22:40:00",
"actual_raw": 0.5107270206881862,
"time": "22:40"
},
{
"datetime": "2015-05-01T22:45:00",
"actual_raw": 0.5372328844602552,
"time": "22:45"
},
{
"datetime": "2015-05-01T22:50:00",
"actual_raw": 0.8492250286030663,
"time": "22:50"
},
{
"datetime": "2015-05-01T22:55:00",
"actual_raw": 0.42897511956162004,
"time": "22:55"
},
{
"datetime": "2015-05-01T23:00:00",
"actual_raw": 0.23120617716779768,
"time": "23:00"
},
{
"datetime": "2015-05-01T23:05:00",
"actual_raw": 0.23195679679736247,
"time": "23:05"
},
{
"datetime": "2015-05-01T23:10:00",
"actual_raw": 0.7058483037021005,
"time": "23:10"
},
{
"datetime": "2015-05-01T23:15:00",
"actual_raw": 0.04657206521877655,
"time": "23:15"
},
{
"datetime": "2015-05-01T23:20:00",
"actual_raw": 0.1748232335412898,
"time": "23:20"
},
{
"datetime": "2015-05-01T23:25:00",
"actual_raw": 0.28539117924705804,
"time": "23:25"
},
{
"datetime": "2015-05-01T23:30:00",
"actual_raw": 0.7956224816382274,
"time": "23:30"
},
{
"datetime": "2015-05-01T23:35:00",
"actual_raw": 0.8913681534987746,
"time": "23:35"
},
{
"datetime": "2015-05-01T23:40:00",
"actual_raw": 0.9891349859144781,
"time": "23:40"
},
{
"datetime": "2015-05-01T23:45:00",
"actual_raw": 0.7904811126963077,
"time": "23:45"
},
{
"datetime": "2015-05-01T23:50:00",
"actual_raw": 0.5985267476050086,
"time": "23:50"
},
{
"datetime": "2015-05-01T23:55:00",
"actual_raw": 0.3961516870387739,
"time": "23:55"
}
];
var spec =
{ "width": 720
, "height": 360
, "data":
[ { "name": "raw_data"
, "values": raw_data
, "format":
{ "type": "json"
, "parse":
{ "datetime": "date"
}
}
}
]
, "scales":
[ { "name": "x"
, "type": "time"
, "range": "width"
, "domain":
{ "data": "raw_data"
, "field": "data.datetime"
}
, "nice": "hour"
}
, { "name": "y"
, "range": "height"
, "domain":
{ "data": "raw_data"
, "field": "data.actual_raw"
}
, "nice": true
}
]
, "axes":
[ { "type": "x"
, "scale": "x"
, "format": "%H:%M"
, "ticks": 24
, "grid": true
, "layer": "back"
, "properties":
{ "grid":
{ "stroke": {"value": "hsl(0, 0%, 80%)"}
, "strokeWidth": {"value": 0.5}
}
}
}
, { "type": "y"
, "scale": "y"
, "grid": true
, "layer": "back"
, "properties":
{ "grid":
{ "stroke": {"value": "hsl(0, 0%, 60%)"}
, "strokeDash": {"value": [2, 4]}
, "strokeWidth": {"value": 0.5}
}
}
}
]
, "marks":
[ { "type": "line"
, "from":
{ "data": "raw_data"
}
, "properties":
{ "enter":
{ "x": {"scale": "x", "field": "data.datetime"}
, "y": {"scale": "y", "field": "data.actual_raw"}
, "stroke": {"value": "hsl(200, 100%, 20%)"}
, "strokeWidth": {"value": 0.5}
}
}
}
]
};
vg.parse.spec(spec, function(chart) { chart({el: "#chart", renderer: "svg"}).update(); });
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment