$(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: [[1296518400000,10.8735],[1296604800000,10.9235],[1296691200000,10.9619],[1296777600000,10.9186],[1296864000000,10.8308],[1296950400000,10.8308],[1297036800000,10.8308],[1297123200000,10.7679],[1297209600000,10.833],[1297296000000,10.8398],[1297382400000,10.8072],[1297468800000,10.7428],[1297555200000,10.7428],[1297641600000,10.7428],[1297728000000,10.6761],[1297814400000,10.7317],[1297900800000,10.7292],[1297987200000,10.7689],[1298073600000,10.8222],[1298160000000,10.8222],[1298246400000,10.8222],[1298332800000,10.8525],[1298419200000,10.8486],[1298505600000,10.8924],[1298592000000,10.9243],[1298678400000,10.9142],[1298764800000,10.9142],[1298851200000,10.9142]], 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: [[1296518400000, 10.873502],[1296518400000, 10.873502],[1296604800000, 10.923533],[1296691200000, 10.961929],[1296777600000, 10.918616],[1296864000000, 10.830784],[1296950400000, 10.830784],[1297036800000, 10.830784],[1297123200000, 10.767859],[1297209600000, 10.833007],[1297296000000, 10.839812],[1297382400000, 10.807154],[1297468800000, 10.742789],[1297555200000, 10.742789],[1297641600000, 10.742789],[1297728000000, 10.676064],[1297814400000, 10.731669],[1297900800000, 10.729237],[1297987200000, 10.768945],[1298073600000, 10.822155],[1298160000000, 10.822155],[1298246400000, 10.822155],[1298332800000, 10.852529],[1298419200000, 10.848591],[1298505600000, 10.892390],[1298592000000, 10.924330],[1298678400000, 10.914229],[1298764800000, 10.914229],[1298851200000, 10.914229]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });