$(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: [[1356998400000,6.53509],[1357084800000,6.53509],[1357171200000,6.53509],[1357257600000,6.53751],[1357344000000,6.49462],[1357430400000,6.49462],[1357516800000,6.49462],[1357603200000,6.49462],[1357689600000,6.50475],[1357776000000,6.51089],[1357862400000,6.5267],[1357948800000,6.52115],[1358035200000,6.52115],[1358121600000,6.52115],[1358208000000,6.51522],[1358294400000,6.52233],[1358380800000,6.52904],[1358467200000,6.5312],[1358553600000,6.51807],[1358640000000,6.51807],[1358726400000,6.51807],[1358812800000,6.50325],[1358899200000,6.51265],[1358985600000,6.51781],[1359072000000,6.50879],[1359158400000,6.49088],[1359244800000,6.49088],[1359331200000,6.49088],[1359417600000,6.45548],[1359504000000,6.45679],[1359590400000,6.4667]], 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, 6.535086],[1356998400000, 6.535086],[1357084800000, 6.535086],[1357171200000, 6.535086],[1357257600000, 6.537505],[1357344000000, 6.494624],[1357430400000, 6.494624],[1357516800000, 6.494624],[1357603200000, 6.494624],[1357689600000, 6.504751],[1357776000000, 6.510894],[1357862400000, 6.526696],[1357948800000, 6.521148],[1358035200000, 6.521148],[1358121600000, 6.521148],[1358208000000, 6.515220],[1358294400000, 6.522331],[1358380800000, 6.529043],[1358467200000, 6.531200],[1358553600000, 6.518069],[1358640000000, 6.518069],[1358726400000, 6.518069],[1358812800000, 6.503251],[1358899200000, 6.512652],[1358985600000, 6.517813],[1359072000000, 6.508788],[1359158400000, 6.490879],[1359244800000, 6.490879],[1359331200000, 6.490879],[1359417600000, 6.455478],[1359504000000, 6.456790],[1359590400000, 6.466703]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });