$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1391212800000,7.993],[1391299200000,7.993],[1391385600000,7.993],[1391472000000,7.993],[1391558400000,7.993],[1391644800000,7.993],[1391731200000,8.708],[1391817600000,8.5282],[1391904000000,8.5282],[1391990400000,8.5282],[1392076800000,8.5532],[1392163200000,8.5507],[1392249600000,8.5507],[1392336000000,8.6309],[1392422400000,8.6405],[1392508800000,8.6405],[1392595200000,8.6405],[1392681600000,8.6458],[1392768000000,8.6869],[1392854400000,8.7852],[1392940800000,8.838],[1393027200000,8.938],[1393113600000,8.938],[1393200000000,8.938],[1393286400000,9.0377],[1393372800000,9.4269],[1393459200000,9.5179],[1393545600000,9.9863]], 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, 7.993000],[1391212800000, 7.993000],[1391299200000, 7.993000],[1391385600000, 7.993000],[1391472000000, 7.993000],[1391558400000, 7.993000],[1391644800000, 7.993000],[1391731200000, 8.708000],[1391817600000, 8.528200],[1391904000000, 8.528200],[1391990400000, 8.528200],[1392076800000, 8.553200],[1392163200000, 8.550700],[1392249600000, 8.550700],[1392336000000, 8.630900],[1392422400000, 8.640500],[1392508800000, 8.640500],[1392595200000, 8.640500],[1392681600000, 8.645800],[1392768000000, 8.686900],[1392854400000, 8.785200],[1392940800000, 8.838000],[1393027200000, 8.938000],[1393113600000, 8.938000],[1393200000000, 8.938000],[1393286400000, 9.037700],[1393372800000, 9.426900],[1393459200000, 9.517900],[1393545600000, 9.986300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });