$(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: [[1464739200000,0.38096],[1464825600000,0.37675],[1464912000000,0.3753],[1464998400000,0.37399],[1465084800000,0.37399],[1465171200000,0.37399],[1465257600000,0.37978],[1465344000000,0.3828],[1465430400000,0.38566],[1465516800000,0.39225],[1465603200000,0.38659],[1465689600000,0.38659],[1465776000000,0.38659],[1465862400000,0.38587],[1465948800000,0.37732],[1466035200000,null],[1466121600000,0.37813],[1466208000000,0.38064],[1466294400000,0.38064],[1466380800000,0.38064],[1466467200000,0.38064],[1466553600000,0.38789],[1466640000000,0.39077],[1466726400000,0.38685],[1466812800000,0.37958],[1466899200000,0.37958],[1466985600000,0.37958],[1467072000000,0.37958],[1467158400000,0.37958],[1467244800000,0.38679]], 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: [[1464739200000, 0.380960],[1464739200000, 0.380960],[1464825600000, 0.376750],[1464912000000, 0.375300],[1464998400000, 0.373990],[1465084800000, 0.373990],[1465171200000, 0.373990],[1465257600000, 0.379780],[1465344000000, 0.382800],[1465430400000, 0.385660],[1465516800000, 0.392250],[1465603200000, 0.386590],[1465689600000, 0.386590],[1465776000000, 0.386590],[1465862400000, 0.385870],[1465948800000, 0.377320],[1466121600000, 0.378130],[1466208000000, 0.380640],[1466294400000, 0.380640],[1466380800000, 0.380640],[1466467200000, 0.380640],[1466553600000, 0.387890],[1466640000000, 0.390770],[1466726400000, 0.386850],[1466812800000, 0.379580],[1466899200000, 0.379580],[1466985600000, 0.379580],[1467072000000, 0.379580],[1467158400000, 0.379580],[1467244800000, 0.386790]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });