Last active
May 2, 2018 19:09
-
-
Save maasg/95eab0e49eeef9c7457bca2900bf412e to your computer and use it in GitHub Desktop.
Comparison of Rate Source implementation PR
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
{"metadata":{"id":"9147869f-b51e-4e80-9467-8016fe5bbf65","name":"rateControllerPR","user_save_timestamp":"1970-01-01T01:00:00.000Z","auto_save_timestamp":"1970-01-01T01:00:00.000Z","language_info":{"name":"scala","file_extension":"scala","codemirror_mode":"text/x-scala"},"trusted":true,"sparkNotebook":null,"customLocalRepo":null,"customRepos":null,"customDeps":null,"customImports":null,"customArgs":null,"customSparkConf":null,"customVars":null},"cells":[{"metadata":{"trusted":true,"input_collapsed":false,"collapsed":false,"id":"BA8B01A097484D07BD15EFB283AD9B5D"},"cell_type":"code","source":["/** Calculate the end value we will emit at the time `seconds`. */\n"," def valueAtSecond(seconds: Long, rowsPerSecond: Long, rampUpTimeSeconds: Long): Long = {\n"," // E.g., rampUpTimeSeconds = 4, rowsPerSecond = 10\n"," // Then speedDeltaPerSecond = 2\n"," //\n"," // seconds = 0 1 2 3 4 5 6\n"," // speed = 0 2 4 6 8 10 10 (speedDeltaPerSecond * seconds)\n"," // end value = 0 2 6 12 20 30 40 (0 + speedDeltaPerSecond * seconds) * (seconds + 1) / 2\n"," val speedDeltaPerSecond = rowsPerSecond / (rampUpTimeSeconds + 1)\n"," if (seconds <= rampUpTimeSeconds) {\n"," // Calculate \"(0 + speedDeltaPerSecond * seconds) * (seconds + 1) / 2\" in a special way to\n"," // avoid overflow\n"," if (seconds % 2 == 1) {\n"," (seconds + 1) / 2 * speedDeltaPerSecond * seconds\n"," } else {\n"," seconds / 2 * speedDeltaPerSecond * (seconds + 1)\n"," }\n"," } else {\n"," // rampUpPart is just a special case of the above formula: rampUpTimeSeconds == seconds\n"," val rampUpPart = valueAtSecond(rampUpTimeSeconds, rowsPerSecond, rampUpTimeSeconds)\n"," rampUpPart + (seconds - rampUpTimeSeconds) * rowsPerSecond\n"," }\n"," }\n"," "],"outputs":[{"name":"stdout","output_type":"stream","text":"valueAtSecond: (seconds: Long, rowsPerSecond: Long, rampUpTimeSeconds: Long)Long\n"},{"metadata":{},"data":{"text/html":""},"output_type":"execute_result","execution_count":1,"time":"Took: 1.163s, at 2018-05-02 20:57"}]},{"metadata":{"trusted":true,"input_collapsed":false,"collapsed":false,"id":"9353595D8F1947C0887B723B612BB8CF"},"cell_type":"code","source":[" def valueAtSecond2(seconds: Long, rowsPerSecond: Long, rampUpTimeSeconds: Long): Long = {\n"," // E.g., rampUpTimeSeconds = 4, rowsPerSecond = 10\n"," // Then speedDeltaPerSecond = 2\n"," //\n"," // seconds = 0 1 2 3 4 5 6\n"," // speed = 0 2 4 6 8 10 10 (speedDeltaPerSecond * seconds)\n"," // end value = 0 2 6 12 20 30 40 (0 + speedDeltaPerSecond * seconds) * (seconds + 1) / 2\n"," val speedDeltaPerSecond = math.max(1, rowsPerSecond / (rampUpTimeSeconds + 1))\n","\n"," // If rowsPerSecond is smaller than rampUpTimeSeconds, speed will exceed the rowsPerSecond in\n"," // the rampUpTimes, so we should delay the ramp up.\n"," // E.g., rampUpTimeSeconds = 10, rowsPerSecond = 6\n"," // Then speedDeltaPerSecond = 1\n"," //\n"," // seconds = 0 1 2 3 4 5 6 7 8 9 10 11\n"," // speed = 0 0 0 0 0 1 2 3 4 5 6 6\n"," // end value = 0 0 0 0 0 1 3 6 10 15 21 27\n"," val validSeconds = math.max(0, math.min(seconds, seconds - (rampUpTimeSeconds - rowsPerSecond)))\n","\n"," if (seconds <= rampUpTimeSeconds) {\n"," // Calculate \"(0 + speedDeltaPerSecond * seconds) * (seconds + 1) / 2\" in a special way to\n"," // avoid overflow\n"," if (validSeconds % 2 == 1) {\n"," (validSeconds + 1) / 2 * speedDeltaPerSecond * validSeconds\n"," } else {\n"," validSeconds / 2 * speedDeltaPerSecond * (validSeconds + 1)\n"," }\n"," } else {\n"," // rampUpPart is just a special case of the above formula: rampUpTimeSeconds == seconds\n"," val rampUpPart = valueAtSecond2(rampUpTimeSeconds, rowsPerSecond, rampUpTimeSeconds)\n"," rampUpPart + (seconds - rampUpTimeSeconds) * rowsPerSecond\n"," }\n"," }"],"outputs":[{"name":"stdout","output_type":"stream","text":"valueAtSecond2: (seconds: Long, rowsPerSecond: Long, rampUpTimeSeconds: Long)Long\n"},{"metadata":{},"data":{"text/html":""},"output_type":"execute_result","execution_count":2,"time":"Took: 1.017s, at 2018-05-02 20:57"}]},{"metadata":{"trusted":true,"input_collapsed":false,"collapsed":false,"presentation":{"tabs_state":"{\n \"tab_id\": \"#tab662667508-2\"\n}","pivot_chart_state":"{\n \"hiddenAttributes\": [],\n \"menuLimit\": 200,\n \"cols\": [],\n \"rows\": [],\n \"vals\": [],\n \"exclusions\": {},\n \"inclusions\": {},\n \"unusedAttrsVertical\": 85,\n \"autoSortUnusedAttrs\": false,\n \"inclusionsInfo\": {},\n \"aggregatorName\": \"Count\",\n \"rendererName\": \"Table\"\n}"},"id":"FDC3BF78C58A4C2B888C751A573401EE"},"cell_type":"code","source":["(0 to 101).map(x=> (x, valueAtSecond(x, rowsPerSecond = 10, rampUpTimeSeconds=100)))"],"outputs":[{"name":"stdout","output_type":"stream","text":"res9: scala.collection.immutable.IndexedSeq[(Int, Long)] = Vector((0,0), (1,0), (2,0), (3,0), (4,0), (5,0), (6,0), (7,0), (8,0), (9,0), (10,0), (11,0), (12,0), (13,0), (14,0), (15,0), (16,0), (17,0), (18,0), (19,0), (20,0), (21,0), (22,0), (23,0), (24,0), (25,0), (26,0), (27,0), (28,0), (29,0), (30,0), (31,0), (32,0), (33,0), (34,0), (35,0), (36,0), (37,0), (38,0), (39,0), (40,0), (41,0), (42,0), (43,0), (44,0), (45,0), (46,0), (47,0), (48,0), (49,0), (50,0), (51,0), (52,0), (53,0), (54,0), (55,0), (56,0), (57,0), (58,0), (59,0), (60,0), (61,0), (62,0), (63,0), (64,0), (65,0), (66,0), (67,0), (68,0), (69,0), (70,0), (71,0), (72,0), (73,0), (74,0), (75,0), (76,0), (77,0), (78,0), (79,0), (80,0), (81,0), (82,0), (83,0), (84,0), (85,0), (86,0), (87,0), (88,0), (89,0), (90,0), (91,0), (92,0..."},{"metadata":{},"data":{"text/html":"<div>\n <script data-this=\"{"dataId":"anon4dc2a3f9c06c1eaecfbaa28bf3e8d19b","dataInit":[],"genId":"662667508"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tabs'], \n function(playground, _magictabs) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictabs,\n \"o\": {}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <div>\n <ul class=\"nav nav-tabs\" id=\"ul662667508\"><li>\n <a href=\"#tab662667508-0\"><i class=\"fa fa-table\"/></a>\n </li><li>\n <a href=\"#tab662667508-1\"><i class=\"fa fa-dot-circle-o\"/></a>\n </li><li>\n <a href=\"#tab662667508-2\"><i class=\"fa fa-line-chart\"/></a>\n </li><li>\n <a href=\"#tab662667508-3\"><i class=\"fa fa-bar-chart\"/></a>\n </li><li>\n <a href=\"#tab662667508-4\"><i class=\"fa fa-cubes\"/></a>\n </li></ul>\n\n <div class=\"tab-content\" id=\"tab662667508\"><div class=\"tab-pane\" id=\"tab662667508-0\">\n <div>\n <script data-this=\"{"dataId":"anon159cc9c3efbd9605b0ceefcdc23b75fb","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":0},{"_1":92,"_2":0},{"_1":93,"_2":0},{"_1":94,"_2":0},{"_1":95,"_2":0},{"_1":96,"_2":0},{"_1":97,"_2":0},{"_1":98,"_2":0},{"_1":99,"_2":0},{"_1":100,"_2":0},{"_1":101,"_2":10}],"genId":"776125985"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tableChart'], \n function(playground, _magictableChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictableChart,\n \"o\": {\"headers\":[\"_1\",\"_2\"],\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon6dc42799647198f5bcec0043bd4048b6","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon705d3d280a6b71c8ae86c7512ce38c25","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab662667508-1\">\n <div>\n <script data-this=\"{"dataId":"anon70d87a99a40ff90fba83a8f1263cc72e","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":0},{"_1":92,"_2":0},{"_1":93,"_2":0},{"_1":94,"_2":0},{"_1":95,"_2":0},{"_1":96,"_2":0},{"_1":97,"_2":0},{"_1":98,"_2":0},{"_1":99,"_2":0},{"_1":100,"_2":0},{"_1":101,"_2":10}],"genId":"489742364"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/scatterChart'], \n function(playground, _magicscatterChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicscatterChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anond685dd639365333001dd135362c4265f","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon185498f8c2d39a21cd976443ca19a14b","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab662667508-2\">\n <div>\n <script data-this=\"{"dataId":"anon152e6078f86b70ca5de3d19e24a92867","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":0},{"_1":92,"_2":0},{"_1":93,"_2":0},{"_1":94,"_2":0},{"_1":95,"_2":0},{"_1":96,"_2":0},{"_1":97,"_2":0},{"_1":98,"_2":0},{"_1":99,"_2":0},{"_1":100,"_2":0},{"_1":101,"_2":10}],"genId":"1596685933"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/lineChart'], \n function(playground, _magiclineChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magiclineChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anona2109416aba9924d2adf7eefb6b2431e","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anonf428a8e4f8cbc96f3cd5324cf1c38643","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab662667508-3\">\n <div>\n <script data-this=\"{"dataId":"anon1f9407ccf939ad8b7c8ad30cbaaa69e3","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":0},{"_1":92,"_2":0},{"_1":93,"_2":0},{"_1":94,"_2":0},{"_1":95,"_2":0},{"_1":96,"_2":0},{"_1":97,"_2":0},{"_1":98,"_2":0},{"_1":99,"_2":0},{"_1":100,"_2":0},{"_1":101,"_2":10}],"genId":"1451888217"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/barChart'], \n function(playground, _magicbarChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicbarChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anondad6d52ded15a5006965ea1eefe18778","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon2159bb733c5d46daf4fef587e47be019","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab662667508-4\">\n <div>\n <script data-this=\"{"dataId":"anonf01ad5b9903ca66dda914ea0bc54c19d","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":0},{"_1":92,"_2":0},{"_1":93,"_2":0},{"_1":94,"_2":0},{"_1":95,"_2":0},{"_1":96,"_2":0},{"_1":97,"_2":0},{"_1":98,"_2":0},{"_1":99,"_2":0},{"_1":100,"_2":0},{"_1":101,"_2":10}],"genId":"704230874"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/pivotChart'], \n function(playground, _magicpivotChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicpivotChart,\n \"o\": {\"width\":600,\"height\":400,\"derivedAttributes\":{},\"extraOptions\":{}}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon74a6c120fb39c51d13d97fb9678c7bd3","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon35087a28e151da0099dc02a201345d01","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div></div>\n </div>\n </div></div>"},"output_type":"execute_result","execution_count":6,"time":"Took: 1.018s, at 2018-05-02 20:58"}]},{"metadata":{"trusted":true,"input_collapsed":false,"collapsed":false,"presentation":{"tabs_state":"{\n \"tab_id\": \"#tab1187879623-2\"\n}","pivot_chart_state":"{\n \"hiddenAttributes\": [],\n \"menuLimit\": 200,\n \"cols\": [],\n \"rows\": [],\n \"vals\": [],\n \"exclusions\": {},\n \"inclusions\": {},\n \"unusedAttrsVertical\": 85,\n \"autoSortUnusedAttrs\": false,\n \"inclusionsInfo\": {},\n \"aggregatorName\": \"Count\",\n \"rendererName\": \"Table\"\n}"},"id":"9D4C1304A63F410985A434FEF2643570"},"cell_type":"code","source":["(0 to 101).map(x=> (x, valueAtSecond2(x, rowsPerSecond = 10, rampUpTimeSeconds=100)))"],"outputs":[{"name":"stdout","output_type":"stream","text":"res11: scala.collection.immutable.IndexedSeq[(Int, Long)] = Vector((0,0), (1,0), (2,0), (3,0), (4,0), (5,0), (6,0), (7,0), (8,0), (9,0), (10,0), (11,0), (12,0), (13,0), (14,0), (15,0), (16,0), (17,0), (18,0), (19,0), (20,0), (21,0), (22,0), (23,0), (24,0), (25,0), (26,0), (27,0), (28,0), (29,0), (30,0), (31,0), (32,0), (33,0), (34,0), (35,0), (36,0), (37,0), (38,0), (39,0), (40,0), (41,0), (42,0), (43,0), (44,0), (45,0), (46,0), (47,0), (48,0), (49,0), (50,0), (51,0), (52,0), (53,0), (54,0), (55,0), (56,0), (57,0), (58,0), (59,0), (60,0), (61,0), (62,0), (63,0), (64,0), (65,0), (66,0), (67,0), (68,0), (69,0), (70,0), (71,0), (72,0), (73,0), (74,0), (75,0), (76,0), (77,0), (78,0), (79,0), (80,0), (81,0), (82,0), (83,0), (84,0), (85,0), (86,0), (87,0), (88,0), (89,0), (90,0), (91,1), (92,..."},{"metadata":{},"data":{"text/html":"<div>\n <script data-this=\"{"dataId":"anondcaf44d2cd607507f43ca7326eb48326","dataInit":[],"genId":"1187879623"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tabs'], \n function(playground, _magictabs) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictabs,\n \"o\": {}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <div>\n <ul class=\"nav nav-tabs\" id=\"ul1187879623\"><li>\n <a href=\"#tab1187879623-0\"><i class=\"fa fa-table\"/></a>\n </li><li>\n <a href=\"#tab1187879623-1\"><i class=\"fa fa-dot-circle-o\"/></a>\n </li><li>\n <a href=\"#tab1187879623-2\"><i class=\"fa fa-line-chart\"/></a>\n </li><li>\n <a href=\"#tab1187879623-3\"><i class=\"fa fa-bar-chart\"/></a>\n </li><li>\n <a href=\"#tab1187879623-4\"><i class=\"fa fa-cubes\"/></a>\n </li></ul>\n\n <div class=\"tab-content\" id=\"tab1187879623\"><div class=\"tab-pane\" id=\"tab1187879623-0\">\n <div>\n <script data-this=\"{"dataId":"anon981264e344ed74d553bfe50ed6c73a4d","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":1},{"_1":92,"_2":3},{"_1":93,"_2":6},{"_1":94,"_2":10},{"_1":95,"_2":15},{"_1":96,"_2":21},{"_1":97,"_2":28},{"_1":98,"_2":36},{"_1":99,"_2":45},{"_1":100,"_2":55},{"_1":101,"_2":65}],"genId":"1188761135"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tableChart'], \n function(playground, _magictableChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictableChart,\n \"o\": {\"headers\":[\"_1\",\"_2\"],\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon9dbe5a63b29004fdfd303efb6bff46f6","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon7f32732baaaf047be1d4f0e21e12a78a","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab1187879623-1\">\n <div>\n <script data-this=\"{"dataId":"anoncfd9685b956910442448c7f953d3d9ce","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":1},{"_1":92,"_2":3},{"_1":93,"_2":6},{"_1":94,"_2":10},{"_1":95,"_2":15},{"_1":96,"_2":21},{"_1":97,"_2":28},{"_1":98,"_2":36},{"_1":99,"_2":45},{"_1":100,"_2":55},{"_1":101,"_2":65}],"genId":"1661849098"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/scatterChart'], \n function(playground, _magicscatterChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicscatterChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon29de3b185b0b4eb8414ca7d44cd997fa","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anond52f139a9357149ee8ac1af9dc168abe","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab1187879623-2\">\n <div>\n <script data-this=\"{"dataId":"anon0052d85c25b3ae265984783598f22b38","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":1},{"_1":92,"_2":3},{"_1":93,"_2":6},{"_1":94,"_2":10},{"_1":95,"_2":15},{"_1":96,"_2":21},{"_1":97,"_2":28},{"_1":98,"_2":36},{"_1":99,"_2":45},{"_1":100,"_2":55},{"_1":101,"_2":65}],"genId":"1001107506"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/lineChart'], \n function(playground, _magiclineChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magiclineChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon591566710487f2750f8a6298024f73bb","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anonce9d9a41a5fb0debb55a93e9033e96cd","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab1187879623-3\">\n <div>\n <script data-this=\"{"dataId":"anon65eceafefce57cc17d5ab0be294f7945","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":1},{"_1":92,"_2":3},{"_1":93,"_2":6},{"_1":94,"_2":10},{"_1":95,"_2":15},{"_1":96,"_2":21},{"_1":97,"_2":28},{"_1":98,"_2":36},{"_1":99,"_2":45},{"_1":100,"_2":55},{"_1":101,"_2":65}],"genId":"601541330"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/barChart'], \n function(playground, _magicbarChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicbarChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anona733c7a0e51ed1d384e90f11e968b3a3","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon04fcf52c0312619bd1ee32a6887bd159","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab1187879623-4\">\n <div>\n <script data-this=\"{"dataId":"anone2c59cbcf2f544317e3f651a784fb79c","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":0},{"_1":2,"_2":0},{"_1":3,"_2":0},{"_1":4,"_2":0},{"_1":5,"_2":0},{"_1":6,"_2":0},{"_1":7,"_2":0},{"_1":8,"_2":0},{"_1":9,"_2":0},{"_1":10,"_2":0},{"_1":11,"_2":0},{"_1":12,"_2":0},{"_1":13,"_2":0},{"_1":14,"_2":0},{"_1":15,"_2":0},{"_1":16,"_2":0},{"_1":17,"_2":0},{"_1":18,"_2":0},{"_1":19,"_2":0},{"_1":20,"_2":0},{"_1":21,"_2":0},{"_1":22,"_2":0},{"_1":23,"_2":0},{"_1":24,"_2":0},{"_1":25,"_2":0},{"_1":26,"_2":0},{"_1":27,"_2":0},{"_1":28,"_2":0},{"_1":29,"_2":0},{"_1":30,"_2":0},{"_1":31,"_2":0},{"_1":32,"_2":0},{"_1":33,"_2":0},{"_1":34,"_2":0},{"_1":35,"_2":0},{"_1":36,"_2":0},{"_1":37,"_2":0},{"_1":38,"_2":0},{"_1":39,"_2":0},{"_1":40,"_2":0},{"_1":41,"_2":0},{"_1":42,"_2":0},{"_1":43,"_2":0},{"_1":44,"_2":0},{"_1":45,"_2":0},{"_1":46,"_2":0},{"_1":47,"_2":0},{"_1":48,"_2":0},{"_1":49,"_2":0},{"_1":50,"_2":0},{"_1":51,"_2":0},{"_1":52,"_2":0},{"_1":53,"_2":0},{"_1":54,"_2":0},{"_1":55,"_2":0},{"_1":56,"_2":0},{"_1":57,"_2":0},{"_1":58,"_2":0},{"_1":59,"_2":0},{"_1":60,"_2":0},{"_1":61,"_2":0},{"_1":62,"_2":0},{"_1":63,"_2":0},{"_1":64,"_2":0},{"_1":65,"_2":0},{"_1":66,"_2":0},{"_1":67,"_2":0},{"_1":68,"_2":0},{"_1":69,"_2":0},{"_1":70,"_2":0},{"_1":71,"_2":0},{"_1":72,"_2":0},{"_1":73,"_2":0},{"_1":74,"_2":0},{"_1":75,"_2":0},{"_1":76,"_2":0},{"_1":77,"_2":0},{"_1":78,"_2":0},{"_1":79,"_2":0},{"_1":80,"_2":0},{"_1":81,"_2":0},{"_1":82,"_2":0},{"_1":83,"_2":0},{"_1":84,"_2":0},{"_1":85,"_2":0},{"_1":86,"_2":0},{"_1":87,"_2":0},{"_1":88,"_2":0},{"_1":89,"_2":0},{"_1":90,"_2":0},{"_1":91,"_2":1},{"_1":92,"_2":3},{"_1":93,"_2":6},{"_1":94,"_2":10},{"_1":95,"_2":15},{"_1":96,"_2":21},{"_1":97,"_2":28},{"_1":98,"_2":36},{"_1":99,"_2":45},{"_1":100,"_2":55},{"_1":101,"_2":65}],"genId":"474187326"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/pivotChart'], \n function(playground, _magicpivotChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicpivotChart,\n \"o\": {\"width\":600,\"height\":400,\"derivedAttributes\":{},\"extraOptions\":{}}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anondd49c2a6854f3cbbd64e094afc3eca18","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anondad299fc0fed00bafe637b419c81e74c","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div></div>\n </div>\n </div></div>"},"output_type":"execute_result","execution_count":7,"time":"Took: 0.968s, at 2018-05-02 20:59"}]},{"metadata":{"trusted":true,"input_collapsed":false,"collapsed":false,"presentation":{"tabs_state":"{\n \"tab_id\": \"#tab473456626-2\"\n}","pivot_chart_state":"{\n \"hiddenAttributes\": [],\n \"menuLimit\": 200,\n \"cols\": [],\n \"rows\": [],\n \"vals\": [],\n \"exclusions\": {},\n \"inclusions\": {},\n \"unusedAttrsVertical\": 85,\n \"autoSortUnusedAttrs\": false,\n \"inclusionsInfo\": {},\n \"aggregatorName\": \"Count\",\n \"rendererName\": \"Table\"\n}"},"id":"67248A15E4644C148E19D38E01DE6EEA"},"cell_type":"code","source":["(0 to 101).map(x=> (x, valueAtSecond2(x, rowsPerSecond = 101, rampUpTimeSeconds=100)))"],"outputs":[{"name":"stdout","output_type":"stream","text":"res13: scala.collection.immutable.IndexedSeq[(Int, Long)] = Vector((0,0), (1,1), (2,3), (3,6), (4,10), (5,15), (6,21), (7,28), (8,36), (9,45), (10,55), (11,66), (12,78), (13,91), (14,105), (15,120), (16,136), (17,153), (18,171), (19,190), (20,210), (21,231), (22,253), (23,276), (24,300), (25,325), (26,351), (27,378), (28,406), (29,435), (30,465), (31,496), (32,528), (33,561), (34,595), (35,630), (36,666), (37,703), (38,741), (39,780), (40,820), (41,861), (42,903), (43,946), (44,990), (45,1035), (46,1081), (47,1128), (48,1176), (49,1225), (50,1275), (51,1326), (52,1378), (53,1431), (54,1485), (55,1540), (56,1596), (57,1653), (58,1711), (59,1770), (60,1830), (61,1891), (62,1953), (63,2016), (64,2080), (65,2145), (66,2211), (67,2278), (68,2346), (69,2415), (70,2485), (71,2556), (72,2628), ..."},{"metadata":{},"data":{"text/html":"<div>\n <script data-this=\"{"dataId":"anon180119773e242df2d5c8c619a81f5532","dataInit":[],"genId":"473456626"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tabs'], \n function(playground, _magictabs) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictabs,\n \"o\": {}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <div>\n <ul class=\"nav nav-tabs\" id=\"ul473456626\"><li>\n <a href=\"#tab473456626-0\"><i class=\"fa fa-table\"/></a>\n </li><li>\n <a href=\"#tab473456626-1\"><i class=\"fa fa-dot-circle-o\"/></a>\n </li><li>\n <a href=\"#tab473456626-2\"><i class=\"fa fa-line-chart\"/></a>\n </li><li>\n <a href=\"#tab473456626-3\"><i class=\"fa fa-bar-chart\"/></a>\n </li><li>\n <a href=\"#tab473456626-4\"><i class=\"fa fa-cubes\"/></a>\n </li></ul>\n\n <div class=\"tab-content\" id=\"tab473456626\"><div class=\"tab-pane\" id=\"tab473456626-0\">\n <div>\n <script data-this=\"{"dataId":"anon4a8cdd616056c943e073f8d2d274b84c","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":1},{"_1":2,"_2":3},{"_1":3,"_2":6},{"_1":4,"_2":10},{"_1":5,"_2":15},{"_1":6,"_2":21},{"_1":7,"_2":28},{"_1":8,"_2":36},{"_1":9,"_2":45},{"_1":10,"_2":55},{"_1":11,"_2":66},{"_1":12,"_2":78},{"_1":13,"_2":91},{"_1":14,"_2":105},{"_1":15,"_2":120},{"_1":16,"_2":136},{"_1":17,"_2":153},{"_1":18,"_2":171},{"_1":19,"_2":190},{"_1":20,"_2":210},{"_1":21,"_2":231},{"_1":22,"_2":253},{"_1":23,"_2":276},{"_1":24,"_2":300},{"_1":25,"_2":325},{"_1":26,"_2":351},{"_1":27,"_2":378},{"_1":28,"_2":406},{"_1":29,"_2":435},{"_1":30,"_2":465},{"_1":31,"_2":496},{"_1":32,"_2":528},{"_1":33,"_2":561},{"_1":34,"_2":595},{"_1":35,"_2":630},{"_1":36,"_2":666},{"_1":37,"_2":703},{"_1":38,"_2":741},{"_1":39,"_2":780},{"_1":40,"_2":820},{"_1":41,"_2":861},{"_1":42,"_2":903},{"_1":43,"_2":946},{"_1":44,"_2":990},{"_1":45,"_2":1035},{"_1":46,"_2":1081},{"_1":47,"_2":1128},{"_1":48,"_2":1176},{"_1":49,"_2":1225},{"_1":50,"_2":1275},{"_1":51,"_2":1326},{"_1":52,"_2":1378},{"_1":53,"_2":1431},{"_1":54,"_2":1485},{"_1":55,"_2":1540},{"_1":56,"_2":1596},{"_1":57,"_2":1653},{"_1":58,"_2":1711},{"_1":59,"_2":1770},{"_1":60,"_2":1830},{"_1":61,"_2":1891},{"_1":62,"_2":1953},{"_1":63,"_2":2016},{"_1":64,"_2":2080},{"_1":65,"_2":2145},{"_1":66,"_2":2211},{"_1":67,"_2":2278},{"_1":68,"_2":2346},{"_1":69,"_2":2415},{"_1":70,"_2":2485},{"_1":71,"_2":2556},{"_1":72,"_2":2628},{"_1":73,"_2":2701},{"_1":74,"_2":2775},{"_1":75,"_2":2850},{"_1":76,"_2":2926},{"_1":77,"_2":3003},{"_1":78,"_2":3081},{"_1":79,"_2":3160},{"_1":80,"_2":3240},{"_1":81,"_2":3321},{"_1":82,"_2":3403},{"_1":83,"_2":3486},{"_1":84,"_2":3570},{"_1":85,"_2":3655},{"_1":86,"_2":3741},{"_1":87,"_2":3828},{"_1":88,"_2":3916},{"_1":89,"_2":4005},{"_1":90,"_2":4095},{"_1":91,"_2":4186},{"_1":92,"_2":4278},{"_1":93,"_2":4371},{"_1":94,"_2":4465},{"_1":95,"_2":4560},{"_1":96,"_2":4656},{"_1":97,"_2":4753},{"_1":98,"_2":4851},{"_1":99,"_2":4950},{"_1":100,"_2":5050},{"_1":101,"_2":5151}],"genId":"1016232684"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tableChart'], \n function(playground, _magictableChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictableChart,\n \"o\": {\"headers\":[\"_1\",\"_2\"],\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon8e411f00753aeda172147fe3e6e03116","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon4fc98203a14709f3ee82f12ee311643c","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab473456626-1\">\n <div>\n <script data-this=\"{"dataId":"anondea5f9316594be2e2c16e9ae57a6e00b","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":1},{"_1":2,"_2":3},{"_1":3,"_2":6},{"_1":4,"_2":10},{"_1":5,"_2":15},{"_1":6,"_2":21},{"_1":7,"_2":28},{"_1":8,"_2":36},{"_1":9,"_2":45},{"_1":10,"_2":55},{"_1":11,"_2":66},{"_1":12,"_2":78},{"_1":13,"_2":91},{"_1":14,"_2":105},{"_1":15,"_2":120},{"_1":16,"_2":136},{"_1":17,"_2":153},{"_1":18,"_2":171},{"_1":19,"_2":190},{"_1":20,"_2":210},{"_1":21,"_2":231},{"_1":22,"_2":253},{"_1":23,"_2":276},{"_1":24,"_2":300},{"_1":25,"_2":325},{"_1":26,"_2":351},{"_1":27,"_2":378},{"_1":28,"_2":406},{"_1":29,"_2":435},{"_1":30,"_2":465},{"_1":31,"_2":496},{"_1":32,"_2":528},{"_1":33,"_2":561},{"_1":34,"_2":595},{"_1":35,"_2":630},{"_1":36,"_2":666},{"_1":37,"_2":703},{"_1":38,"_2":741},{"_1":39,"_2":780},{"_1":40,"_2":820},{"_1":41,"_2":861},{"_1":42,"_2":903},{"_1":43,"_2":946},{"_1":44,"_2":990},{"_1":45,"_2":1035},{"_1":46,"_2":1081},{"_1":47,"_2":1128},{"_1":48,"_2":1176},{"_1":49,"_2":1225},{"_1":50,"_2":1275},{"_1":51,"_2":1326},{"_1":52,"_2":1378},{"_1":53,"_2":1431},{"_1":54,"_2":1485},{"_1":55,"_2":1540},{"_1":56,"_2":1596},{"_1":57,"_2":1653},{"_1":58,"_2":1711},{"_1":59,"_2":1770},{"_1":60,"_2":1830},{"_1":61,"_2":1891},{"_1":62,"_2":1953},{"_1":63,"_2":2016},{"_1":64,"_2":2080},{"_1":65,"_2":2145},{"_1":66,"_2":2211},{"_1":67,"_2":2278},{"_1":68,"_2":2346},{"_1":69,"_2":2415},{"_1":70,"_2":2485},{"_1":71,"_2":2556},{"_1":72,"_2":2628},{"_1":73,"_2":2701},{"_1":74,"_2":2775},{"_1":75,"_2":2850},{"_1":76,"_2":2926},{"_1":77,"_2":3003},{"_1":78,"_2":3081},{"_1":79,"_2":3160},{"_1":80,"_2":3240},{"_1":81,"_2":3321},{"_1":82,"_2":3403},{"_1":83,"_2":3486},{"_1":84,"_2":3570},{"_1":85,"_2":3655},{"_1":86,"_2":3741},{"_1":87,"_2":3828},{"_1":88,"_2":3916},{"_1":89,"_2":4005},{"_1":90,"_2":4095},{"_1":91,"_2":4186},{"_1":92,"_2":4278},{"_1":93,"_2":4371},{"_1":94,"_2":4465},{"_1":95,"_2":4560},{"_1":96,"_2":4656},{"_1":97,"_2":4753},{"_1":98,"_2":4851},{"_1":99,"_2":4950},{"_1":100,"_2":5050},{"_1":101,"_2":5151}],"genId":"1480468947"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/scatterChart'], \n function(playground, _magicscatterChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicscatterChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon9d36209157804bfd21cbd9b72e69d675","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anonddd85a44a1bac30c3ea75e7b9f5645c1","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab473456626-2\">\n <div>\n <script data-this=\"{"dataId":"anon4fc65bb0c2d30a04868effb7771ac6ca","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":1},{"_1":2,"_2":3},{"_1":3,"_2":6},{"_1":4,"_2":10},{"_1":5,"_2":15},{"_1":6,"_2":21},{"_1":7,"_2":28},{"_1":8,"_2":36},{"_1":9,"_2":45},{"_1":10,"_2":55},{"_1":11,"_2":66},{"_1":12,"_2":78},{"_1":13,"_2":91},{"_1":14,"_2":105},{"_1":15,"_2":120},{"_1":16,"_2":136},{"_1":17,"_2":153},{"_1":18,"_2":171},{"_1":19,"_2":190},{"_1":20,"_2":210},{"_1":21,"_2":231},{"_1":22,"_2":253},{"_1":23,"_2":276},{"_1":24,"_2":300},{"_1":25,"_2":325},{"_1":26,"_2":351},{"_1":27,"_2":378},{"_1":28,"_2":406},{"_1":29,"_2":435},{"_1":30,"_2":465},{"_1":31,"_2":496},{"_1":32,"_2":528},{"_1":33,"_2":561},{"_1":34,"_2":595},{"_1":35,"_2":630},{"_1":36,"_2":666},{"_1":37,"_2":703},{"_1":38,"_2":741},{"_1":39,"_2":780},{"_1":40,"_2":820},{"_1":41,"_2":861},{"_1":42,"_2":903},{"_1":43,"_2":946},{"_1":44,"_2":990},{"_1":45,"_2":1035},{"_1":46,"_2":1081},{"_1":47,"_2":1128},{"_1":48,"_2":1176},{"_1":49,"_2":1225},{"_1":50,"_2":1275},{"_1":51,"_2":1326},{"_1":52,"_2":1378},{"_1":53,"_2":1431},{"_1":54,"_2":1485},{"_1":55,"_2":1540},{"_1":56,"_2":1596},{"_1":57,"_2":1653},{"_1":58,"_2":1711},{"_1":59,"_2":1770},{"_1":60,"_2":1830},{"_1":61,"_2":1891},{"_1":62,"_2":1953},{"_1":63,"_2":2016},{"_1":64,"_2":2080},{"_1":65,"_2":2145},{"_1":66,"_2":2211},{"_1":67,"_2":2278},{"_1":68,"_2":2346},{"_1":69,"_2":2415},{"_1":70,"_2":2485},{"_1":71,"_2":2556},{"_1":72,"_2":2628},{"_1":73,"_2":2701},{"_1":74,"_2":2775},{"_1":75,"_2":2850},{"_1":76,"_2":2926},{"_1":77,"_2":3003},{"_1":78,"_2":3081},{"_1":79,"_2":3160},{"_1":80,"_2":3240},{"_1":81,"_2":3321},{"_1":82,"_2":3403},{"_1":83,"_2":3486},{"_1":84,"_2":3570},{"_1":85,"_2":3655},{"_1":86,"_2":3741},{"_1":87,"_2":3828},{"_1":88,"_2":3916},{"_1":89,"_2":4005},{"_1":90,"_2":4095},{"_1":91,"_2":4186},{"_1":92,"_2":4278},{"_1":93,"_2":4371},{"_1":94,"_2":4465},{"_1":95,"_2":4560},{"_1":96,"_2":4656},{"_1":97,"_2":4753},{"_1":98,"_2":4851},{"_1":99,"_2":4950},{"_1":100,"_2":5050},{"_1":101,"_2":5151}],"genId":"808313216"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/lineChart'], \n function(playground, _magiclineChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magiclineChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon2d08d65fb1711aff03078ae28dbdd409","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon603f897e7ca23c1481e21baae03fade3","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab473456626-3\">\n <div>\n <script data-this=\"{"dataId":"anonae0431a1afeb0cbbb7b54d6e6e0bc731","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":1},{"_1":2,"_2":3},{"_1":3,"_2":6},{"_1":4,"_2":10},{"_1":5,"_2":15},{"_1":6,"_2":21},{"_1":7,"_2":28},{"_1":8,"_2":36},{"_1":9,"_2":45},{"_1":10,"_2":55},{"_1":11,"_2":66},{"_1":12,"_2":78},{"_1":13,"_2":91},{"_1":14,"_2":105},{"_1":15,"_2":120},{"_1":16,"_2":136},{"_1":17,"_2":153},{"_1":18,"_2":171},{"_1":19,"_2":190},{"_1":20,"_2":210},{"_1":21,"_2":231},{"_1":22,"_2":253},{"_1":23,"_2":276},{"_1":24,"_2":300},{"_1":25,"_2":325},{"_1":26,"_2":351},{"_1":27,"_2":378},{"_1":28,"_2":406},{"_1":29,"_2":435},{"_1":30,"_2":465},{"_1":31,"_2":496},{"_1":32,"_2":528},{"_1":33,"_2":561},{"_1":34,"_2":595},{"_1":35,"_2":630},{"_1":36,"_2":666},{"_1":37,"_2":703},{"_1":38,"_2":741},{"_1":39,"_2":780},{"_1":40,"_2":820},{"_1":41,"_2":861},{"_1":42,"_2":903},{"_1":43,"_2":946},{"_1":44,"_2":990},{"_1":45,"_2":1035},{"_1":46,"_2":1081},{"_1":47,"_2":1128},{"_1":48,"_2":1176},{"_1":49,"_2":1225},{"_1":50,"_2":1275},{"_1":51,"_2":1326},{"_1":52,"_2":1378},{"_1":53,"_2":1431},{"_1":54,"_2":1485},{"_1":55,"_2":1540},{"_1":56,"_2":1596},{"_1":57,"_2":1653},{"_1":58,"_2":1711},{"_1":59,"_2":1770},{"_1":60,"_2":1830},{"_1":61,"_2":1891},{"_1":62,"_2":1953},{"_1":63,"_2":2016},{"_1":64,"_2":2080},{"_1":65,"_2":2145},{"_1":66,"_2":2211},{"_1":67,"_2":2278},{"_1":68,"_2":2346},{"_1":69,"_2":2415},{"_1":70,"_2":2485},{"_1":71,"_2":2556},{"_1":72,"_2":2628},{"_1":73,"_2":2701},{"_1":74,"_2":2775},{"_1":75,"_2":2850},{"_1":76,"_2":2926},{"_1":77,"_2":3003},{"_1":78,"_2":3081},{"_1":79,"_2":3160},{"_1":80,"_2":3240},{"_1":81,"_2":3321},{"_1":82,"_2":3403},{"_1":83,"_2":3486},{"_1":84,"_2":3570},{"_1":85,"_2":3655},{"_1":86,"_2":3741},{"_1":87,"_2":3828},{"_1":88,"_2":3916},{"_1":89,"_2":4005},{"_1":90,"_2":4095},{"_1":91,"_2":4186},{"_1":92,"_2":4278},{"_1":93,"_2":4371},{"_1":94,"_2":4465},{"_1":95,"_2":4560},{"_1":96,"_2":4656},{"_1":97,"_2":4753},{"_1":98,"_2":4851},{"_1":99,"_2":4950},{"_1":100,"_2":5050},{"_1":101,"_2":5151}],"genId":"1928499357"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/barChart'], \n function(playground, _magicbarChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicbarChart,\n \"o\": {\"x\":\"_1\",\"y\":\"_2\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon548c61850cce49a8a1f7633085b3d5ee","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon09769e19a94ff845844241ae4b952e98","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div><div class=\"tab-pane\" id=\"tab473456626-4\">\n <div>\n <script data-this=\"{"dataId":"anond17d3ab4fec87081f02716d11f9f25c9","dataInit":[{"_1":0,"_2":0},{"_1":1,"_2":1},{"_1":2,"_2":3},{"_1":3,"_2":6},{"_1":4,"_2":10},{"_1":5,"_2":15},{"_1":6,"_2":21},{"_1":7,"_2":28},{"_1":8,"_2":36},{"_1":9,"_2":45},{"_1":10,"_2":55},{"_1":11,"_2":66},{"_1":12,"_2":78},{"_1":13,"_2":91},{"_1":14,"_2":105},{"_1":15,"_2":120},{"_1":16,"_2":136},{"_1":17,"_2":153},{"_1":18,"_2":171},{"_1":19,"_2":190},{"_1":20,"_2":210},{"_1":21,"_2":231},{"_1":22,"_2":253},{"_1":23,"_2":276},{"_1":24,"_2":300},{"_1":25,"_2":325},{"_1":26,"_2":351},{"_1":27,"_2":378},{"_1":28,"_2":406},{"_1":29,"_2":435},{"_1":30,"_2":465},{"_1":31,"_2":496},{"_1":32,"_2":528},{"_1":33,"_2":561},{"_1":34,"_2":595},{"_1":35,"_2":630},{"_1":36,"_2":666},{"_1":37,"_2":703},{"_1":38,"_2":741},{"_1":39,"_2":780},{"_1":40,"_2":820},{"_1":41,"_2":861},{"_1":42,"_2":903},{"_1":43,"_2":946},{"_1":44,"_2":990},{"_1":45,"_2":1035},{"_1":46,"_2":1081},{"_1":47,"_2":1128},{"_1":48,"_2":1176},{"_1":49,"_2":1225},{"_1":50,"_2":1275},{"_1":51,"_2":1326},{"_1":52,"_2":1378},{"_1":53,"_2":1431},{"_1":54,"_2":1485},{"_1":55,"_2":1540},{"_1":56,"_2":1596},{"_1":57,"_2":1653},{"_1":58,"_2":1711},{"_1":59,"_2":1770},{"_1":60,"_2":1830},{"_1":61,"_2":1891},{"_1":62,"_2":1953},{"_1":63,"_2":2016},{"_1":64,"_2":2080},{"_1":65,"_2":2145},{"_1":66,"_2":2211},{"_1":67,"_2":2278},{"_1":68,"_2":2346},{"_1":69,"_2":2415},{"_1":70,"_2":2485},{"_1":71,"_2":2556},{"_1":72,"_2":2628},{"_1":73,"_2":2701},{"_1":74,"_2":2775},{"_1":75,"_2":2850},{"_1":76,"_2":2926},{"_1":77,"_2":3003},{"_1":78,"_2":3081},{"_1":79,"_2":3160},{"_1":80,"_2":3240},{"_1":81,"_2":3321},{"_1":82,"_2":3403},{"_1":83,"_2":3486},{"_1":84,"_2":3570},{"_1":85,"_2":3655},{"_1":86,"_2":3741},{"_1":87,"_2":3828},{"_1":88,"_2":3916},{"_1":89,"_2":4005},{"_1":90,"_2":4095},{"_1":91,"_2":4186},{"_1":92,"_2":4278},{"_1":93,"_2":4371},{"_1":94,"_2":4465},{"_1":95,"_2":4560},{"_1":96,"_2":4656},{"_1":97,"_2":4753},{"_1":98,"_2":4851},{"_1":99,"_2":4950},{"_1":100,"_2":5050},{"_1":101,"_2":5151}],"genId":"1816902057"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/pivotChart'], \n function(playground, _magicpivotChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicpivotChart,\n \"o\": {\"width\":600,\"height\":400,\"derivedAttributes\":{},\"extraOptions\":{}}\n }\n \n \n \n );\n }\n );/*]]>*/</script>\n <div>\n <span class=\"chart-total-item-count\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon27a2689d97ae6ba0eab0e09f8a3ff40c","initialValue":"102"}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p> entries total</span>\n <span class=\"chart-sampling-warning\"><p data-bind=\"text: value\"><script data-this=\"{"valueId":"anon981719c20a4240d4144aacb8bf67ef63","initialValue":""}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/\nreq(\n['observable', 'knockout'],\nfunction (O, ko) {\n ko.applyBindings({\n value: O.makeObservable(valueId, initialValue)\n },\n this\n );\n});\n /*]]>*/</script></p></span>\n <div>\n </div>\n </div></div>\n </div></div>\n </div>\n </div></div>"},"output_type":"execute_result","execution_count":8,"time":"Took: 0.921s, at 2018-05-02 21:07"}]},{"metadata":{"trusted":true,"input_collapsed":false,"collapsed":true,"id":"65B34096F2AA458D82A5041496E038A0"},"cell_type":"code","source":[""],"outputs":[]}],"nbformat":4} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment