$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1254355200000,2.77107],[1254441600000,2.74306],[1254528000000,2.7438],[1254614400000,2.7438],[1254700800000,2.7438],[1254787200000,2.78245],[1254873600000,2.82363],[1254960000000,2.7904],[1255046400000,2.79324],[1255132800000,2.77602],[1255219200000,2.77602],[1255305600000,2.77602],[1255392000000,2.78015],[1255478400000,2.81134],[1255564800000,2.83262],[1255651200000,2.80911],[1255737600000,2.81266],[1255824000000,2.81266],[1255910400000,2.81266],[1255996800000,2.83559],[1256083200000,2.8746],[1256169600000,2.85456],[1256256000000,2.86781],[1256342400000,2.87723],[1256428800000,2.87723],[1256515200000,2.87723],[1256601600000,2.8778],[1256688000000,2.83361],[1256774400000,2.7842],[1256860800000,2.77937],[1256947200000,2.78935]], 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, 2.771074],[1254355200000, 2.771074],[1254441600000, 2.743059],[1254528000000, 2.743800],[1254614400000, 2.743800],[1254700800000, 2.743800],[1254787200000, 2.782445],[1254873600000, 2.823629],[1254960000000, 2.790397],[1255046400000, 2.793236],[1255132800000, 2.776022],[1255219200000, 2.776022],[1255305600000, 2.776022],[1255392000000, 2.780152],[1255478400000, 2.811343],[1255564800000, 2.832621],[1255651200000, 2.809111],[1255737600000, 2.812663],[1255824000000, 2.812663],[1255910400000, 2.812663],[1255996800000, 2.835594],[1256083200000, 2.874605],[1256169600000, 2.854561],[1256256000000, 2.867805],[1256342400000, 2.877226],[1256428800000, 2.877226],[1256515200000, 2.877226],[1256601600000, 2.877805],[1256688000000, 2.833608],[1256774400000, 2.784196],[1256860800000, 2.779373],[1256947200000, 2.789352]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });