$(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: [[1420070400000,11.9207],[1420156800000,11.9207],[1420243200000,11.9207],[1420329600000,11.9207],[1420416000000,11.9207],[1420502400000,11.9207],[1420588800000,11.8099],[1420675200000,11.8099],[1420761600000,null],[1420848000000,11.7654],[1420934400000,11.7654],[1421020800000,11.7654],[1421107200000,11.7898],[1421193600000,11.7987],[1421280000000,null],[1421366400000,11.814],[1421452800000,11.9493],[1421539200000,11.9753],[1421625600000,11.9753],[1421712000000,11.9235],[1421798400000,11.8447],[1421884800000,11.7902],[1421971200000,null],[1422057600000,11.853],[1422144000000,11.853],[1422230400000,11.853],[1422316800000,11.7572],[1422403200000,11.8308],[1422489600000,11.8296],[1422576000000,11.7945],[1422662400000,11.9455],[1422748800000,11.9455],[1422835200000,11.9455],[1422921600000,11.9371],[1423008000000,12.0059],[1423094400000,12.3882],[1423180800000,13.3817],[1423267200000,null],[1423353600000,17.1834],[1423440000000,17.1834],[1423526400000,18.578],[1423612800000,18.3272],[1423699200000,18.8441],[1423785600000,18.4541],[1423872000000,19.069],[1423958400000,19.069],[1424044800000,19.069],[1424131200000,19.2029],[1424217600000,19.4238],[1424304000000,19.7839],[1424390400000,20.1044],[1424476800000,20.5111],[1424563200000,20.5111],[1424649600000,20.5111],[1424736000000,20.8513],[1424822400000,20.7771],[1424908800000,20.6035],[1424995200000,22.1417],[1425081600000,20.545],[1425168000000,20.545],[1425254400000,20.545],[1425340800000,19.7453],[1425427200000,18.2096],[1425513600000,17.4404],[1425600000000,16.8909],[1425686400000,16.7226],[1425772800000,16.7226],[1425859200000,16.7226],[1425945600000,16.7226],[1426032000000,15.7587],[1426118400000,15.5441],[1426204800000,15.5354],[1426291200000,15.6884],[1426377600000,15.6884],[1426464000000,15.6884],[1426550400000,15.6793],[1426636800000,16.0096],[1426723200000,16.778],[1426809600000,16.8164],[1426896000000,16.72],[1426982400000,16.72],[1427068800000,16.72],[1427155200000,16.6999],[1427241600000,16.991],[1427328000000,17.2692],[1427414400000,17.1841],[1427500800000,17.2155],[1427587200000,17.2155],[1427673600000,17.2155],[1427760000000,17.1237],[1427846400000,17.0782],[1427932800000,17.1848],[1428019200000,17.2979],[1428105600000,17.1473],[1428192000000,17.1473],[1428278400000,17.1473],[1428364800000,17.2523],[1428451200000,17.3166],[1428537600000,17.365],[1428624000000,17.3106],[1428710400000,16.7507],[1428796800000,16.7507],[1428883200000,16.7507],[1428969600000,16.7507],[1429056000000,16.8192],[1429142400000,16.0007],[1429228800000,15.8396],[1429315200000,15.6809],[1429401600000,15.6809],[1429488000000,15.6809],[1429574400000,16.4985],[1429660800000,16.5032],[1429747200000,16.7523],[1429833600000,16.7233],[1429920000000,16.7864],[1430006400000,16.7864],[1430092800000,16.7864],[1430179200000,17.1672],[1430265600000,16.8545],[1430352000000,15.9069],[1430438400000,15.9973],[1430524800000,15.9973],[1430611200000,15.9973],[1430697600000,15.9973],[1430784000000,15.9973],[1430870400000,15.8078],[1430956800000,15.8478],[1431043200000,15.567],[1431129600000,15.4821],[1431216000000,15.4821],[1431302400000,15.4821],[1431388800000,15.4821],[1431475200000,15.4496],[1431561600000,15.475],[1431648000000,15.6036],[1431734400000,15.6074],[1431820800000,15.6074],[1431907200000,15.6074],[1431993600000,16.7315],[1432080000000,15.9626],[1432166400000,15.5811],[1432252800000,15.4768],[1432339200000,15.6669],[1432425600000,15.6669],[1432512000000,15.6669],[1432598400000,15.7527],[1432684800000,15.9157],[1432771200000,null],[1432857600000,15.5771],[1432944000000,15.6295],[1433030400000,15.6295],[1433116800000,15.6295],[1433203200000,15.6295],[1433289600000,15.5497],[1433376000000,15.5733],[1433462400000,15.624],[1433548800000,15.5976],[1433635200000,15.5976],[1433721600000,15.5976],[1433808000000,15.5322],[1433894400000,15.6708],[1433980800000,15.7297],[1434067200000,15.6049],[1434153600000,15.6208],[1434240000000,15.6208],[1434326400000,15.6208],[1434412800000,15.9272],[1434499200000,16.4516],[1434585600000,16.077],[1434672000000,16.0172],[1434758400000,16.1786],[1434844800000,16.1786],[1434931200000,16.1786],[1435017600000,16.3111],[1435104000000,16.0718],[1435190400000,15.7672],[1435276800000,15.8012],[1435363200000,15.5903],[1435449600000,15.5903],[1435536000000,15.5903],[1435622400000,15.5903],[1435708800000,15.5978],[1435795200000,15.5634],[1435881600000,15.5393],[1435968000000,15.5968],[1436054400000,15.5968],[1436140800000,15.5968],[1436227200000,15.7364],[1436313600000,15.9832],[1436400000000,16.2376],[1436486400000,16.1751],[1436572800000,16.2611],[1436659200000,16.2611],[1436745600000,16.2611],[1436832000000,16.2272],[1436918400000,16.1732],[1437004800000,16.2264],[1437091200000,16.0852],[1437177600000,16.1211],[1437264000000,16.1211],[1437350400000,16.1211],[1437436800000,16.0519],[1437523200000,16.1247],[1437609600000,16.1177],[1437696000000,16.1122],[1437782400000,16.0557],[1437868800000,16.0557],[1437955200000,16.0557],[1438041600000,16.0557],[1438128000000,16.1206],[1438214400000,16.1507],[1438300800000,15.7282],[1438387200000,15.3624],[1438473600000,15.3624],[1438560000000,15.3624],[1438646400000,15.7638],[1438732800000,15.7752],[1438819200000,15.5875],[1438905600000,15.5076],[1438992000000,15.2447],[1439078400000,15.2447],[1439164800000,15.2447],[1439251200000,15.3408],[1439337600000,15.2772],[1439424000000,15.2411],[1439510400000,15.2964],[1439596800000,15.5138],[1439683200000,15.5138],[1439769600000,15.5138],[1439856000000,15.6232],[1439942400000,15.7462],[1440028800000,15.7132],[1440115200000,15.6904],[1440201600000,15.7242],[1440288000000,15.7242],[1440374400000,15.7242],[1440460800000,null],[1440547200000,16.1841],[1440633600000,15.2628],[1440720000000,15.2309],[1440806400000,15.0667],[1440892800000,15.0667],[1440979200000,15.0667],[1441065600000,15.4367],[1441152000000,null],[1441238400000,null],[1441324800000,null],[1441411200000,null],[1441497600000,null],[1441584000000,null],[1441670400000,null],[1441756800000,null],[1441843200000,null],[1441929600000,null],[1442016000000,null],[1442102400000,null],[1442188800000,null],[1442275200000,null],[1442361600000,null],[1442448000000,15.5808],[1442534400000,null],[1442620800000,15.5546],[1442707200000,15.5546],[1442793600000,15.5546],[1442880000000,15.5192],[1442966400000,15.3312],[1443052800000,15.1775],[1443139200000,15.0294],[1443225600000,15.198],[1443312000000,15.198],[1443398400000,15.198],[1443484800000,15.1091],[1443571200000,15.0709],[1443657600000,14.9849],[1443744000000,14.823],[1443830400000,14.754],[1443916800000,14.754],[1444003200000,14.754],[1444089600000,14.9136],[1444176000000,14.9298],[1444262400000,15.0995],[1444348800000,15.0851],[1444435200000,15.4046],[1444521600000,15.4046],[1444608000000,15.4046],[1444694400000,15.6088],[1444780800000,15.661],[1444867200000,15.661],[1444953600000,15.7516],[1445040000000,15.3966],[1445126400000,15.3966],[1445212800000,15.3966],[1445299200000,15.6195],[1445385600000,15.8369],[1445472000000,16.2318],[1445558400000,16.0099],[1445644800000,16.2395],[1445731200000,16.2395],[1445817600000,16.2395],[1445904000000,16.4343],[1445990400000,16.398],[1446076800000,16.4226],[1446163200000,16.2834],[1446249600000,16.4015],[1446336000000,16.4015],[1446422400000,16.4015],[1446508800000,16.4169],[1446595200000,16.4461],[1446681600000,16.5115],[1446768000000,16.2964],[1446854400000,16.0675],[1446940800000,16.0675],[1447027200000,16.0675],[1447113600000,15.9744],[1447200000000,16.0035],[1447286400000,16.0057],[1447372800000,16.1229],[1447459200000,16.2179],[1447545600000,16.2179],[1447632000000,16.2179],[1447718400000,16.3148],[1447804800000,16.7142],[1447891200000,16.797],[1447977600000,16.8398],[1448064000000,16.9845],[1448150400000,16.9845],[1448236800000,16.9845],[1448323200000,16.9642],[1448409600000,16.9221],[1448496000000,16.9026],[1448582400000,16.7569],[1448668800000,16.929],[1448755200000,16.929],[1448841600000,16.929],[1448928000000,16.9576],[1449014400000,16.9078],[1449100800000,16.7747],[1449187200000,16.4144],[1449273600000,16.9438],[1449360000000,16.9438],[1449446400000,16.9438],[1449532800000,16.6861],[1449619200000,16.2195],[1449705600000,16.2838],[1449792000000,16.6723],[1449878400000,16.9259],[1449964800000,16.9259],[1450051200000,16.9259],[1450137600000,16.8833],[1450224000000,16.674],[1450310400000,16.6896],[1450396800000,16.5872],[1450483200000,16.6764],[1450569600000,16.6764],[1450656000000,16.6764],[1450742400000,16.701],[1450828800000,16.4838],[1450915200000,16.3373],[1451001600000,16.3284],[1451088000000,16.4514],[1451174400000,16.4514],[1451260800000,16.4514],[1451347200000,16.9071],[1451433600000,16.8459]], 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: [[1421280000000, 11.857774],[1421280000000, 11.857774],[1423958400000, 17.938816],[1426377600000, 16.984752],[1429056000000, 16.723904],[1431648000000, 15.724837],[1434326400000, 15.784013],[1436918400000, 16.003565],[1439596800000, 15.465869],[1442275200000, 15.322321],[1444867200000, 15.598072],[1447545600000, 16.512970],[1450137600000, 16.687755]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });