$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1291161600000,10.3178],[1291248000000,10.4107],[1291334400000,10.4451],[1291420800000,10.52],[1291507200000,10.52],[1291593600000,10.52],[1291680000000,10.5693],[1291766400000,10.6263],[1291852800000,10.4958],[1291939200000,10.507],[1292025600000,10.5331],[1292112000000,10.5331],[1292198400000,10.5331],[1292284800000,10.5514],[1292371200000,10.6984],[1292457600000,10.6387],[1292544000000,10.5421],[1292630400000,10.5596],[1292716800000,10.5596],[1292803200000,10.5596],[1292889600000,10.4696],[1292976000000,10.476],[1293062400000,10.4417],[1293148800000,10.4035],[1293235200000,10.4288],[1293321600000,10.4288],[1293408000000,10.4288],[1293494400000,10.4577],[1293580800000,10.5047],[1293667200000,10.4557],[1293753600000,10.5731]], 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: [[1291161600000, 10.317812],[1291161600000, 10.317812],[1291248000000, 10.410687],[1291334400000, 10.445070],[1291420800000, 10.519973],[1291507200000, 10.519973],[1291593600000, 10.519973],[1291680000000, 10.569286],[1291766400000, 10.626258],[1291852800000, 10.495848],[1291939200000, 10.506980],[1292025600000, 10.533086],[1292112000000, 10.533086],[1292198400000, 10.533086],[1292284800000, 10.551378],[1292371200000, 10.698425],[1292457600000, 10.638702],[1292544000000, 10.542081],[1292630400000, 10.559601],[1292716800000, 10.559601],[1292803200000, 10.559601],[1292889600000, 10.469613],[1292976000000, 10.475984],[1293062400000, 10.441741],[1293148800000, 10.403516],[1293235200000, 10.428769],[1293321600000, 10.428769],[1293408000000, 10.428769],[1293494400000, 10.457701],[1293580800000, 10.504671],[1293667200000, 10.455731],[1293753600000, 10.573138]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });