$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1483228800000,18.7534],[1483315200000,18.7534],[1483401600000,18.7534],[1483488000000,18.7534],[1483574400000,18.5145],[1483660800000,18.5145],[1483747200000,18.8625],[1483833600000,18.8625],[1483920000000,18.8625],[1484006400000,18.8625],[1484092800000,18.9089],[1484179200000,18.844],[1484265600000,19.1574],[1484352000000,null],[1484438400000,19.399],[1484524800000,19.399],[1484611200000,19.3926],[1484697600000,19.4618],[1484784000000,19.3182],[1484870400000,19.2398],[1484956800000,19.188],[1485043200000,19.188],[1485129600000,19.188],[1485216000000,19.2309],[1485302400000,19.1977],[1485388800000,19.1821],[1485475200000,19.1214],[1485561600000,19.0453],[1485648000000,19.0453],[1485734400000,19.0453],[1485820800000,18.9942],[1485907200000,19.1593],[1485993600000,19.1151],[1486080000000,19.1488],[1486166400000,19.1521],[1486252800000,19.1521],[1486339200000,19.1521],[1486425600000,19.3326],[1486512000000,19.0573],[1486598400000,18.993],[1486684800000,19.1043],[1486771200000,19.1359],[1486857600000,19.1359],[1486944000000,19.1359],[1487030400000,19.1053],[1487116800000,19.2282],[1487203200000,18.9793],[1487289600000,19.0336],[1487376000000,19.0792],[1487462400000,19.0792],[1487548800000,19.0792],[1487635200000,19.0543],[1487721600000,19.0104],[1487808000000,19.0249],[1487894400000,19.0594],[1487980800000,19.218],[1488067200000,19.218],[1488153600000,19.218],[1488240000000,19.2511],[1488326400000,19.4089],[1488412800000,19.2894],[1488499200000,19.1939],[1488585600000,19.1867],[1488672000000,19.1867],[1488758400000,19.1867],[1488844800000,19.1624],[1488931200000,19.1101],[1489017600000,19.1101],[1489104000000,18.9452],[1489190400000,18.9049],[1489276800000,18.9049],[1489363200000,18.9049],[1489449600000,19.0259],[1489536000000,19.0185],[1489622400000,19.0339],[1489708800000,19.2469],[1489795200000,19.1913],[1489881600000,19.1913],[1489968000000,19.1913],[1490054400000,19.2348],[1490140800000,19.2236],[1490227200000,19.2562],[1490313600000,19.3454],[1490400000000,19.376],[1490486400000,19.376],[1490572800000,19.376],[1490659200000,19.5178],[1490745600000,19.4559],[1490832000000,19.3674],[1490918400000,19.3391],[1491004800000,19.3366],[1491091200000,19.3366],[1491177600000,19.3366],[1491264000000,19.3375],[1491350400000,19.3816],[1491436800000,19.3994],[1491523200000,19.3475],[1491609600000,19.2413],[1491696000000,19.2413],[1491782400000,19.2413],[1491868800000,19.1465],[1491955200000,19.1562],[1492041600000,19.1685],[1492128000000,19.2365],[1492214400000,19.1992],[1492300800000,19.1992],[1492387200000,19.1992],[1492473600000,19.1992],[1492560000000,19.1978],[1492646400000,19.1694],[1492732800000,19.1552],[1492819200000,19.1321],[1492905600000,19.1321],[1492992000000,19.1321],[1493078400000,19.15],[1493164800000,19.1198],[1493251200000,19.0473],[1493337600000,19.0007],[1493424000000,19.0268],[1493510400000,19.0268],[1493596800000,19.0268],[1493683200000,19.0268],[1493769600000,19.0268],[1493856000000,19.017],[1493942400000,18.9244],[1494028800000,18.8657],[1494115200000,18.8657],[1494201600000,18.8657],[1494288000000,18.8657],[1494374400000,18.8657],[1494460800000,18.7577],[1494547200000,18.7692],[1494633600000,18.8021],[1494720000000,18.8021],[1494806400000,18.8021],[1494892800000,18.9317],[1494979200000,18.9123],[1495065600000,18.9473],[1495152000000,18.9615],[1495238400000,19.0074],[1495324800000,19.0074],[1495411200000,19.0074],[1495497600000,19.0079],[1495584000000,18.9482],[1495670400000,18.9199],[1495756800000,18.9801],[1495843200000,19.0557],[1495929600000,19.0557],[1496016000000,19.0557],[1496102400000,19.0604],[1496188800000,19.0157],[1496275200000,19.0249],[1496361600000,18.9845],[1496448000000,18.9553],[1496534400000,18.9553],[1496620800000,18.9553],[1496707200000,18.9553],[1496793600000,18.9985],[1496880000000,18.9655],[1496966400000,18.9133],[1497052800000,18.8745],[1497139200000,18.8745],[1497225600000,18.8745],[1497312000000,18.8358],[1497398400000,18.8109],[1497484800000,18.8553],[1497571200000,18.8031],[1497657600000,18.7997],[1497744000000,18.7997],[1497830400000,18.7997],[1497916800000,18.8228],[1498003200000,18.7602],[1498089600000,18.7309],[1498176000000,18.7186],[1498262400000,18.7691],[1498348800000,18.7691],[1498435200000,18.7691],[1498521600000,18.7518],[1498608000000,18.8232],[1498694400000,18.8232],[1498780800000,18.911],[1498867200000,18.9038],[1498953600000,18.9038],[1499040000000,18.9038],[1499126400000,18.8129],[1499212800000,18.8125],[1499299200000,18.8812],[1499385600000,18.8391],[1499472000000,18.8423],[1499558400000,18.8423],[1499644800000,18.8423],[1499731200000,18.7613],[1499817600000,18.7677],[1499904000000,18.7576],[1499990400000,18.8579],[1500076800000,18.936],[1500163200000,18.936],[1500249600000,18.936],[1500336000000,18.9898],[1500422400000,18.9719],[1500508800000,18.97],[1500595200000,18.9215],[1500681600000,18.9899],[1500768000000,18.9899],[1500854400000,18.9899],[1500940800000,18.966],[1501027200000,19.0073],[1501113600000,19.016],[1501200000000,19.061],[1501286400000,19.0609],[1501372800000,19.0609],[1501459200000,19.0609],[1501545600000,19.0476],[1501632000000,19.039],[1501718400000,19.075],[1501804800000,19.0332],[1501891200000,19.0535],[1501977600000,19.0535],[1502064000000,19.0535],[1502150400000,18.9134],[1502236800000,18.9152],[1502323200000,18.875],[1502409600000,18.8389],[1502496000000,18.8332],[1502582400000,18.8332],[1502668800000,18.8332],[1502755200000,18.8237],[1502841600000,18.7399],[1502928000000,18.6903],[1503014400000,18.6725],[1503100800000,18.6872],[1503187200000,18.6872],[1503273600000,18.6872],[1503360000000,null],[1503446400000,18.6871],[1503532800000,18.755],[1503619200000,18.755],[1503705600000,18.755],[1503792000000,18.755],[1503878400000,18.755],[1503964800000,18.8336],[1504051200000,18.8238],[1504137600000,18.8536],[1504224000000,18.8785],[1504310400000,19.0091],[1504396800000,19.0091],[1504483200000,19.0091],[1504569600000,19.0968],[1504656000000,19.1496],[1504742400000,19.2149],[1504828800000,19.3452],[1504915200000,19.5014],[1505001600000,19.5014],[1505088000000,19.5014],[1505174400000,19.3457],[1505260800000,19.3159],[1505347200000,19.3826],[1505433600000,19.3693],[1505520000000,19.5222],[1505606400000,19.5222],[1505692800000,19.5222],[1505779200000,19.4495],[1505865600000,19.3663],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,19.5106],[1506729600000,19.5737],[1506816000000,19.5737],[1506902400000,19.5737],[1506988800000,19.5608],[1507075200000,19.5963],[1507161600000,19.7214],[1507248000000,19.6701],[1507334400000,19.5689],[1507420800000,19.5689],[1507507200000,19.5689],[1507593600000,19.4764],[1507680000000,19.6011],[1507766400000,19.5643],[1507852800000,19.6687],[1507939200000,19.6687],[1508025600000,19.6687],[1508112000000,19.6687],[1508198400000,19.6687],[1508284800000,19.5229],[1508371200000,19.4507],[1508457600000,19.5317],[1508544000000,19.5364],[1508630400000,19.5364],[1508716800000,19.5364],[1508803200000,null],[1508889600000,19.5759],[1508976000000,19.6601],[1509062400000,19.6935],[1509148800000,19.6172],[1509235200000,19.6172],[1509321600000,19.6172],[1509408000000,19.6731],[1509494400000,19.7112],[1509580800000,19.7439],[1509667200000,19.7952],[1509753600000,19.8249],[1509840000000,19.8249],[1509926400000,19.8249],[1510012800000,19.676],[1510099200000,19.6106],[1510185600000,19.5562],[1510272000000,19.5256],[1510358400000,19.492],[1510444800000,19.492],[1510531200000,19.492],[1510617600000,19.4582],[1510704000000,19.4768],[1510790400000,19.5321],[1510876800000,19.5137],[1510963200000,19.5372],[1511049600000,19.5372],[1511136000000,19.5372],[1511222400000,19.5296],[1511308800000,19.5513],[1511395200000,19.7093],[1511481600000,19.957],[1511568000000,19.9946],[1511654400000,19.9946],[1511740800000,19.9946],[1511827200000,19.9673],[1511913600000,19.987],[1512000000000,20.0624],[1512086400000,20.1282],[1512172800000,20.0787],[1512259200000,20.0787],[1512345600000,20.0787],[1512432000000,20.192],[1512518400000,20.1728],[1512604800000,20.1161],[1512691200000,20.0822],[1512777600000,20.0339],[1512864000000,20.0339],[1512950400000,20.0339],[1513036800000,20.0862],[1513123200000,20.1098],[1513209600000,20.1595],[1513296000000,20.3556],[1513382400000,20.5233],[1513468800000,20.5233],[1513555200000,20.5233],[1513641600000,20.6721],[1513728000000,20.7083],[1513814400000,20.7034],[1513900800000,20.7086],[1513987200000,20.7987],[1514073600000,20.7987],[1514160000000,20.7987],[1514246400000,20.7987],[1514332800000,20.794],[1514419200000,20.8601],[1514505600000,20.9766],[1514592000000,20.9766]], 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, 19.034647],[1484438400000, 19.034647],[1487116800000, 19.121874],[1489536000000, 19.201998],[1492214400000, 19.199823],[1494806400000, 18.940562],[1497484800000, 18.856158],[1500076800000, 18.922337],[1502755200000, 18.845286],[1505433600000, 19.322583],[1508025600000, 19.598547],[1510704000000, 19.696989],[1513296000000, 20.447774]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });