$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1343779200000,12.5245],[1343865600000,12.4823],[1343952000000,12.485],[1344038400000,12.4293],[1344124800000,12.4293],[1344211200000,12.4293],[1344297600000,12.446],[1344384000000,12.5285],[1344470400000,12.5002],[1344556800000,12.4917],[1344643200000,12.4679],[1344729600000,12.4679],[1344816000000,12.4679],[1344902400000,12.5454],[1344988800000,12.561],[1345075200000,12.538],[1345161600000,12.5514],[1345248000000,12.5593],[1345334400000,12.5593],[1345420800000,12.5593],[1345507200000,12.5488],[1345593600000,12.6006],[1345680000000,12.6289],[1345766400000,12.6821],[1345852800000,12.6821],[1345939200000,12.6821],[1346025600000,12.6821],[1346112000000,12.6385],[1346198400000,12.6206],[1346284800000,12.6638],[1346371200000,12.674]], 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, 12.524525],[1343779200000, 12.524525],[1343865600000, 12.482275],[1343952000000, 12.485017],[1344038400000, 12.429270],[1344124800000, 12.429270],[1344211200000, 12.429270],[1344297600000, 12.445956],[1344384000000, 12.528478],[1344470400000, 12.500209],[1344556800000, 12.491665],[1344643200000, 12.467901],[1344729600000, 12.467901],[1344816000000, 12.467901],[1344902400000, 12.545396],[1344988800000, 12.561010],[1345075200000, 12.537959],[1345161600000, 12.551448],[1345248000000, 12.559338],[1345334400000, 12.559338],[1345420800000, 12.559338],[1345507200000, 12.548842],[1345593600000, 12.600622],[1345680000000, 12.628910],[1345766400000, 12.682105],[1345852800000, 12.682105],[1345939200000, 12.682105],[1346025600000, 12.682105],[1346112000000, 12.638470],[1346198400000, 12.620632],[1346284800000, 12.663827],[1346371200000, 12.674023]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });