$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1254355200000,0.749061],[1254441600000,0.744205],[1254528000000,0.744196],[1254614400000,0.744196],[1254700800000,0.744196],[1254787200000,0.74824],[1254873600000,0.753667],[1254960000000,0.752233],[1255046400000,0.755766],[1255132800000,0.7551],[1255219200000,0.7551],[1255305600000,0.7551],[1255392000000,0.755868],[1255478400000,0.760575],[1255564800000,0.760665],[1255651200000,0.758086],[1255737600000,0.757391],[1255824000000,0.757391],[1255910400000,0.757391],[1255996800000,0.759887],[1256083200000,0.763543],[1256169600000,0.762233],[1256256000000,0.767419],[1256342400000,0.76777],[1256428800000,0.76777],[1256515200000,0.76777],[1256601600000,0.767796],[1256688000000,0.76122],[1256774400000,0.756665],[1256860800000,0.7561],[1256947200000,0.756052]], 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, 0.749061],[1254355200000, 0.749061],[1254441600000, 0.744205],[1254528000000, 0.744196],[1254614400000, 0.744196],[1254700800000, 0.744196],[1254787200000, 0.748240],[1254873600000, 0.753667],[1254960000000, 0.752233],[1255046400000, 0.755766],[1255132800000, 0.755100],[1255219200000, 0.755100],[1255305600000, 0.755100],[1255392000000, 0.755868],[1255478400000, 0.760575],[1255564800000, 0.760665],[1255651200000, 0.758086],[1255737600000, 0.757391],[1255824000000, 0.757391],[1255910400000, 0.757391],[1255996800000, 0.759887],[1256083200000, 0.763543],[1256169600000, 0.762233],[1256256000000, 0.767419],[1256342400000, 0.767770],[1256428800000, 0.767770],[1256515200000, 0.767770],[1256601600000, 0.767796],[1256688000000, 0.761220],[1256774400000, 0.756665],[1256860800000, 0.756100],[1256947200000, 0.756052]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });