$(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: [[1254355200000,1.57439],[1254441600000,1.56406],[1254528000000,1.56404],[1254614400000,1.56404],[1254700800000,1.56404],[1254787200000,1.57267],[1254873600000,1.58407],[1254960000000,1.58121],[1255046400000,1.58844],[1255132800000,1.58724],[1255219200000,1.58724],[1255305600000,1.58724],[1255392000000,1.58872],[1255478400000,1.59864],[1255564800000,1.59891],[1255651200000,1.59345],[1255737600000,1.5919],[1255824000000,1.5919],[1255910400000,1.5919],[1255996800000,1.59728],[1256083200000,1.60498],[1256169600000,1.60227],[1256256000000,1.61309],[1256342400000,1.61383],[1256428800000,1.61383],[1256515200000,1.61383],[1256601600000,1.61397],[1256688000000,1.60016],[1256774400000,1.59065],[1256860800000,1.5894],[1256947200000,1.58936]], 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: [[1254355200000, 1.574393],[1254355200000, 1.574393],[1254441600000, 1.564062],[1254528000000, 1.564042],[1254614400000, 1.564042],[1254700800000, 1.564042],[1254787200000, 1.572668],[1254873600000, 1.584074],[1254960000000, 1.581210],[1255046400000, 1.588443],[1255132800000, 1.587236],[1255219200000, 1.587236],[1255305600000, 1.587236],[1255392000000, 1.588722],[1255478400000, 1.598637],[1255564800000, 1.598912],[1255651200000, 1.593449],[1255737600000, 1.591902],[1255824000000, 1.591902],[1255910400000, 1.591902],[1255996800000, 1.597276],[1256083200000, 1.604984],[1256169600000, 1.602273],[1256256000000, 1.613087],[1256342400000, 1.613826],[1256428800000, 1.613826],[1256515200000, 1.613826],[1256601600000, 1.613966],[1256688000000, 1.600164],[1256774400000, 1.590654],[1256860800000, 1.589403],[1256947200000, 1.589365]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });