$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1343779200000,1.25643],[1343865600000,1.25505],[1343952000000,1.2553],[1344038400000,1.2543],[1344124800000,1.2543],[1344211200000,1.2543],[1344297600000,1.254],[1344384000000,1.25546],[1344470400000,1.2565],[1344556800000,1.2569],[1344643200000,1.25672],[1344729600000,1.25672],[1344816000000,1.25672],[1344902400000,1.25623],[1344988800000,1.25698],[1345075200000,1.2563],[1345161600000,1.25551],[1345248000000,1.25706],[1345334400000,1.25706],[1345420800000,1.25706],[1345507200000,1.25665],[1345593600000,1.25719],[1345680000000,1.25839],[1345766400000,1.25788],[1345852800000,1.25788],[1345939200000,1.25788],[1346025600000,1.25788],[1346112000000,1.25715],[1346198400000,1.25812],[1346284800000,1.25818],[1346371200000,1.25883]], 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, 1.256427],[1343779200000, 1.256427],[1343865600000, 1.255049],[1343952000000, 1.255299],[1344038400000, 1.254300],[1344124800000, 1.254300],[1344211200000, 1.254300],[1344297600000, 1.253997],[1344384000000, 1.255459],[1344470400000, 1.256504],[1344556800000, 1.256895],[1344643200000, 1.256718],[1344729600000, 1.256718],[1344816000000, 1.256718],[1344902400000, 1.256233],[1344988800000, 1.256981],[1345075200000, 1.256300],[1345161600000, 1.255514],[1345248000000, 1.257055],[1345334400000, 1.257055],[1345420800000, 1.257055],[1345507200000, 1.256649],[1345593600000, 1.257192],[1345680000000, 1.258387],[1345766400000, 1.257875],[1345852800000, 1.257875],[1345939200000, 1.257875],[1346025600000, 1.257875],[1346112000000, 1.257152],[1346198400000, 1.258121],[1346284800000, 1.258183],[1346371200000, 1.258825]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });