$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1356998400000,0.092838],[1357084800000,0.092838],[1357171200000,0.092838],[1357257600000,0.09192],[1357344000000,0.09047],[1357430400000,0.09047],[1357516800000,0.09047],[1357603200000,0.09047],[1357689600000,0.091303],[1357776000000,0.091269],[1357862400000,0.090543],[1357948800000,0.089778],[1358035200000,0.089778],[1358121600000,0.089778],[1358208000000,0.089534],[1358294400000,0.090243],[1358380800000,0.090657],[1358467200000,0.089549],[1358553600000,0.088845],[1358640000000,0.088845],[1358726400000,0.088845],[1358812800000,0.089211],[1358899200000,0.090068],[1358985600000,0.090309],[1359072000000,0.089116],[1359158400000,0.087734],[1359244800000,0.087734],[1359331200000,0.087734],[1359417600000,0.087929],[1359504000000,0.088356],[1359590400000,0.087603],[1359676800000,0.087824],[1359763200000,0.086704],[1359849600000,0.086704],[1359936000000,0.086704],[1360022400000,0.086222],[1360108800000,0.08565],[1360195200000,0.085422],[1360281600000,0.085335],[1360368000000,0.086543],[1360454400000,0.086543],[1360540800000,0.086543],[1360627200000,0.085545],[1360713600000,0.084842],[1360800000000,0.085546],[1360886400000,0.085636],[1360972800000,0.085872],[1361059200000,0.085872],[1361145600000,0.085872],[1361232000000,0.085214],[1361318400000,0.085489],[1361404800000,0.085432],[1361491200000,0.085792],[1361577600000,0.085701],[1361664000000,0.085701],[1361750400000,0.085701],[1361836800000,0.085071],[1361923200000,0.086959],[1362009600000,0.087193],[1362096000000,0.086677],[1362182400000,0.08621],[1362268800000,0.08621],[1362355200000,0.08621],[1362441600000,0.085448],[1362528000000,0.085781],[1362614400000,0.085506],[1362700800000,0.084681],[1362787200000,0.084681],[1362873600000,0.084681],[1362960000000,0.084681],[1363046400000,0.083149],[1363132800000,0.083299],[1363219200000,0.083279],[1363305600000,0.082864],[1363392000000,0.083304],[1363478400000,0.083304],[1363564800000,0.083304],[1363651200000,0.0841],[1363737600000,0.083781],[1363824000000,0.083652],[1363910400000,0.083928],[1363996800000,0.084244],[1364083200000,0.084244],[1364169600000,0.084244],[1364256000000,0.084365],[1364342400000,0.084782],[1364428800000,0.084833],[1364515200000,0.084678],[1364601600000,0.084678],[1364688000000,0.084678],[1364774400000,0.084678],[1364860800000,0.084678],[1364947200000,0.085675],[1365033600000,0.085474],[1365120000000,0.083766],[1365206400000,0.083108],[1365292800000,0.083108],[1365379200000,0.083108],[1365465600000,0.081031],[1365552000000,0.080848],[1365638400000,0.080651],[1365724800000,0.08042],[1365811200000,0.080535],[1365897600000,0.080535],[1365984000000,0.080535],[1366070400000,0.081793],[1366156800000,0.081748],[1366243200000,0.081596],[1366329600000,0.081206],[1366416000000,0.080507],[1366502400000,0.080507],[1366588800000,0.080507],[1366675200000,0.080157],[1366761600000,0.080763],[1366848000000,0.0803],[1366934400000,0.080626],[1367020800000,0.08109],[1367107200000,0.08109],[1367193600000,0.08109],[1367280000000,0.081712],[1367366400000,0.082045],[1367452800000,0.082045],[1367539200000,0.082045],[1367625600000,0.082045],[1367712000000,0.082045],[1367798400000,0.082045],[1367884800000,0.082045],[1367971200000,0.0806],[1368057600000,0.080828],[1368144000000,0.080828],[1368230400000,0.080828],[1368316800000,0.080828],[1368403200000,0.080828],[1368489600000,0.078549],[1368576000000,0.078651],[1368662400000,0.077872],[1368748800000,0.077964],[1368835200000,0.078003],[1368921600000,0.078003],[1369008000000,0.078003],[1369094400000,0.077911],[1369180800000,0.077713],[1369267200000,0.077513],[1369353600000,0.078594],[1369440000000,0.078797],[1369526400000,0.078797],[1369612800000,0.078797],[1369699200000,0.079196],[1369785600000,0.078355],[1369872000000,0.079087],[1369958400000,0.078558],[1370044800000,0.079679],[1370131200000,0.079679],[1370217600000,0.079679],[1370304000000,0.079752],[1370390400000,0.079711],[1370476800000,0.080262],[1370563200000,0.08068],[1370649600000,0.08358],[1370736000000,0.08358],[1370822400000,0.08358],[1370908800000,0.080922],[1370995200000,0.082497],[1371081600000,0.082715],[1371168000000,0.084897],[1371254400000,0.084142],[1371340800000,0.084142],[1371427200000,0.084142],[1371513600000,0.084364],[1371600000000,0.083809],[1371686400000,0.084082],[1371772800000,0.081624],[1371859200000,0.081881],[1371945600000,0.081881],[1372032000000,0.081881],[1372118400000,0.081881],[1372204800000,0.08215],[1372291200000,0.081757],[1372377600000,0.081423],[1372464000000,0.081423],[1372550400000,0.081423],[1372636800000,0.081423],[1372723200000,0.080164],[1372809600000,0.079985],[1372896000000,0.080389],[1372982400000,0.080053],[1373068800000,0.079843],[1373155200000,0.079843],[1373241600000,0.079843],[1373328000000,0.078983],[1373414400000,0.079008],[1373500800000,0.079737],[1373587200000,0.080429],[1373673600000,0.080293],[1373760000000,0.080293],[1373846400000,0.080293],[1373932800000,0.079588],[1374019200000,0.080439],[1374105600000,0.080058],[1374192000000,0.079753],[1374278400000,0.079663],[1374364800000,0.079663],[1374451200000,null],[1374537600000,0.080046],[1374624000000,0.079863],[1374710400000,0.079846],[1374796800000,0.080057],[1374883200000,0.081005],[1374969600000,0.081005],[1375056000000,0.081005],[1375142400000,0.081647],[1375228800000,0.081682],[1375315200000,0.081621],[1375401600000,0.080951],[1375488000000,0.080082],[1375574400000,null],[1375660800000,0.080082],[1375747200000,0.081123],[1375833600000,0.081482],[1375920000000,0.082305],[1376006400000,0.082986],[1376092800000,0.082887],[1376179200000,0.082887],[1376265600000,0.082887],[1376352000000,0.082502],[1376438400000,0.081544],[1376524800000,0.081318],[1376611200000,0.081455],[1376697600000,0.082002],[1376784000000,0.082002],[1376870400000,0.082002],[1376956800000,0.081593],[1377043200000,0.082132],[1377129600000,0.081963],[1377216000000,0.081012],[1377302400000,0.080655],[1377388800000,0.080655],[1377475200000,0.080655],[1377561600000,0.080655],[1377648000000,0.081964],[1377734400000,0.082],[1377820800000,0.081353],[1377907200000,0.081369],[1377993600000,0.081369],[1378080000000,0.081369],[1378166400000,0.080528],[1378252800000,0.080382],[1378339200000,0.080326],[1378425600000,0.080161],[1378512000000,0.080211],[1378598400000,0.080211],[1378684800000,0.080211],[1378771200000,0.08032],[1378857600000,0.079689],[1378944000000,0.079762],[1379030400000,0.080365],[1379116800000,0.080244],[1379203200000,0.080244],[1379289600000,0.080244],[1379376000000,0.08085],[1379462400000,0.080606],[1379548800000,0.08074],[1379635200000,0.080741],[1379721600000,0.080269],[1379808000000,0.080269],[1379894400000,0.080269],[1379980800000,0.080822],[1380067200000,0.081018],[1380153600000,0.081071],[1380240000000,0.080877],[1380326400000,0.081183],[1380412800000,0.081183],[1380499200000,0.081183],[1380585600000,0.081913],[1380672000000,0.081702],[1380758400000,0.081987],[1380844800000,0.081814],[1380931200000,0.082291],[1381017600000,0.082291],[1381104000000,0.082291],[1381190400000,0.08252],[1381276800000,0.082244],[1381363200000,0.082117],[1381449600000,0.082117],[1381536000000,0.081296],[1381622400000,0.081296],[1381708800000,0.081296],[1381795200000,0.0814],[1381881600000,0.081157],[1381968000000,0.081266],[1382054400000,0.081712],[1382140800000,0.081789],[1382227200000,0.081789],[1382313600000,0.081789],[1382400000000,0.081419],[1382486400000,0.081249],[1382572800000,0.08206],[1382659200000,0.08215],[1382745600000,0.082087],[1382832000000,0.082087],[1382918400000,0.082087],[1383004800000,0.081824],[1383091200000,0.081589],[1383177600000,0.081374],[1383264000000,0.081374],[1383350400000,null],[1383436800000,0.081223],[1383523200000,0.081223],[1383609600000,0.080998],[1383696000000,0.081347],[1383782400000,0.081033],[1383868800000,0.080929],[1383955200000,0.081588],[1384041600000,0.081588],[1384128000000,0.081588],[1384214400000,0.08058],[1384300800000,0.080199],[1384387200000,0.080458],[1384473600000,0.07999],[1384560000000,0.079699],[1384646400000,0.079699],[1384732800000,0.079699],[1384819200000,0.079894],[1384905600000,0.080007],[1384992000000,0.079971],[1385078400000,0.079277],[1385164800000,0.079018],[1385251200000,0.079018],[1385337600000,0.079018],[1385424000000,0.078518],[1385510400000,0.078842],[1385596800000,0.078504],[1385683200000,0.078125],[1385769600000,0.07815],[1385856000000,0.07815],[1385942400000,0.07815],[1386028800000,0.077747],[1386115200000,0.077905],[1386201600000,0.077985],[1386288000000,0.078323],[1386374400000,0.078201],[1386460800000,0.078201],[1386547200000,0.078201],[1386633600000,0.077606],[1386720000000,0.077753],[1386806400000,0.077921],[1386892800000,0.077806],[1386979200000,0.077306],[1387065600000,0.077306],[1387152000000,0.077306],[1387238400000,0.077614],[1387324800000,0.077605],[1387411200000,0.077605],[1387497600000,0.076633],[1387584000000,0.076507],[1387670400000,0.076507],[1387756800000,0.076507],[1387843200000,0.076921],[1387929600000,0.076669],[1388016000000,0.076669],[1388102400000,0.076669],[1388188800000,0.076138],[1388275200000,0.076138],[1388361600000,0.076138]], 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, 0.089906],[1358208000000, 0.089906],[1360886400000, 0.085987],[1363305600000, 0.084499],[1365984000000, 0.081761],[1368576000000, 0.079659],[1371254400000, 0.082107],[1373846400000, 0.080197],[1376524800000, 0.081604],[1379203200000, 0.080557],[1381795200000, 0.081807],[1384473600000, 0.080054],[1387065600000, 0.077301]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });