mirror of
https://github.com/Steffo99/unimore-bda-3.git
synced 2024-11-23 00:14:22 +00:00
34 lines
829 KiB
JavaScript
34 lines
829 KiB
JavaScript
|
|
||
|
Charts.Load().then(function() {
|
||
|
let tooltip = {"valueDecimals":2,"valuePrefix":"","valueSuffix":"\u20ac"};
|
||
|
let max = 14.7603;
|
||
|
|
||
|
let chartOverview = (function() {
|
||
|
let setup = (new Charts.Gallery.History.Price())
|
||
|
.setTitle("Price (EUR)");
|
||
|
|
||
|
return (new Charts.Builder(setup, [{"zIndex":4,"name":"Best Price","data":[[1631787015000,12.49],[1632227406000,12.49],[1632239442000,9.87],[1632240920000,9.87],[1632243751000,9.87],[1632243976000,9.87],[1632245113000,9.87],[1632245116000,9.87],[1632245166000,9.87],[1632246304000,9.87],[1632246308000,9.87],[1632246314000,9.87],[1632246316000,9.87],[1632246630000,9.87],[1632249320000,9.85],[1632252050000,9.85],[1632253807000,9.85],[1632265699000,9.85],[1632265830000,9.85],[1632297316000,9.85],[1632333923000,9.85],[1632335102000,9.39],[1632387820000,9.39],[1632395991000,9.39],[1632398853000,9.39],[1632409772000,9.39],[1632414306000,9.87],[1632474329000,9.85],[1632492927000,9.85],[1632498603000,9.85],[1632498620000,9.85],[1632499236000,9.85],[1632503113000,9.85],[1632780407000,9.85],[1632782427000,9.85],[1632834651000,9.85],[1632835199000,9.85],[1632837738000,9.85],[1632837796000,9.85],[1632849591000,9.85],[1632849643000,9.85],[1632853006000,9.85],[1632853809000,9.85],[1632870573000,9.85],[1632870761000,9.85],[1632871212000,9.85],[1632874524000,9.85],[1632896225000,9.85],[1632899412000,9.85],[1633113011000,9.85],[1633113012000,9.85],[1633114202000,9.85],[1633114203000,9.85],[1633114204000,9.85],[1633114205000,9.85],[1633114210000,9.85],[1633114211000,9.85],[1634918584000,9.85],[1634922998000,9.85],[1635160150000,9.85],[1635162907000,9.85],[1635167087000,9.85],[1635170423000,9.38],[1635401758000,9.38],[1635403205000,9.38],[1635404432000,9.38],[1635405911000,9.38],[1635524159000,9.38],[1635527771000,9.38],[1637622125000,9.38],[1637673499000,9.38],[1637675767000,9.38],[1637709304000,9.38],[1637856068000,9.38],[1637859913000,9.38],[1638263997000,9.38],[1638281236000,9.38],[1638295724000,9.38],[1638296717000,9.38],[1638321649000,9.38],[1638321923000,9.99],[1638363903000,9.99],[1638364767000,9.99],[1638465631000,9.99],[1638874818000,9.99],[1638875714000,9.8671],[1639095014000,9.8671],[1639099832000,9.73],[1639602803000,9.73],[1639818799000,9.73],[1639821324000,9.73],[1639822808000,9.73],[1639822827000,9.73],[1640131233000,9.73],[1640133027000,9.73],[1640174404000,9.73],[1640183715000,9.73],[1640192787000,9.73],[1640198253000,9.73],[1640268365000,9.73],[1640271330000,9.73],[1640362260000,9.73],[1640363116000,9.73],[1640768734000,9.73],[1640775728000,9.3675],[1640948950000,9.3675],[1640952939000,9.3675],[1641038744000,9.3675],[1641041147000,9.35],[1641405663000,9.35],[1641406533000,9.35],[1641406821000,9.35],[1641406888000,9.35],[1641427543000,9.35],[1641430237000,9.35],[1641975990000,9.35],[1641978696000,9.35],[1643130414000,9.35],[1643135135000,9.35],[1643238444000,9.35],[1643241019000,9.3675],[1643241640000,9.3675],[1643241740000,9.3675],[1643241749000,9.3675],[1643241928000,9.3675],[1643241956000,9.3675],[1643242017000,9.3675],[1643242050000,9.3675],[1643242052000,9.3675],[1643242054000,9.3675],[1643242057000,11.24],[1643242503000,10.7661],[1643242507000,9.99],[1643242517000,9.99],[1643242527000,8.68],[1643242557000,8.68],[1643242584000,8.68],[1643242803000,8.68],[1643242824000,8.68],[1643244009000,8.68],[1643245557000,8.68],[1643292525000,8.68],[1643292916000,9.99],[1643293266000,8.21842],[1643294730000,8.21842],[1643307350000,8.21842],[1643309440000,8.21],[1643325898000,8.21],[1643328082000,8.21],[1643333120000,8.21],[1643335238000,8.21],[1643631004000,8.21],[1643631005000,8.21],[1643731245000,8.21],[1643735420000,8.21],[1643844348000,8.21],[1643872746000,8.21],[1643875815000,8.21],[1643890047000,8.21],[1643890512000,8.21],[1643929379000,8.21],[1643929407000,8.21],[1643929500000,8.21],[1643929541000,8.21],[1643930062000,8.21],[1643930104000,8.21],[1643930315000,8.21],[1643930393000,8.21],[1643932522000,9.99],[1643932807000,9.99],[1643932842000,9.99],[1643933103000,9.99],[1643933105000,9.99],[1643933106000,9.99],[1643933109000,9.99],[1643933111000,9.99],[1643933131000,9.99],[1643933180000,9.3675],[1643933645000,9.3675],[1643934653000,9.3675],[1643936775000,9.3675],[1643936829000,9.3675],[1643937618000,9.3675],[1643939119000,9.3675],[1643972728000,9.3675],[1643973929000,9.3675],[1644237308000,9.3675],[1644488802000,9.3
|
||
|
.setTooltip(tooltip)
|
||
|
.setDefaultValueRange(0, max)
|
||
|
.enableLegend()
|
||
|
.enableRangeSelector();
|
||
|
})();
|
||
|
|
||
|
let chartDetail = (function(){
|
||
|
let setup = (new Charts.Gallery.History.Price())
|
||
|
.useThinLine()
|
||
|
.setTooltipDealFormat()
|
||
|
.setTitle("Price (EUR)");
|
||
|
|
||
|
return (new Charts.Builder(setup, [{"name":"Fanatical","data":[[1631787015000,12.49],[1632227406000,12.49],[1632239442000,12.49],[1632240920000,12.49],[1632243751000,12.49],[1632243976000,12.49],[1632245113000,null],[1632245116000,11.24],[1632245166000,11.24],[1632246304000,11.24],[1632246308000,11.24],[1632246314000,11.24],[1632246316000,11.24],[1632246630000,11.24],[1632249320000,11.24],[1632252050000,11.24],[1632253807000,11.24],[1632265699000,11.24],[1632265830000,11.24],[1632297316000,11.24],[1632333923000,11.24],[1632335102000,11.24],[1632387820000,11.24],[1632395991000,11.24],[1632398853000,11.24],[1632409772000,11.24],[1632414306000,11.24],[1632474329000,11.24],[1632492927000,11.24],[1632498603000,11.24],[1632498620000,11.24],[1632499236000,11.24],[1632503113000,11.24],[1632780407000,11.24],[1632782427000,11.24],[1632834651000,11.24],[1632835199000,11.24],[1632837738000,11.24],[1632837796000,11.24],[1632849591000,11.24],[1632849643000,11.24],[1632853006000,11.24],[1632853809000,11.24],[1632870573000,11.24],[1632870761000,11.24],[1632871212000,11.24],[1632874524000,11.24],[1632896225000,11.24],[1632899412000,12.49],[1633113011000,12.49],[1633113012000,12.49],[1633114202000,12.49],[1633114203000,12.49],[1633114204000,12.49],[1633114205000,12.49],[1633114210000,12.49],[1633114211000,12.49],[1634918584000,12.49],[1634922998000,12.49],[1635160150000,12.49],[1635162907000,12.49],[1635167087000,12.49],[1635170423000,12.49],[1635401758000,12.49],[1635403205000,12.49],[1635404432000,12.49],[1635405911000,12.49],[1635524159000,12.49],[1635527771000,12.49],[1637622125000,12.49],[1637673499000,12.49],[1637675767000,12.49],[1637709304000,12.49],[1637856068000,12.49],[1637859913000,9.99],[1638263997000,9.99],[1638281236000,9.99],[1638295724000,9.99],[1638296717000,12.49],[1638321649000,12.49],[1638321923000,12.49],[1638363903000,12.49],[1638364767000,12.49],[1638465631000,12.49],[1638874818000,12.49],[1638875714000,12.49],[1639095014000,12.49],[1639099832000,12.49],[1639602803000,12.49],[1639818799000,12.49],[1639821324000,12.49],[1639822808000,12.49],[1639822827000,12.49],[1640131233000,12.49],[1640133027000,12.49],[1640174404000,12.49],[1640183715000,12.49],[1640192787000,12.49],[1640198253000,12.49],[1640268365000,12.49],[1640271330000,12.49],[1640362260000,12.49],[1640363116000,9.99],[1640768734000,9.99],[1640775728000,9.99],[1640948950000,9.99],[1640952939000,9.99],[1641038744000,9.99],[1641041147000,9.99],[1641405663000,9.99],[1641406533000,9.99],[1641406821000,12.49],[1641406888000,12.49],[1641427543000,12.49],[1641430237000,12.49],[1641975990000,12.49],[1641978696000,12.49],[1643130414000,12.49],[1643135135000,12.49],[1643238444000,12.49],[1643241019000,12.49],[1643241640000,12.49],[1643241740000,null],[1643241749000,null],[1643241928000,null],[1643241956000,null],[1643242017000,null],[1643242050000,null],[1643242052000,null],[1643242054000,null],[1643242057000,null],[1643242503000,null],[1643242507000,null],[1643242517000,9.99],[1643242527000,9.99],[1643242557000,9.99],[1643242584000,9.99],[1643242803000,9.99],[1643242824000,9.99],[1643244009000,9.99],[1643245557000,9.99],[1643292525000,9.99],[1643292916000,9.99],[1643293266000,9.99],[1643294730000,9.99],[1643307350000,9.99],[1643309440000,9.99],[1643325898000,9.99],[1643328082000,9.99],[1643333120000,9.99],[1643335238000,9.99],[1643631004000,9.99],[1643631005000,9.99],[1643731245000,9.99],[1643735420000,9.99],[1643844348000,9.99],[1643872746000,9.99],[1643875815000,12.49],[1643890047000,12.49],[1643890512000,12.49],[1643929379000,12.49],[1643929407000,12.49],[1643929500000,12.49],[1643929541000,12.49],[1643930062000,12.49],[1643930104000,12.49],[1643930315000,12.49],[1643930393000,12.49],[1643932522000,12.49],[1643932807000,12.49],[1643932842000,12.49],[1643933103000,12.49],[1643933105000,12.49],[1643933106000,12.49],[1643933109000,12.49],[1643933111000,12.49],[1643933131000,12.49],[1643933180000,12.49],[1643933645000,12.49],[1643934653000,12.49],[1643936775000,12.49],[1643936829000,12.49],[1643937618000,12.49],[1643939119000,12.49],[1643972728000,12.49],[16
|
||
|
.setTooltip(tooltip)
|
||
|
.setDefaultValueRange(0, max)
|
||
|
.enableRangeSelector();
|
||
|
})();
|
||
|
|
||
|
(new Charts.Tabs("cp", "chart-price"))
|
||
|
.add("overview", chartOverview)
|
||
|
.add("detail", chartDetail)
|
||
|
.load();
|
||
|
});
|