$(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: [[1391212800000,13.1531],[1391299200000,13.1531],[1391385600000,13.1531],[1391472000000,13.0633],[1391558400000,13.0339],[1391644800000,13.0076],[1391731200000,14.1797],[1391817600000,13.9237],[1391904000000,13.9237],[1391990400000,13.9237],[1392076800000,14.027],[1392163200000,14.0764],[1392249600000,14.1259],[1392336000000,14.3673],[1392422400000,14.4372],[1392508800000,14.4372],[1392595200000,14.4372],[1392681600000,14.464],[1392768000000,14.488],[1392854400000,14.6349],[1392940800000,14.7365],[1393027200000,14.9074],[1393113600000,14.9074],[1393200000000,14.9074],[1393286400000,15.0528],[1393372800000,15.7361],[1393459200000,15.8817],[1393545600000,16.6237]], 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: [[1391212800000, 13.153149],[1391212800000, 13.153149],[1391299200000, 13.153149],[1391385600000, 13.153149],[1391472000000, 13.063266],[1391558400000, 13.033878],[1391644800000, 13.007594],[1391731200000, 14.179724],[1391817600000, 13.923717],[1391904000000, 13.923717],[1391990400000, 13.923717],[1392076800000, 14.027001],[1392163200000, 14.076362],[1392249600000, 14.125931],[1392336000000, 14.367323],[1392422400000, 14.437171],[1392508800000, 14.437171],[1392595200000, 14.437171],[1392681600000, 14.464043],[1392768000000, 14.488015],[1392854400000, 14.634902],[1392940800000, 14.736451],[1393027200000, 14.907361],[1393113600000, 14.907361],[1393200000000, 14.907361],[1393286400000, 15.052787],[1393372800000, 15.736098],[1393459200000, 15.881679],[1393545600000, 16.623748]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });