$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1343779200000,0.637253],[1343865600000,0.637324],[1343952000000,0.637228],[1344038400000,0.63708],[1344124800000,0.63708],[1344211200000,0.63708],[1344297600000,0.637019],[1344384000000,0.636948],[1344470400000,0.63704],[1344556800000,0.637121],[1344643200000,0.637716],[1344729600000,0.637716],[1344816000000,0.637716],[1344902400000,0.638944],[1344988800000,0.641405],[1345075200000,0.641508],[1345161600000,0.642018],[1345248000000,0.642292],[1345334400000,0.642292],[1345420800000,0.642292],[1345507200000,0.64192],[1345593600000,0.641632],[1345680000000,0.640937],[1345766400000,0.640547],[1345852800000,0.640547],[1345939200000,0.640547],[1346025600000,0.640547],[1346112000000,0.640424],[1346198400000,0.640542],[1346284800000,0.640696],[1346371200000,0.64087]], 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, 0.637253],[1343779200000, 0.637253],[1343865600000, 0.637324],[1343952000000, 0.637228],[1344038400000, 0.637080],[1344124800000, 0.637080],[1344211200000, 0.637080],[1344297600000, 0.637019],[1344384000000, 0.636948],[1344470400000, 0.637040],[1344556800000, 0.637121],[1344643200000, 0.637716],[1344729600000, 0.637716],[1344816000000, 0.637716],[1344902400000, 0.638944],[1344988800000, 0.641405],[1345075200000, 0.641508],[1345161600000, 0.642018],[1345248000000, 0.642292],[1345334400000, 0.642292],[1345420800000, 0.642292],[1345507200000, 0.641920],[1345593600000, 0.641632],[1345680000000, 0.640937],[1345766400000, 0.640547],[1345852800000, 0.640547],[1345939200000, 0.640547],[1346025600000, 0.640547],[1346112000000, 0.640424],[1346198400000, 0.640542],[1346284800000, 0.640696],[1346371200000, 0.640870]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });