$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1451606400000,0.00129],[1451692800000,0.00129],[1451779200000,0.00129],[1451865600000,0.00129],[1451952000000,0.00129],[1452038400000,0.00127],[1452124800000,0.00125],[1452211200000,0.00125],[1452297600000,0.00125],[1452384000000,0.00125],[1452470400000,0.00125],[1452556800000,0.00123],[1452643200000,0.00121],[1452729600000,0.00122],[1452816000000,0.00123],[1452902400000,0.00122],[1452988800000,0.00121],[1453075200000,0.00121],[1453161600000,0.00121],[1453248000000,0.00122],[1453334400000,0.00121],[1453420800000,0.00114],[1453507200000,0.00118],[1453593600000,0.00118],[1453680000000,0.00118],[1453766400000,0.0012],[1453852800000,0.00117],[1453939200000,0.00116],[1454025600000,0.00118],[1454112000000,0.00123],[1454198400000,0.00123],[1454284800000,0.00123],[1454371200000,0.00121],[1454457600000,0.0012],[1454544000000,0.00118],[1454630400000,0.00121],[1454716800000,0.0012],[1454803200000,0.0012],[1454889600000,0.0012],[1454976000000,0.00119],[1455062400000,0.00118],[1455148800000,0.00118],[1455235200000,0.00118],[1455321600000,0.00119],[1455408000000,0.00119],[1455494400000,0.00119],[1455580800000,0.00123],[1455667200000,0.00125],[1455753600000,0.00122],[1455840000000,0.00122],[1455926400000,0.00124],[1456012800000,0.00124],[1456099200000,0.00124],[1456185600000,0.00125],[1456272000000,0.00126],[1456358400000,0.00126],[1456444800000,0.00126],[1456531200000,0.00126],[1456617600000,0.00126],[1456704000000,0.00126],[1456790400000,0.00126],[1456876800000,0.00127],[1456963200000,0.00126],[1457049600000,0.00123],[1457136000000,0.00125],[1457222400000,0.00125],[1457308800000,0.00125],[1457395200000,0.00125],[1457481600000,0.00125],[1457568000000,0.00125],[1457654400000,0.00122],[1457740800000,0.00125],[1457827200000,0.00126],[1457913600000,0.00126],[1458000000000,0.00129],[1458086400000,0.0013],[1458172800000,0.0013],[1458259200000,0.00131],[1458345600000,0.00129],[1458432000000,0.00129],[1458518400000,0.00129],[1458604800000,0.00131],[1458691200000,0.00129],[1458777600000,0.00129],[1458864000000,0.00129],[1458950400000,0.00129],[1459036800000,0.00129],[1459123200000,0.00129],[1459209600000,0.00131],[1459296000000,0.0013],[1459382400000,0.0013],[1459468800000,0.0013],[1459555200000,0.00131],[1459641600000,0.00131],[1459728000000,0.00131],[1459814400000,0.00129],[1459900800000,0.00129],[1459987200000,0.00128],[1460073600000,0.00128],[1460160000000,0.00128],[1460246400000,null],[1460332800000,null],[1460419200000,0.00128],[1460505600000,0.00129],[1460592000000,0.00128],[1460678400000,0.00128],[1460764800000,0.00128],[1460851200000,0.00128],[1460937600000,0.00128],[1461024000000,0.00126],[1461110400000,0.00128],[1461196800000,0.00128],[1461283200000,0.00129],[1461369600000,0.00129],[1461456000000,0.00129],[1461542400000,0.00129],[1461628800000,0.00129],[1461715200000,0.00129],[1461801600000,0.00129],[1461888000000,0.0013],[1461974400000,0.00131],[1462060800000,0.00131],[1462147200000,0.00131],[1462233600000,0.00131],[1462320000000,0.00131],[1462406400000,0.0013],[1462492800000,0.0013],[1462579200000,0.00129],[1462665600000,0.00129],[1462752000000,0.00129],[1462838400000,0.00129],[1462924800000,0.0013],[1463011200000,0.0013],[1463097600000,0.00132],[1463184000000,0.00132],[1463270400000,0.00132],[1463356800000,0.00132],[1463443200000,0.00132],[1463529600000,0.00131],[1463616000000,0.0013],[1463702400000,0.00129],[1463788800000,0.00129],[1463875200000,null],[1463961600000,0.00129],[1464048000000,0.00128],[1464134400000,0.00127],[1464220800000,0.00127],[1464307200000,0.00128],[1464393600000,0.00128],[1464480000000,0.00128],[1464566400000,0.00128],[1464652800000,0.00127],[1464739200000,0.00127],[1464825600000,0.00126],[1464912000000,0.00126],[1464998400000,0.00125],[1465084800000,0.00125],[1465171200000,0.00125],[1465257600000,0.00126],[1465344000000,0.00126],[1465430400000,0.00126],[1465516800000,0.00127],[1465603200000,0.00126],[1465689600000,0.00126],[1465776000000,0.00126],[1465862400000,0.00125],[1465948800000,0.00125],[1466035200000,null],[1466121600000,0.00124],[1466208000000,0.00125],[1466294400000,0.00125],[1466380800000,0.00125],[1466467200000,0.00125],[1466553600000,0.00126],[1466640000000,0.00126],[1466726400000,0.00126],[1466812800000,0.00124],[1466899200000,0.00124],[1466985600000,0.00124],[1467072000000,0.00124],[1467158400000,0.00124],[1467244800000,0.00124]], 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: [[1452816000000, 0.001225],[1452816000000, 0.001225],[1455494400000, 0.001220],[1458000000000, 0.001275],[1460678400000, 0.001289],[1463270400000, 0.001296],[1465948800000, 0.001253]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });