$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1249084800000,1.46184],[1249171200000,1.46184],[1249257600000,1.46184],[1249344000000,1.47672],[1249430400000,1.48405],[1249516800000,1.48707],[1249603200000,1.48583],[1249689600000,1.48565],[1249776000000,1.48565],[1249862400000,1.48565],[1249948800000,1.47075],[1250035200000,1.47054],[1250121600000,1.47313],[1250208000000,1.48772],[1250294400000,1.4914],[1250380800000,1.4914],[1250467200000,1.4914],[1250553600000,1.47564],[1250640000000,1.48328],[1250726400000,1.48793],[1250812800000,1.50865],[1250899200000,1.52859],[1250985600000,1.52859],[1251072000000,1.52859],[1251158400000,1.52859],[1251244800000,1.53255],[1251331200000,1.53178],[1251417600000,1.53134],[1251504000000,1.54173],[1251590400000,1.54173],[1251676800000,1.54173]], 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: [[1249084800000, 1.461837],[1249084800000, 1.461837],[1249171200000, 1.461837],[1249257600000, 1.461837],[1249344000000, 1.476716],[1249430400000, 1.484053],[1249516800000, 1.487066],[1249603200000, 1.485833],[1249689600000, 1.485647],[1249776000000, 1.485647],[1249862400000, 1.485647],[1249948800000, 1.470751],[1250035200000, 1.470544],[1250121600000, 1.473132],[1250208000000, 1.487722],[1250294400000, 1.491400],[1250380800000, 1.491400],[1250467200000, 1.491400],[1250553600000, 1.475636],[1250640000000, 1.483283],[1250726400000, 1.487928],[1250812800000, 1.508645],[1250899200000, 1.528585],[1250985600000, 1.528585],[1251072000000, 1.528585],[1251158400000, 1.528585],[1251244800000, 1.532552],[1251331200000, 1.531784],[1251417600000, 1.531343],[1251504000000, 1.541729],[1251590400000, 1.541729],[1251676800000, 1.541729]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });