$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1356998400000,10.1822],[1357084800000,10.1822],[1357171200000,10.1822],[1357257600000,10.1822],[1357344000000,10.1822],[1357430400000,10.1822],[1357516800000,10.1822],[1357603200000,10.1822],[1357689600000,10.1848],[1357776000000,10.1848],[1357862400000,10.1848],[1357948800000,10.1848],[1358035200000,10.1848],[1358121600000,10.1848],[1358208000000,10.1848],[1358294400000,10.1835],[1358380800000,10.1835],[1358467200000,10.1835],[1358553600000,10.1848],[1358640000000,10.1848],[1358726400000,10.1848],[1358812800000,10.1848],[1358899200000,10.1848],[1358985600000,10.1835],[1359072000000,10.1861],[1359158400000,10.1861],[1359244800000,10.1861],[1359331200000,10.1861],[1359417600000,10.1874],[1359504000000,10.1887],[1359590400000,10.19]], 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: [[1356998400000, 10.182166],[1356998400000, 10.182166],[1357084800000, 10.182166],[1357171200000, 10.182166],[1357257600000, 10.182166],[1357344000000, 10.182166],[1357430400000, 10.182166],[1357516800000, 10.182166],[1357603200000, 10.182166],[1357689600000, 10.184760],[1357776000000, 10.184760],[1357862400000, 10.184760],[1357948800000, 10.184760],[1358035200000, 10.184760],[1358121600000, 10.184760],[1358208000000, 10.184760],[1358294400000, 10.183463],[1358380800000, 10.183463],[1358467200000, 10.183463],[1358553600000, 10.184760],[1358640000000, 10.184760],[1358726400000, 10.184760],[1358812800000, 10.184760],[1358899200000, 10.184760],[1358985600000, 10.183463],[1359072000000, 10.186058],[1359158400000, 10.186058],[1359244800000, 10.186058],[1359331200000, 10.186058],[1359417600000, 10.187357],[1359504000000, 10.188655],[1359590400000, 10.189954]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });