$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1464739200000,1.25653],[1464825600000,1.25968],[1464912000000,1.25859],[1464998400000,1.25857],[1465084800000,1.25857],[1465171200000,1.25857],[1465257600000,1.26067],[1465344000000,1.26211],[1465430400000,1.26236],[1465516800000,1.26535],[1465603200000,1.26647],[1465689600000,1.26647],[1465776000000,1.26647],[1465862400000,1.26242],[1465948800000,1.25771],[1466035200000,null],[1466121600000,1.25623],[1466208000000,1.25771],[1466294400000,1.25771],[1466380800000,1.25771],[1466467200000,1.25771],[1466553600000,1.26015],[1466640000000,1.26085],[1466726400000,1.25923],[1466812800000,1.25808],[1466899200000,1.25808],[1466985600000,1.25808],[1467072000000,1.25808],[1467158400000,1.25808],[1467244800000,1.25086]], 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, 1.256529],[1464739200000, 1.256529],[1464825600000, 1.259679],[1464912000000, 1.258589],[1464998400000, 1.258567],[1465084800000, 1.258567],[1465171200000, 1.258567],[1465257600000, 1.260667],[1465344000000, 1.262106],[1465430400000, 1.262361],[1465516800000, 1.265353],[1465603200000, 1.266471],[1465689600000, 1.266471],[1465776000000, 1.266471],[1465862400000, 1.262422],[1465948800000, 1.257708],[1466121600000, 1.256230],[1466208000000, 1.257713],[1466294400000, 1.257713],[1466380800000, 1.257713],[1466467200000, 1.257713],[1466553600000, 1.260153],[1466640000000, 1.260847],[1466726400000, 1.259226],[1466812800000, 1.258081],[1466899200000, 1.258081],[1466985600000, 1.258081],[1467072000000, 1.258081],[1467158400000, 1.258081],[1467244800000, 1.250864]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });