$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1254355200000,9.96142],[1254441600000,9.96888],[1254528000000,9.96889],[1254614400000,9.96889],[1254700800000,9.96889],[1254787200000,9.96889],[1254873600000,9.97137],[1254960000000,9.97137],[1255046400000,9.97261],[1255132800000,9.97137],[1255219200000,9.97137],[1255305600000,9.97137],[1255392000000,9.97013],[1255478400000,9.96788],[1255564800000,9.96015],[1255651200000,9.93897],[1255737600000,9.92528],[1255824000000,9.92528],[1255910400000,9.92528],[1255996800000,9.92528],[1256083200000,9.93897],[1256169600000,9.95268],[1256256000000,9.96762],[1256342400000,9.95891],[1256428800000,9.95891],[1256515200000,9.95891],[1256601600000,9.9599],[1256688000000,9.96962],[1256774400000,9.96838],[1256860800000,9.95768],[1256947200000,9.95144]], 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, 9.961419],[1254355200000, 9.961419],[1254441600000, 9.968882],[1254528000000, 9.968886],[1254614400000, 9.968886],[1254700800000, 9.968886],[1254787200000, 9.968886],[1254873600000, 9.971368],[1254960000000, 9.971368],[1255046400000, 9.972610],[1255132800000, 9.971368],[1255219200000, 9.971368],[1255305600000, 9.971368],[1255392000000, 9.970127],[1255478400000, 9.967878],[1255564800000, 9.960149],[1255651200000, 9.938971],[1255737600000, 9.925280],[1255824000000, 9.925280],[1255910400000, 9.925280],[1255996800000, 9.925280],[1256083200000, 9.938971],[1256169600000, 9.952683],[1256256000000, 9.967625],[1256342400000, 9.958909],[1256428800000, 9.958909],[1256515200000, 9.958909],[1256601600000, 9.959905],[1256688000000, 9.969622],[1256774400000, 9.968380],[1256860800000, 9.957680],[1256947200000, 9.951444]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });