$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1328054400000,10.1598],[1328140800000,10.1611],[1328227200000,10.1611],[1328313600000,10.1611],[1328400000000,10.1611],[1328486400000,10.1611],[1328572800000,10.1611],[1328659200000,10.1611],[1328745600000,10.1614],[1328832000000,10.1614],[1328918400000,10.1614],[1329004800000,10.1614],[1329091200000,10.1614],[1329177600000,10.1586],[1329264000000,10.1617],[1329350400000,10.1617],[1329436800000,10.1609],[1329523200000,10.1594],[1329609600000,10.1594],[1329696000000,10.1594],[1329782400000,10.1583],[1329868800000,10.1595],[1329955200000,10.1565],[1330041600000,10.1564],[1330128000000,10.1574],[1330214400000,10.1574],[1330300800000,10.1574],[1330387200000,10.1573],[1330473600000,10.1586]], 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.159842],[1328054400000, 10.159842],[1328140800000, 10.161134],[1328227200000, 10.161134],[1328313600000, 10.161134],[1328400000000, 10.161134],[1328486400000, 10.161134],[1328572800000, 10.161134],[1328659200000, 10.161134],[1328745600000, 10.161389],[1328832000000, 10.161389],[1328918400000, 10.161389],[1329004800000, 10.161389],[1329091200000, 10.161389],[1329177600000, 10.158591],[1329264000000, 10.161684],[1329350400000, 10.161684],[1329436800000, 10.160921],[1329523200000, 10.159354],[1329609600000, 10.159354],[1329696000000, 10.159354],[1329782400000, 10.158337],[1329868800000, 10.159501],[1329955200000, 10.156536],[1330041600000, 10.156409],[1330128000000, 10.157446],[1330214400000, 10.157446],[1330300800000, 10.157446],[1330387200000, 10.157319],[1330473600000, 10.158611]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });