$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1328054400000,2.49207],[1328140800000,2.50599],[1328227200000,2.49106],[1328313600000,2.5075],[1328400000000,2.5075],[1328486400000,2.5075],[1328572800000,2.49465],[1328659200000,2.50745],[1328745600000,2.53891],[1328832000000,2.5296],[1328918400000,2.49784],[1329004800000,2.49784],[1329091200000,2.49784],[1329177600000,2.52418],[1329264000000,2.51003],[1329350400000,2.49744],[1329436800000,2.44792],[1329523200000,2.51382],[1329609600000,2.51382],[1329696000000,2.51382],[1329782400000,2.54228],[1329868800000,2.52431],[1329955200000,2.52399],[1330041600000,2.54114],[1330128000000,2.57096],[1330214400000,2.57096],[1330300800000,2.57096],[1330387200000,2.56184],[1330473600000,2.59486]], 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, 2.492065],[1328054400000, 2.492065],[1328140800000, 2.505994],[1328227200000, 2.491062],[1328313600000, 2.507499],[1328400000000, 2.507499],[1328486400000, 2.507499],[1328572800000, 2.494653],[1328659200000, 2.507454],[1328745600000, 2.538911],[1328832000000, 2.529599],[1328918400000, 2.497838],[1329004800000, 2.497838],[1329091200000, 2.497838],[1329177600000, 2.524176],[1329264000000, 2.510028],[1329350400000, 2.497438],[1329436800000, 2.447916],[1329523200000, 2.513823],[1329609600000, 2.513823],[1329696000000, 2.513823],[1329782400000, 2.542279],[1329868800000, 2.524306],[1329955200000, 2.523989],[1330041600000, 2.541136],[1330128000000, 2.570958],[1330214400000, 2.570958],[1330300800000, 2.570958],[1330387200000, 2.561837],[1330473600000, 2.594858]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });