$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1343779200000,7.97482],[1343865600000,7.97873],[1343952000000,7.97556],[1344038400000,7.96892],[1344124800000,7.96892],[1344211200000,7.96892],[1344297600000,7.98913],[1344384000000,8.01039],[1344470400000,8.01053],[1344556800000,8.0394],[1344643200000,8.03889],[1344729600000,8.03889],[1344816000000,8.03889],[1344902400000,8.06094],[1344988800000,8.0589],[1345075200000,8.05931],[1345161600000,8.08518],[1345248000000,8.08607],[1345334400000,8.08607],[1345420800000,8.08607],[1345507200000,8.08037],[1345593600000,8.10914],[1345680000000,8.05317],[1345766400000,8.06626],[1345852800000,8.06626],[1345939200000,8.06626],[1346025600000,8.06626],[1346112000000,8.07484],[1346198400000,8.09558],[1346284800000,8.08516],[1346371200000,8.06371]], 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.974822],[1343779200000, 7.974822],[1343865600000, 7.978727],[1343952000000, 7.975558],[1344038400000, 7.968921],[1344124800000, 7.968921],[1344211200000, 7.968921],[1344297600000, 7.989128],[1344384000000, 8.010391],[1344470400000, 8.010533],[1344556800000, 8.039403],[1344643200000, 8.038892],[1344729600000, 8.038892],[1344816000000, 8.038892],[1344902400000, 8.060942],[1344988800000, 8.058896],[1345075200000, 8.059307],[1345161600000, 8.085184],[1345248000000, 8.086071],[1345334400000, 8.086071],[1345420800000, 8.086071],[1345507200000, 8.080373],[1345593600000, 8.109143],[1345680000000, 8.053166],[1345766400000, 8.066260],[1345852800000, 8.066260],[1345939200000, 8.066260],[1346025600000, 8.066260],[1346112000000, 8.074844],[1346198400000, 8.095582],[1346284800000, 8.085162],[1346371200000, 8.063712]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });