$(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: [[1328054400000,10.5272],[1328140800000,10.5264],[1328227200000,10.4617],[1328313600000,10.5144],[1328400000000,10.5144],[1328486400000,10.5144],[1328572800000,10.4202],[1328659200000,10.4769],[1328745600000,10.6058],[1328832000000,10.617],[1328918400000,10.5379],[1329004800000,10.5379],[1329091200000,10.5379],[1329177600000,10.5869],[1329264000000,10.5195],[1329350400000,10.458],[1329436800000,10.3694],[1329523200000,10.5118],[1329609600000,10.5118],[1329696000000,10.5118],[1329782400000,10.5962],[1329868800000,10.5609],[1329955200000,10.5669],[1330041600000,10.6227],[1330128000000,10.7119],[1330214400000,10.7119],[1330300800000,10.7119],[1330387200000,10.6926],[1330473600000,10.7453]], 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: [[1328054400000, 10.527229],[1328054400000, 10.527229],[1328140800000, 10.526430],[1328227200000, 10.461713],[1328313600000, 10.514445],[1328400000000, 10.514445],[1328486400000, 10.514445],[1328572800000, 10.420167],[1328659200000, 10.476894],[1328745600000, 10.605793],[1328832000000, 10.616979],[1328918400000, 10.537879],[1329004800000, 10.537879],[1329091200000, 10.537879],[1329177600000, 10.586898],[1329264000000, 10.519529],[1329350400000, 10.458021],[1329436800000, 10.369373],[1329523200000, 10.511804],[1329609600000, 10.511804],[1329696000000, 10.511804],[1329782400000, 10.596218],[1329868800000, 10.560940],[1329955200000, 10.566933],[1330041600000, 10.622710],[1330128000000, 10.711896],[1330214400000, 10.711896],[1330300800000, 10.711896],[1330387200000, 10.692594],[1330473600000, 10.745306]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });