$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1254355200000,7.77309],[1254441600000,7.67839],[1254528000000,7.70778],[1254614400000,7.70778],[1254700800000,7.70778],[1254787200000,7.75223],[1254873600000,7.80019],[1254960000000,7.76891],[1255046400000,7.79715],[1255132800000,7.77951],[1255219200000,7.77951],[1255305600000,7.77951],[1255392000000,7.79359],[1255478400000,7.8447],[1255564800000,7.8477],[1255651200000,7.83867],[1255737600000,7.80671],[1255824000000,7.80671],[1255910400000,7.80671],[1255996800000,7.85417],[1256083200000,7.90084],[1256169600000,7.89198],[1256256000000,7.94935],[1256342400000,7.9388],[1256428800000,7.9388],[1256515200000,7.9388],[1256601600000,7.93959],[1256688000000,7.86431],[1256774400000,7.83588],[1256860800000,7.83003],[1256947200000,7.82228]], 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, 7.773085],[1254355200000, 7.773085],[1254441600000, 7.678394],[1254528000000, 7.707776],[1254614400000, 7.707776],[1254700800000, 7.707776],[1254787200000, 7.752229],[1254873600000, 7.800187],[1254960000000, 7.768907],[1255046400000, 7.797154],[1255132800000, 7.779515],[1255219200000, 7.779515],[1255305600000, 7.779515],[1255392000000, 7.793585],[1255478400000, 7.844704],[1255564800000, 7.847701],[1255651200000, 7.838668],[1255737600000, 7.806715],[1255824000000, 7.806715],[1255910400000, 7.806715],[1255996800000, 7.854172],[1256083200000, 7.900839],[1256169600000, 7.891977],[1256256000000, 7.949355],[1256342400000, 7.938803],[1256428800000, 7.938803],[1256515200000, 7.938803],[1256601600000, 7.939593],[1256688000000, 7.864314],[1256774400000, 7.835884],[1256860800000, 7.830035],[1256947200000, 7.822284]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });