$(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: [[1343779200000,7.993],[1343865600000,7.993],[1343952000000,7.993],[1344038400000,7.993],[1344124800000,7.993],[1344211200000,7.993],[1344297600000,7.993],[1344384000000,7.993],[1344470400000,7.993],[1344556800000,7.993],[1344643200000,7.993],[1344729600000,7.993],[1344816000000,7.993],[1344902400000,7.993],[1344988800000,7.993],[1345075200000,7.993],[1345161600000,7.993],[1345248000000,7.993],[1345334400000,7.993],[1345420800000,7.993],[1345507200000,7.993],[1345593600000,7.993],[1345680000000,7.993],[1345766400000,7.993],[1345852800000,7.993],[1345939200000,7.993],[1346025600000,7.993],[1346112000000,7.993],[1346198400000,7.993],[1346284800000,7.993],[1346371200000,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: [[1343779200000, 7.993000],[1343779200000, 7.993000],[1343865600000, 7.993000],[1343952000000, 7.993000],[1344038400000, 7.993000],[1344124800000, 7.993000],[1344211200000, 7.993000],[1344297600000, 7.993000],[1344384000000, 7.993000],[1344470400000, 7.993000],[1344556800000, 7.993000],[1344643200000, 7.993000],[1344729600000, 7.993000],[1344816000000, 7.993000],[1344902400000, 7.993000],[1344988800000, 7.993000],[1345075200000, 7.993000],[1345161600000, 7.993000],[1345248000000, 7.993000],[1345334400000, 7.993000],[1345420800000, 7.993000],[1345507200000, 7.993000],[1345593600000, 7.993000],[1345680000000, 7.993000],[1345766400000, 7.993000],[1345852800000, 7.993000],[1345939200000, 7.993000],[1346025600000, 7.993000],[1346112000000, 7.993000],[1346198400000, 7.993000],[1346284800000, 7.993000],[1346371200000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });