$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1356998400000,1.43607],[1357084800000,1.43607],[1357171200000,1.43607],[1357257600000,1.43625],[1357344000000,1.42492],[1357430400000,1.42492],[1357516800000,1.42492],[1357603200000,1.42492],[1357689600000,1.42784],[1357776000000,1.42466],[1357862400000,1.43618],[1357948800000,1.44372],[1358035200000,1.44372],[1358121600000,1.44372],[1358208000000,1.44835],[1358294400000,1.43959],[1358380800000,1.43023],[1358467200000,1.44285],[1358553600000,1.4276],[1358640000000,1.4276],[1358726400000,1.4276],[1358812800000,1.43056],[1358899200000,1.4303],[1358985600000,1.43953],[1359072000000,1.43925],[1359158400000,1.45013],[1359244800000,1.45013],[1359331200000,1.45013],[1359417600000,1.44394],[1359504000000,1.44879],[1359590400000,1.45573],[1359676800000,1.45669],[1359763200000,1.46828],[1359849600000,1.46828],[1359936000000,1.46828],[1360022400000,1.45838],[1360108800000,1.45942],[1360195200000,1.45549],[1360281600000,1.45626],[1360368000000,1.44633],[1360454400000,1.44633],[1360540800000,1.44633],[1360627200000,1.45043],[1360713600000,1.45404],[1360800000000,1.46175],[1360886400000,1.44722],[1360972800000,1.44035],[1361059200000,1.44035],[1361145600000,1.44035],[1361232000000,1.44083],[1361318400000,1.43857],[1361404800000,1.44287],[1361491200000,1.40988],[1361577600000,1.41149],[1361664000000,1.41149],[1361750400000,1.41149],[1361836800000,1.42402],[1361923200000,1.40123],[1362009600000,1.40196],[1362096000000,1.40163],[1362182400000,1.38814],[1362268800000,1.38814],[1362355200000,1.38814],[1362441600000,1.39635],[1362528000000,1.40028],[1362614400000,1.40322],[1362700800000,1.40213],[1362787200000,1.40213],[1362873600000,1.40213],[1362960000000,1.40213],[1363046400000,1.39626],[1363132800000,1.40128],[1363219200000,1.39402],[1363305600000,1.37288],[1363392000000,1.3886],[1363478400000,1.3886],[1363564800000,1.3886],[1363651200000,1.37761],[1363737600000,1.37573],[1363824000000,1.37136],[1363910400000,1.36711],[1363996800000,1.37268],[1364083200000,1.37268],[1364169600000,1.37268],[1364256000000,1.37067],[1364342400000,1.3711],[1364428800000,1.36583],[1364515200000,1.36249],[1364601600000,1.36249],[1364688000000,1.36249],[1364774400000,1.36249],[1364860800000,1.36249],[1364947200000,1.37445],[1365033600000,1.37695],[1365120000000,1.37541],[1365206400000,1.38921],[1365292800000,1.38921],[1365379200000,1.38921],[1365465600000,1.39647],[1365552000000,1.39231],[1365638400000,1.3935],[1365724800000,1.40244],[1365811200000,1.39434],[1365897600000,1.39434],[1365984000000,1.39434],[1366070400000,1.39399],[1366156800000,1.39511],[1366243200000,1.38902],[1366329600000,1.37431],[1366416000000,1.37995],[1366502400000,1.37995],[1366588800000,1.37995],[1366675200000,1.36949],[1366761600000,1.35238],[1366848000000,1.35396],[1366934400000,1.36602],[1367020800000,1.36326],[1367107200000,1.36326],[1367193600000,1.36326],[1367280000000,1.37748],[1367366400000,1.37344],[1367452800000,1.37344],[1367539200000,1.37344],[1367625600000,1.37344],[1367712000000,1.37344],[1367798400000,1.37344],[1367884800000,1.37344],[1367971200000,1.37135],[1368057600000,1.38306],[1368144000000,1.38306],[1368230400000,1.38306],[1368316800000,1.38306],[1368403200000,1.38306],[1368489600000,1.37652],[1368576000000,1.37557],[1368662400000,1.36342],[1368748800000,1.36717],[1368835200000,1.36434],[1368921600000,1.36434],[1369008000000,1.36434],[1369094400000,1.36718],[1369180800000,1.36999],[1369267200000,1.3837],[1369353600000,1.36732],[1369440000000,1.37373],[1369526400000,1.37373],[1369612800000,1.37373],[1369699200000,1.37018],[1369785600000,1.36917],[1369872000000,1.36217],[1369958400000,1.35794],[1370044800000,1.36534],[1370131200000,1.36534],[1370217600000,1.36534],[1370304000000,1.36861],[1370390400000,1.37735],[1370476800000,1.37337],[1370563200000,1.38309],[1370649600000,1.38899],[1370736000000,1.38899],[1370822400000,1.38899],[1370908800000,1.38701],[1370995200000,1.38032],[1371081600000,1.38451],[1371168000000,1.38631],[1371254400000,1.39167],[1371340800000,1.39167],[1371427200000,1.39167],[1371513600000,1.39633],[1371600000000,1.38946],[1371686400000,1.39587],[1371772800000,1.34405],[1371859200000,1.332],[1371945600000,1.332],[1372032000000,1.332],[1372118400000,1.332],[1372204800000,1.31554],[1372291200000,1.30994],[1372377600000,1.32172],[1372464000000,1.32172],[1372550400000,1.32172],[1372636800000,1.32172],[1372723200000,1.3193],[1372809600000,1.3137],[1372896000000,1.30529],[1372982400000,1.30789],[1373068800000,1.29486],[1373155200000,1.29486],[1373241600000,1.29486],[1373328000000,1.28952],[1373414400000,1.30083],[1373500800000,1.30381],[1373587200000,1.31493],[1373673600000,1.31658],[1373760000000,1.31658],[1373846400000,1.31658],[1373932800000,1.31137],[1374019200000,1.32834],[1374105600000,1.33286],[1374192000000,1.33256],[1374278400000,1.33519],[1374364800000,1.33519],[1374451200000,null],[1374537600000,1.34521],[1374624000000,1.34785],[1374710400000,1.36008],[1374796800000,1.34846],[1374883200000,1.34775],[1374969600000,1.34775],[1375056000000,1.34775],[1375142400000,1.34937],[1375228800000,1.34882],[1375315200000,1.34902],[1375401600000,1.35038],[1375488000000,1.3417],[1375574400000,null],[1375660800000,1.3417],[1375747200000,1.34899],[1375833600000,1.3503],[1375920000000,1.34625],[1376006400000,1.35447],[1376092800000,1.36741],[1376179200000,1.36741],[1376265600000,1.36741],[1376352000000,1.35938],[1376438400000,1.36258],[1376524800000,1.35481],[1376611200000,1.35505],[1376697600000,1.34945],[1376784000000,1.34945],[1376870400000,1.34945],[1376956800000,1.34943],[1377043200000,1.34037],[1377129600000,1.32835],[1377216000000,1.31106],[1377302400000,1.31883],[1377388800000,1.31883],[1377475200000,1.31883],[1377561600000,1.31883],[1377648000000,1.32782],[1377734400000,1.32377],[1377820800000,1.31737],[1377907200000,1.30755],[1377993600000,1.30755],[1378080000000,1.30755],[1378166400000,1.31798],[1378252800000,1.31588],[1378339200000,1.31537],[1378425600000,1.31118],[1378512000000,1.31022],[1378598400000,1.31022],[1378684800000,1.31022],[1378771200000,1.31463],[1378857600000,1.34623],[1378944000000,1.35097],[1379030400000,1.35226],[1379116800000,1.35037],[1379203200000,1.35037],[1379289600000,1.35037],[1379376000000,1.35279],[1379462400000,1.35725],[1379548800000,1.35237],[1379635200000,1.38058],[1379721600000,1.34912],[1379808000000,1.34912],[1379894400000,1.34912],[1379980800000,1.35453],[1380067200000,1.34276],[1380153600000,1.32715],[1380240000000,1.33826],[1380326400000,1.33532],[1380412800000,1.33532],[1380499200000,1.33532],[1380585600000,1.33036],[1380672000000,1.3324],[1380758400000,1.3284],[1380844800000,1.33995],[1380931200000,1.33895],[1381017600000,1.33895],[1381104000000,1.33895],[1381190400000,1.33482],[1381276800000,1.34265],[1381363200000,1.332],[1381449600000,1.332],[1381536000000,1.33399],[1381622400000,1.33399],[1381708800000,1.33399],[1381795200000,1.33313],[1381881600000,1.32852],[1381968000000,1.33218],[1382054400000,1.34566],[1382140800000,1.35057],[1382227200000,1.35057],[1382313600000,1.35057],[1382400000000,1.34998],[1382486400000,1.34378],[1382572800000,1.35103],[1382659200000,1.35874],[1382745600000,1.35332],[1382832000000,1.35332],[1382918400000,1.35332],[1383004800000,1.35517],[1383091200000,1.35535],[1383177600000,1.36069],[1383264000000,1.34542],[1383350400000,null],[1383436800000,1.3416],[1383523200000,1.3416],[1383609600000,1.34664],[1383696000000,1.33951],[1383782400000,1.34205],[1383868800000,1.33266],[1383955200000,1.31312],[1384041600000,1.31312],[1384128000000,1.31312],[1384214400000,1.30455],[1384300800000,1.2936],[1384387200000,1.28599],[1384473600000,1.28909],[1384560000000,1.30352],[1384646400000,1.30352],[1384732800000,1.30352],[1384819200000,1.30666],[1384905600000,1.31156],[1384992000000,1.31407],[1385078400000,1.31215],[1385164800000,1.31663],[1385251200000,1.31663],[1385337600000,1.31663],[1385424000000,1.30527],[1385510400000,1.30956],[1385596800000,1.31677],[1385683200000,1.31272],[1385769600000,1.3076],[1385856000000,1.3076],[1385942400000,1.3076],[1386028800000,1.30204],[1386115200000,1.30916],[1386201600000,1.30727],[1386288000000,1.29299],[1386374400000,1.29467],[1386460800000,1.29467],[1386547200000,1.29467],[1386633600000,1.3013],[1386720000000,1.30814],[1386806400000,1.30665],[1386892800000,1.29893],[1386979200000,1.29234],[1387065600000,1.29234],[1387152000000,1.29234],[1387238400000,1.30549],[1387324800000,1.299],[1387411200000,1.31148],[1387497600000,1.30312],[1387584000000,1.29687],[1387670400000,1.29687],[1387756800000,1.29687],[1387843200000,1.3042],[1387929600000,1.29677],[1388016000000,1.29677],[1388102400000,1.29677],[1388188800000,1.30708],[1388275200000,1.30708],[1388361600000,1.30708]], 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: [[1358208000000, 1.436977],[1358208000000, 1.436977],[1360886400000, 1.441371],[1363305600000, 1.384180],[1365984000000, 1.379619],[1368576000000, 1.372429],[1371254400000, 1.364098],[1373846400000, 1.324328],[1376524800000, 1.341542],[1379203200000, 1.336014],[1381795200000, 1.342494],[1384473600000, 1.315823],[1387065600000, 1.301137]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });