$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс CHF, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс CHF', data: [[1483228800000,26.5285],[1483315200000,26.5285],[1483401600000,26.5285],[1483488000000,26.5285],[1483574400000,26.0193],[1483660800000,26.0193],[1483747200000,26.6783],[1483833600000,26.6783],[1483920000000,26.6783],[1484006400000,26.6783],[1484092800000,26.7564],[1484179200000,26.5619],[1484265600000,27.0918],[1484352000000,null],[1484438400000,27.4964],[1484524800000,27.4964],[1484611200000,27.4239],[1484697600000,27.5576],[1484784000000,27.384],[1484870400000,27.2861],[1484956800000,27.1856],[1485043200000,27.1856],[1485129600000,27.1856],[1485216000000,27.3019],[1485302400000,27.2573],[1485388800000,27.236],[1485475200000,27.2309],[1485561600000,27.1719],[1485648000000,27.1719],[1485734400000,27.1719],[1485820800000,27.0199],[1485907200000,27.3004],[1485993600000,27.2767],[1486080000000,27.2849],[1486166400000,27.1944],[1486252800000,27.1944],[1486339200000,27.1944],[1486425600000,27.37],[1486512000000,27.075],[1486598400000,26.9833],[1486684800000,27.0758],[1486771200000,27.1048],[1486857600000,27.1048],[1486944000000,27.1048],[1487030400000,27.0531],[1487116800000,27.1385],[1487203200000,26.7478],[1487289600000,27.0014],[1487376000000,27.0592],[1487462400000,27.0592],[1487548800000,27.0592],[1487635200000,26.939],[1487721600000,26.7833],[1487808000000,26.6459],[1487894400000,26.6792],[1487980800000,26.8752],[1488067200000,26.8752],[1488153600000,26.8752],[1488240000000,26.8583],[1488326400000,27.0336],[1488412800000,26.8896],[1488499200000,26.7429],[1488585600000,26.8398],[1488672000000,26.8398],[1488758400000,26.8398],[1488844800000,26.7636],[1488931200000,26.5725],[1489017600000,26.5725],[1489104000000,26.5116],[1489190400000,26.4683],[1489276800000,26.4683],[1489363200000,26.4683],[1489449600000,26.6794],[1489536000000,26.666],[1489622400000,26.6475],[1489708800000,27.0572],[1489795200000,27.0074],[1489881600000,27.0074],[1489968000000,27.0074],[1490054400000,26.9681],[1490140800000,26.9809],[1490227200000,27.1536],[1490313600000,27.2752],[1490400000000,27.3447],[1490486400000,27.3447],[1490572800000,27.3447],[1490659200000,27.5996],[1490745600000,27.5417],[1490832000000,27.131],[1490918400000,27.0744],[1491004800000,27.0091],[1491091200000,27.0091],[1491177600000,27.0091],[1491264000000,26.9715],[1491350400000,27.0631],[1491436800000,27.0809],[1491523200000,27.0092],[1491609600000,26.8101],[1491696000000,26.8101],[1491782400000,26.8101],[1491868800000,26.671],[1491955200000,26.6926],[1492041600000,26.6919],[1492128000000,26.7234],[1492214400000,26.6715],[1492300800000,26.6715],[1492387200000,26.6715],[1492473600000,26.6715],[1492560000000,26.8349],[1492646400000,26.8748],[1492732800000,26.8668],[1492819200000,26.7778],[1492905600000,26.7778],[1492992000000,26.7778],[1493078400000,26.7774],[1493164800000,26.7917],[1493251200000,26.7312],[1493337600000,26.7011],[1493424000000,26.8037],[1493510400000,26.8037],[1493596800000,26.8037],[1493683200000,26.8037],[1493769600000,26.8037],[1493856000000,26.7859],[1493942400000,26.691],[1494028800000,26.8077],[1494115200000,26.8077],[1494201600000,26.8077],[1494288000000,26.8077],[1494374400000,26.8077],[1494460800000,26.294],[1494547200000,26.2069],[1494633600000,26.2642],[1494720000000,26.2642],[1494806400000,26.2642],[1494892800000,26.5397],[1494979200000,26.677],[1495065600000,26.8866],[1495152000000,27.0124],[1495238400000,26.9926],[1495324800000,26.9926],[1495411200000,26.9926],[1495497600000,27.1434],[1495584000000,27.0349],[1495670400000,26.9006],[1495756800000,27.0237],[1495843200000,27.0906],[1495929600000,27.0906],[1496016000000,27.0906],[1496102400000,27.085],[1496188800000,27.0054],[1496275200000,27.0951],[1496361600000,27.082],[1496448000000,27.0626],[1496534400000,27.0626],[1496620800000,27.0626],[1496707200000,27.0626],[1496793600000,27.231],[1496880000000,27.1093],[1496966400000,27.0477],[1497052800000,26.8775],[1497139200000,26.8775],[1497225600000,26.8775],[1497312000000,26.9448],[1497398400000,26.8745],[1497484800000,26.8021],[1497571200000,26.7055],[1497657600000,26.6961],[1497744000000,26.6961],[1497830400000,26.6961],[1497916800000,26.8108],[1498003200000,26.7593],[1498089600000,26.7187],[1498176000000,26.749],[1498262400000,26.8036],[1498348800000,26.8036],[1498435200000,26.8036],[1498521600000,26.7688],[1498608000000,27.0267],[1498694400000,27.0267],[1498780800000,27.2399],[1498867200000,27.171],[1498953600000,27.171],[1499040000000,27.171],[1499126400000,27.0064],[1499212800000,26.965],[1499299200000,27.0234],[1499385600000,27.0339],[1499472000000,27.0394],[1499558400000,27.0394],[1499644800000,27.0394],[1499731200000,26.9019],[1499817600000,26.8307],[1499904000000,26.9023],[1499990400000,26.9262],[1500076800000,26.8746],[1500163200000,26.8746],[1500249600000,26.8746],[1500336000000,27.0259],[1500422400000,27.1767],[1500508800000,27.2161],[1500595200000,26.9759],[1500681600000,27.2743],[1500768000000,27.2743],[1500854400000,27.2743],[1500940800000,27.2942],[1501027200000,27.3178],[1501113600000,27.0268],[1501200000000,26.9658],[1501286400000,26.7645],[1501372800000,26.7645],[1501459200000,26.7645],[1501545600000,26.6924],[1501632000000,26.7587],[1501718400000,26.7406],[1501804800000,26.6938],[1501891200000,26.6838],[1501977600000,26.6838],[1502064000000,26.6838],[1502150400000,26.4969],[1502236800000,26.4858],[1502323200000,26.7222],[1502409600000,26.5782],[1502496000000,26.7058],[1502582400000,26.7058],[1502668800000,26.7058],[1502755200000,26.4722],[1502841600000,26.3315],[1502928000000,26.2543],[1503014400000,26.3768],[1503100800000,26.5134],[1503187200000,26.5134],[1503273600000,26.5134],[1503360000000,null],[1503446400000,26.3633],[1503532800000,26.4582],[1503619200000,26.4582],[1503705600000,26.4582],[1503792000000,26.4582],[1503878400000,26.4582],[1503964800000,26.7166],[1504051200000,26.9197],[1504137600000,26.6859],[1504224000000,26.5447],[1504310400000,26.8264],[1504396800000,26.8264],[1504483200000,26.8264],[1504569600000,27.0562],[1504656000000,27.0532],[1504742400000,27.1948],[1504828800000,27.2769],[1504915200000,27.5704],[1505001600000,27.5704],[1505088000000,27.5704],[1505174400000,27.3611],[1505260800000,27.1307],[1505347200000,27.1754],[1505433600000,27.0473],[1505520000000,27.3277],[1505606400000,27.3277],[1505692800000,27.3277],[1505779200000,27.286],[1505865600000,27.1162],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,27.257],[1506729600000,27.3881],[1506816000000,27.3881],[1506902400000,27.3881],[1506988800000,27.4613],[1507075200000,27.4133],[1507161600000,27.5834],[1507248000000,27.4304],[1507334400000,27.2853],[1507420800000,27.2853],[1507507200000,27.2853],[1507593600000,27.1267],[1507680000000,27.2207],[1507766400000,27.2379],[1507852800000,27.3356],[1507939200000,27.3356],[1508025600000,27.3356],[1508112000000,27.3356],[1508198400000,27.3356],[1508284800000,27.0714],[1508371200000,26.8784],[1508457600000,27.1727],[1508544000000,27.0446],[1508630400000,27.0446],[1508716800000,27.0446],[1508803200000,null],[1508889600000,27.0098],[1508976000000,26.9876],[1509062400000,26.9989],[1509148800000,26.8134],[1509235200000,26.8134],[1509321600000,26.8134],[1509408000000,26.8502],[1509494400000,26.899],[1509580800000,26.8137],[1509667200000,26.9268],[1509753600000,27.0136],[1509840000000,27.0136],[1509926400000,27.0136],[1510012800000,26.8434],[1510099200000,26.7629],[1510185600000,26.6569],[1510272000000,26.6525],[1510358400000,26.6609],[1510444800000,26.6609],[1510531200000,26.6609],[1510617600000,26.6365],[1510704000000,26.7285],[1510790400000,26.8565],[1510876800000,26.669],[1510963200000,26.7234],[1511049600000,26.7234],[1511136000000,26.7234],[1511222400000,26.7152],[1511308800000,26.6674],[1511395200000,26.9689],[1511481600000,27.405],[1511568000000,27.4381],[1511654400000,27.4381],[1511740800000,27.4381],[1511827200000,27.3712],[1511913600000,27.3504],[1512000000000,27.3914],[1512086400000,27.504],[1512172800000,27.5033],[1512259200000,27.5033],[1512345600000,27.5033],[1512432000000,27.6819],[1512518400000,27.5693],[1512604800000,27.4318],[1512691200000,27.3187],[1512777600000,27.1974],[1512864000000,27.1974],[1512950400000,27.1974],[1513036800000,27.4076],[1513123200000,27.3983],[1513209600000,27.4759],[1513296000000,27.7829],[1513382400000,27.9595],[1513468800000,27.9595],[1513555200000,27.9595],[1513641600000,28.2157],[1513728000000,28.3154],[1513814400000,28.2013],[1513900800000,28.1743],[1513987200000,28.232],[1514073600000,28.232],[1514160000000,28.232],[1514246400000,28.232],[1514332800000,28.2256],[1514419200000,28.2405],[1514505600000,28.6188],[1514592000000,28.6188]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1484438400000, 26.967948],[1484438400000, 26.967948],[1487116800000, 27.032629],[1489536000000, 26.930367],[1492214400000, 26.818873],[1494806400000, 26.799312],[1497484800000, 26.912457],[1500076800000, 27.030974],[1502755200000, 26.576308],[1505433600000, 27.184603],[1508025600000, 27.177567],[1510704000000, 26.927434],[1513296000000, 27.861547]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });