$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1356998400000,8.03016],[1357084800000,8.03016],[1357171200000,8.03016],[1357257600000,8.10371],[1357344000000,8.06427],[1357430400000,8.06427],[1357516800000,8.06427],[1357603200000,8.06427],[1357689600000,8.10888],[1357776000000,8.09405],[1357862400000,8.10738],[1357948800000,8.12397],[1358035200000,8.12397],[1358121600000,8.12397],[1358208000000,8.10417],[1358294400000,8.10552],[1358380800000,8.09976],[1358467200000,8.09902],[1358553600000,8.07298],[1358640000000,8.07298],[1358726400000,8.07298],[1358812800000,8.04919],[1358899200000,8.03827],[1358985600000,8.05829],[1359072000000,7.97806],[1359158400000,7.94346],[1359244800000,7.94346],[1359331200000,7.94346],[1359417600000,7.92345],[1359504000000,7.94744],[1359590400000,7.97416]], 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, 8.030157],[1356998400000, 8.030157],[1357084800000, 8.030157],[1357171200000, 8.030157],[1357257600000, 8.103713],[1357344000000, 8.064272],[1357430400000, 8.064272],[1357516800000, 8.064272],[1357603200000, 8.064272],[1357689600000, 8.108877],[1357776000000, 8.094052],[1357862400000, 8.107380],[1357948800000, 8.123973],[1358035200000, 8.123973],[1358121600000, 8.123973],[1358208000000, 8.104166],[1358294400000, 8.105518],[1358380800000, 8.099760],[1358467200000, 8.099024],[1358553600000, 8.072978],[1358640000000, 8.072978],[1358726400000, 8.072978],[1358812800000, 8.049187],[1358899200000, 8.038271],[1358985600000, 8.058288],[1359072000000, 7.978059],[1359158400000, 7.943460],[1359244800000, 7.943460],[1359331200000, 7.943460],[1359417600000, 7.923455],[1359504000000, 7.947444],[1359590400000, 7.974156]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });