$(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: [[1367366400000,12.0614],[1367452800000,12.0614],[1367539200000,12.0614],[1367625600000,12.0614],[1367712000000,12.0614],[1367798400000,12.0614],[1367884800000,12.0614],[1367971200000,12.0639],[1368057600000,12.0663],[1368144000000,12.0663],[1368230400000,12.0663],[1368316800000,12.0663],[1368403200000,12.0663],[1368489600000,11.9809],[1368576000000,11.9647],[1368662400000,11.9123],[1368748800000,11.9166],[1368835200000,11.9208],[1368921600000,11.9208],[1369008000000,11.9208],[1369094400000,11.9156],[1369180800000,11.9112],[1369267200000,11.926],[1369353600000,11.9222],[1369440000000,11.9509],[1369526400000,11.9509],[1369612800000,11.9509],[1369699200000,11.9509],[1369785600000,11.9357],[1369872000000,11.9405],[1369958400000,11.9637]], 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, 12.061428],[1367366400000, 12.061428],[1367452800000, 12.061428],[1367539200000, 12.061428],[1367625600000, 12.061428],[1367712000000, 12.061428],[1367798400000, 12.061428],[1367884800000, 12.061428],[1367971200000, 12.063868],[1368057600000, 12.066253],[1368144000000, 12.066253],[1368230400000, 12.066253],[1368316800000, 12.066253],[1368403200000, 12.066253],[1368489600000, 11.980886],[1368576000000, 11.964691],[1368662400000, 11.912338],[1368748800000, 11.916636],[1368835200000, 11.920759],[1368921600000, 11.920759],[1369008000000, 11.920759],[1369094400000, 11.915588],[1369180800000, 11.911184],[1369267200000, 11.926024],[1369353600000, 11.922164],[1369440000000, 11.950881],[1369526400000, 11.950881],[1369612800000, 11.950881],[1369699200000, 11.950881],[1369785600000, 11.935658],[1369872000000, 11.940455],[1369958400000, 11.963706]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });