$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1464739200000,36.8091],[1464825600000,36.2523],[1464912000000,36.2414],[1464998400000,36.0837],[1465084800000,36.0837],[1465171200000,36.0837],[1465257600000,36.0216],[1465344000000,36.372],[1465430400000,36.3641],[1465516800000,36.156],[1465603200000,36.0313],[1465689600000,36.0313],[1465776000000,36.0313],[1465862400000,35.3829],[1465948800000,35.1884],[1466035200000,null],[1466121600000,35.2112],[1466208000000,35.5877],[1466294400000,35.5877],[1466380800000,35.5877],[1466467200000,35.5877],[1466553600000,36.6926],[1466640000000,36.5821],[1466726400000,36.9987],[1466812800000,34.0866],[1466899200000,34.0866],[1466985600000,34.0866],[1467072000000,34.0866],[1467158400000,34.0866],[1467244800000,33.3901]], 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, 36.809059],[1464739200000, 36.809059],[1464825600000, 36.252291],[1464912000000, 36.241405],[1464998400000, 36.083730],[1465084800000, 36.083730],[1465171200000, 36.083730],[1465257600000, 36.021625],[1465344000000, 36.372001],[1465430400000, 36.364059],[1465516800000, 36.155993],[1465603200000, 36.031274],[1465689600000, 36.031274],[1465776000000, 36.031274],[1465862400000, 35.382896],[1465948800000, 35.188386],[1466121600000, 35.211174],[1466208000000, 35.587737],[1466294400000, 35.587737],[1466380800000, 35.587737],[1466467200000, 35.587737],[1466553600000, 36.692646],[1466640000000, 36.582112],[1466726400000, 36.998718],[1466812800000, 34.086562],[1466899200000, 34.086562],[1466985600000, 34.086562],[1467072000000, 34.086562],[1467158400000, 34.086562],[1467244800000, 33.390115]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });