$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1328054400000,1.41598],[1328140800000,1.41604],[1328227200000,1.40737],[1328313600000,1.41451],[1328400000000,1.41451],[1328486400000,1.41451],[1328572800000,1.40165],[1328659200000,1.4094],[1328745600000,1.42689],[1328832000000,1.42855],[1328918400000,1.41787],[1329004800000,1.41787],[1329091200000,1.41787],[1329177600000,1.42433],[1329264000000,1.41519],[1329350400000,1.40708],[1329436800000,1.39503],[1329523200000,1.41413],[1329609600000,1.41413],[1329696000000,1.41413],[1329782400000,1.42539],[1329868800000,1.42028],[1329955200000,1.42099],[1330041600000,1.42828],[1330128000000,1.44051],[1330214400000,1.44051],[1330300800000,1.44051],[1330387200000,1.43795],[1330473600000,1.44514]], 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, 1.415978],[1328054400000, 1.415978],[1328140800000, 1.416042],[1328227200000, 1.407374],[1328313600000, 1.414506],[1328400000000, 1.414506],[1328486400000, 1.414506],[1328572800000, 1.401653],[1328659200000, 1.409397],[1328745600000, 1.426891],[1328832000000, 1.428549],[1328918400000, 1.417868],[1329004800000, 1.417868],[1329091200000, 1.417868],[1329177600000, 1.424329],[1329264000000, 1.415190],[1329350400000, 1.407085],[1329436800000, 1.395027],[1329523200000, 1.414131],[1329609600000, 1.414131],[1329696000000, 1.414131],[1329782400000, 1.425391],[1329868800000, 1.420283],[1329955200000, 1.420993],[1330041600000, 1.428283],[1330128000000, 1.440507],[1330214400000, 1.440507],[1330300800000, 1.440507],[1330387200000, 1.437950],[1330473600000, 1.445136]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });