$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1228089600000,10.5474],[1228176000000,10.7001],[1228262400000,10.852],[1228348800000,10.9016],[1228435200000,10.7699],[1228521600000,10.756],[1228608000000,10.756],[1228694400000,10.756],[1228780800000,10.9936],[1228867200000,10.9503],[1228953600000,11.0627],[1229040000000,11.1555],[1229126400000,11.1718],[1229212800000,11.1718],[1229299200000,11.1718],[1229385600000,11.4969],[1229472000000,11.8551],[1229558400000,12.0376],[1229644800000,12.1103],[1229731200000,11.8263],[1229817600000,11.8263],[1229904000000,11.8263],[1229990400000,11.6695],[1230076800000,11.5354],[1230163200000,11.4926],[1230249600000,11.4926],[1230336000000,11.3598],[1230422400000,11.3598],[1230508800000,11.3598],[1230595200000,11.2288],[1230681600000,11.1429]], 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: [[1228089600000, 10.547354],[1228089600000, 10.547354],[1228176000000, 10.700058],[1228262400000, 10.852003],[1228348800000, 10.901635],[1228435200000, 10.769866],[1228521600000, 10.756043],[1228608000000, 10.756043],[1228694400000, 10.756043],[1228780800000, 10.993580],[1228867200000, 10.950250],[1228953600000, 11.062734],[1229040000000, 11.155492],[1229126400000, 11.171755],[1229212800000, 11.171755],[1229299200000, 11.171755],[1229385600000, 11.496869],[1229472000000, 11.855117],[1229558400000, 12.037583],[1229644800000, 12.110268],[1229731200000, 11.826260],[1229817600000, 11.826260],[1229904000000, 11.826260],[1229990400000, 11.669512],[1230076800000, 11.535422],[1230163200000, 11.492568],[1230249600000, 11.492568],[1230336000000, 11.359791],[1230422400000, 11.359791],[1230508800000, 11.359791],[1230595200000, 11.228757],[1230681600000, 11.142948]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });