$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1367366400000,7.993],[1367452800000,7.993],[1367539200000,7.993],[1367625600000,7.993],[1367712000000,7.993],[1367798400000,7.993],[1367884800000,7.993],[1367971200000,7.993],[1368057600000,7.993],[1368144000000,7.993],[1368230400000,7.993],[1368316800000,7.993],[1368403200000,7.993],[1368489600000,7.993],[1368576000000,7.993],[1368662400000,7.993],[1368748800000,7.993],[1368835200000,7.993],[1368921600000,7.993],[1369008000000,7.993],[1369094400000,7.993],[1369180800000,7.993],[1369267200000,7.993],[1369353600000,7.993],[1369440000000,7.993],[1369526400000,7.993],[1369612800000,7.993],[1369699200000,7.993],[1369785600000,7.993],[1369872000000,7.993],[1369958400000,7.993]], 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, 7.993000],[1367366400000, 7.993000],[1367452800000, 7.993000],[1367539200000, 7.993000],[1367625600000, 7.993000],[1367712000000, 7.993000],[1367798400000, 7.993000],[1367884800000, 7.993000],[1367971200000, 7.993000],[1368057600000, 7.993000],[1368144000000, 7.993000],[1368230400000, 7.993000],[1368316800000, 7.993000],[1368403200000, 7.993000],[1368489600000, 7.993000],[1368576000000, 7.993000],[1368662400000, 7.993000],[1368748800000, 7.993000],[1368835200000, 7.993000],[1368921600000, 7.993000],[1369008000000, 7.993000],[1369094400000, 7.993000],[1369180800000, 7.993000],[1369267200000, 7.993000],[1369353600000, 7.993000],[1369440000000, 7.993000],[1369526400000, 7.993000],[1369612800000, 7.993000],[1369699200000, 7.993000],[1369785600000, 7.993000],[1369872000000, 7.993000],[1369958400000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });