$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1335830400000,12.3796],[1335916800000,12.3796],[1336003200000,12.3796],[1336089600000,12.3505],[1336176000000,12.3518],[1336262400000,12.3518],[1336348800000,12.3518],[1336435200000,12.35],[1336521600000,12.3176],[1336608000000,12.3176],[1336694400000,12.2901],[1336780800000,12.2809],[1336867200000,12.2809],[1336953600000,12.2809],[1337040000000,12.2578],[1337126400000,12.2496],[1337212800000,12.1827],[1337299200000,12.1758],[1337385600000,12.183],[1337472000000,12.183],[1337558400000,12.183],[1337644800000,12.2129],[1337731200000,12.1992],[1337817600000,12.1695],[1337904000000,12.1361],[1337990400000,12.1332],[1338076800000,12.1332],[1338163200000,12.1332],[1338249600000,12.1332],[1338336000000,12.1206],[1338422400000,12.0813]], 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: [[1335830400000, 12.379630],[1335830400000, 12.379630],[1335916800000, 12.379630],[1336003200000, 12.379630],[1336089600000, 12.350467],[1336176000000, 12.351842],[1336262400000, 12.351842],[1336348800000, 12.351842],[1336435200000, 12.349987],[1336521600000, 12.317619],[1336608000000, 12.317619],[1336694400000, 12.290114],[1336780800000, 12.280858],[1336867200000, 12.280858],[1336953600000, 12.280858],[1337040000000, 12.257797],[1337126400000, 12.249622],[1337212800000, 12.182719],[1337299200000, 12.175797],[1337385600000, 12.183038],[1337472000000, 12.183038],[1337558400000, 12.183038],[1337644800000, 12.212920],[1337731200000, 12.199236],[1337817600000, 12.169479],[1337904000000, 12.136051],[1337990400000, 12.133196],[1338076800000, 12.133196],[1338163200000, 12.133196],[1338249600000, 12.133196],[1338336000000, 12.120610],[1338422400000, 12.081274]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });