$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1367366400000,0.25748],[1367452800000,0.25748],[1367539200000,0.25748],[1367625600000,0.25748],[1367712000000,0.25748],[1367798400000,0.25748],[1367884800000,0.25748],[1367971200000,0.25718],[1368057600000,0.25715],[1368144000000,0.25715],[1368230400000,0.25715],[1368316800000,0.25715],[1368403200000,0.25715],[1368489600000,0.25474],[1368576000000,0.25555],[1368662400000,0.25433],[1368748800000,0.25442],[1368835200000,0.25461],[1368921600000,0.25461],[1369008000000,0.25461],[1369094400000,0.25504],[1369180800000,0.25637],[1369267200000,0.25596],[1369353600000,0.25398],[1369440000000,0.25523],[1369526400000,0.25523],[1369612800000,0.25523],[1369699200000,0.25535],[1369785600000,0.25473],[1369872000000,0.25358],[1369958400000,0.25303]], 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: [[1367366400000, 0.257480],[1367366400000, 0.257480],[1367452800000, 0.257480],[1367539200000, 0.257480],[1367625600000, 0.257480],[1367712000000, 0.257480],[1367798400000, 0.257480],[1367884800000, 0.257480],[1367971200000, 0.257180],[1368057600000, 0.257150],[1368144000000, 0.257150],[1368230400000, 0.257150],[1368316800000, 0.257150],[1368403200000, 0.257150],[1368489600000, 0.254740],[1368576000000, 0.255550],[1368662400000, 0.254330],[1368748800000, 0.254420],[1368835200000, 0.254610],[1368921600000, 0.254610],[1369008000000, 0.254610],[1369094400000, 0.255040],[1369180800000, 0.256370],[1369267200000, 0.255960],[1369353600000, 0.253980],[1369440000000, 0.255230],[1369526400000, 0.255230],[1369612800000, 0.255230],[1369699200000, 0.255350],[1369785600000, 0.254730],[1369872000000, 0.253580],[1369958400000, 0.253030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });