$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1254355200000,2.80842],[1254441600000,2.81018],[1254528000000,2.81053],[1254614400000,2.81053],[1254700800000,2.81053],[1254787200000,2.81053],[1254873600000,2.81053],[1254960000000,2.81053],[1255046400000,2.81053],[1255132800000,2.81053],[1255219200000,2.81053],[1255305600000,2.81053],[1255392000000,2.81053],[1255478400000,2.80919],[1255564800000,2.80632],[1255651200000,2.8],[1255737600000,2.79649],[1255824000000,2.79649],[1255910400000,2.79649],[1255996800000,2.79649],[1256083200000,2.8],[1256169600000,2.80456],[1256256000000,2.80877],[1256342400000,2.80632],[1256428800000,2.80632],[1256515200000,2.80632],[1256601600000,2.8066],[1256688000000,2.80968],[1256774400000,2.80968],[1256860800000,2.80702],[1256947200000,2.80456]], 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.808421],[1254355200000, 2.808421],[1254441600000, 2.810175],[1254528000000, 2.810526],[1254614400000, 2.810526],[1254700800000, 2.810526],[1254787200000, 2.810526],[1254873600000, 2.810526],[1254960000000, 2.810526],[1255046400000, 2.810526],[1255132800000, 2.810526],[1255219200000, 2.810526],[1255305600000, 2.810526],[1255392000000, 2.810526],[1255478400000, 2.809193],[1255564800000, 2.806316],[1255651200000, 2.800000],[1255737600000, 2.796491],[1255824000000, 2.796491],[1255910400000, 2.796491],[1255996800000, 2.796491],[1256083200000, 2.800000],[1256169600000, 2.804561],[1256256000000, 2.808772],[1256342400000, 2.806316],[1256428800000, 2.806316],[1256515200000, 2.806316],[1256601600000, 2.806596],[1256688000000, 2.809684],[1256774400000, 2.809684],[1256860800000, 2.807018],[1256947200000, 2.804561]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });