$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1535760000000,3.38757],[1535846400000,3.38757],[1535932800000,3.38757],[1536019200000,3.39563],[1536105600000,3.39031],[1536192000000,3.37552],[1536278400000,3.35889],[1536364800000,3.35872],[1536451200000,3.35872],[1536537600000,3.35872],[1536624000000,3.36298],[1536710400000,3.35963],[1536796800000,3.37059],[1536883200000,3.41412],[1536969600000,3.41908],[1537056000000,3.41908],[1537142400000,3.41908],[1537228800000,3.43304],[1537315200000,3.44896],[1537401600000,3.43646],[1537488000000,3.44433],[1537574400000,3.44484],[1537660800000,3.44484],[1537747200000,3.44484],[1537833600000,3.45848],[1537920000000,3.45279],[1538006400000,3.46004],[1538092800000,3.48669],[1538179200000,3.45696],[1538265600000,3.45696]], 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: [[1535760000000, 3.387569],[1535760000000, 3.387569],[1535846400000, 3.387569],[1535932800000, 3.387569],[1536019200000, 3.395626],[1536105600000, 3.390305],[1536192000000, 3.375520],[1536278400000, 3.358893],[1536364800000, 3.358716],[1536451200000, 3.358716],[1536537600000, 3.358716],[1536624000000, 3.362982],[1536710400000, 3.359631],[1536796800000, 3.370591],[1536883200000, 3.414122],[1536969600000, 3.419082],[1537056000000, 3.419082],[1537142400000, 3.419082],[1537228800000, 3.433041],[1537315200000, 3.448958],[1537401600000, 3.436456],[1537488000000, 3.444333],[1537574400000, 3.444838],[1537660800000, 3.444838],[1537747200000, 3.444838],[1537833600000, 3.458476],[1537920000000, 3.452790],[1538006400000, 3.460038],[1538092800000, 3.486689],[1538179200000, 3.456956],[1538265600000, 3.456956]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });