$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1328054400000,15.0583],[1328140800000,15.0464],[1328227200000,14.9453],[1328313600000,15.0228],[1328400000000,15.0228],[1328486400000,15.0228],[1328572800000,14.9009],[1328659200000,14.9884],[1328745600000,15.1728],[1328832000000,15.191],[1328918400000,15.0756],[1329004800000,15.0756],[1329091200000,15.0756],[1329177600000,15.1501],[1329264000000,15.0537],[1329350400000,14.9678],[1329436800000,14.8431],[1329523200000,15.0427],[1329609600000,15.0427],[1329696000000,15.0427],[1329782400000,15.1765],[1329868800000,15.1368],[1329955200000,15.1345],[1330041600000,15.2079],[1330128000000,15.3334],[1330214400000,15.3334],[1330300800000,15.3334],[1330387200000,15.3036],[1330473600000,15.3768]], 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, 15.058259],[1328054400000, 15.058259],[1328140800000, 15.046355],[1328227200000, 14.945305],[1328313600000, 15.022782],[1328400000000, 15.022782],[1328486400000, 15.022782],[1328572800000, 14.900853],[1328659200000, 14.988403],[1328745600000, 15.172809],[1328832000000, 15.190985],[1328918400000, 15.075650],[1329004800000, 15.075650],[1329091200000, 15.075650],[1329177600000, 15.150111],[1329264000000, 15.053705],[1329350400000, 14.967827],[1329436800000, 14.843075],[1329523200000, 15.042650],[1329609600000, 15.042650],[1329696000000, 15.042650],[1329782400000, 15.176479],[1329868800000, 15.136793],[1329955200000, 15.134536],[1330041600000, 15.207888],[1330128000000, 15.333376],[1330214400000, 15.333376],[1330300800000, 15.333376],[1330387200000, 15.303555],[1330473600000, 15.376798]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });