$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1464739200000,18.2488],[1464825600000,18.24],[1464912000000,18.2007],[1464998400000,18.1664],[1465084800000,18.1664],[1465171200000,18.1664],[1465257600000,18.3845],[1465344000000,18.4393],[1465430400000,18.5052],[1465516800000,18.4925],[1465603200000,18.4735],[1465689600000,18.4735],[1465776000000,18.4735],[1465862400000,18.4224],[1465948800000,18.3643],[1466035200000,null],[1466121600000,18.4099],[1466208000000,18.4582],[1466294400000,18.4582],[1466380800000,18.4582],[1466467200000,18.4582],[1466553600000,18.5664],[1466640000000,18.5895],[1466726400000,18.5806],[1466812800000,18.383],[1466899200000,18.383],[1466985600000,18.383],[1467072000000,18.383],[1467158400000,18.383],[1467244800000,18.4359]], 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, 18.248833],[1464739200000, 18.248833],[1464825600000, 18.240031],[1464912000000, 18.200721],[1464998400000, 18.166446],[1465084800000, 18.166446],[1465171200000, 18.166446],[1465257600000, 18.384481],[1465344000000, 18.439340],[1465430400000, 18.505197],[1465516800000, 18.492461],[1465603200000, 18.473472],[1465689600000, 18.473472],[1465776000000, 18.473472],[1465862400000, 18.422413],[1465948800000, 18.364322],[1466121600000, 18.409928],[1466208000000, 18.458195],[1466294400000, 18.458195],[1466380800000, 18.458195],[1466467200000, 18.458195],[1466553600000, 18.566445],[1466640000000, 18.589532],[1466726400000, 18.580624],[1466812800000, 18.383022],[1466899200000, 18.383022],[1466985600000, 18.383022],[1467072000000, 18.383022],[1467158400000, 18.383022],[1467244800000, 18.435917]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });