$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1530403200000,0.417],[1530489600000,0.417],[1530576000000,0.41547],[1530662400000,0.416],[1530748800000,0.41815],[1530835200000,0.41779],[1530921600000,0.41691],[1531008000000,0.41691],[1531094400000,0.41691],[1531180800000,0.41776],[1531267200000,0.41972],[1531353600000,0.42235],[1531440000000,0.42163],[1531526400000,0.42112],[1531612800000,0.42112],[1531699200000,0.42112],[1531785600000,0.42096],[1531872000000,0.41998],[1531958400000,0.41817],[1532044800000,0.41837],[1532131200000,0.41655],[1532217600000,0.41655],[1532304000000,0.41655],[1532390400000,0.41854],[1532476800000,0.42247],[1532563200000,0.42209],[1532649600000,0.42339],[1532736000000,0.42497],[1532822400000,0.42497],[1532908800000,0.42497],[1532995200000,0.42617]], 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: [[1530403200000, 0.417000],[1530403200000, 0.417000],[1530489600000, 0.417000],[1530576000000, 0.415470],[1530662400000, 0.416000],[1530748800000, 0.418150],[1530835200000, 0.417790],[1530921600000, 0.416910],[1531008000000, 0.416910],[1531094400000, 0.416910],[1531180800000, 0.417760],[1531267200000, 0.419720],[1531353600000, 0.422350],[1531440000000, 0.421630],[1531526400000, 0.421120],[1531612800000, 0.421120],[1531699200000, 0.421120],[1531785600000, 0.420960],[1531872000000, 0.419980],[1531958400000, 0.418170],[1532044800000, 0.418370],[1532131200000, 0.416550],[1532217600000, 0.416550],[1532304000000, 0.416550],[1532390400000, 0.418540],[1532476800000, 0.422470],[1532563200000, 0.422090],[1532649600000, 0.423390],[1532736000000, 0.424970],[1532822400000, 0.424970],[1532908800000, 0.424970],[1532995200000, 0.426170]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });