$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1391212800000,1.4478],[1391299200000,1.4478],[1391385600000,1.4478],[1391472000000,1.44583],[1391558400000,1.44804],[1391644800000,1.4506],[1391731200000,1.57484],[1391817600000,1.55129],[1391904000000,1.55129],[1391990400000,1.55129],[1392076800000,1.56317],[1392163200000,1.56709],[1392249600000,1.55531],[1392336000000,1.58174],[1392422400000,1.58718],[1392508800000,1.58718],[1392595200000,1.58718],[1392681600000,1.58723],[1392768000000,1.59852],[1392854400000,1.61819],[1392940800000,1.62323],[1393027200000,1.64172],[1393113600000,1.64172],[1393200000000,1.64172],[1393286400000,1.66344],[1393372800000,1.73748],[1393459200000,1.7507],[1393545600000,1.82744]], 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, 1.447800],[1391212800000, 1.447800],[1391299200000, 1.447800],[1391385600000, 1.447800],[1391472000000, 1.445833],[1391558400000, 1.448044],[1391644800000, 1.450595],[1391731200000, 1.574839],[1391817600000, 1.551288],[1391904000000, 1.551288],[1391990400000, 1.551288],[1392076800000, 1.563171],[1392163200000, 1.567090],[1392249600000, 1.555308],[1392336000000, 1.581736],[1392422400000, 1.587179],[1392508800000, 1.587179],[1392595200000, 1.587179],[1392681600000, 1.587226],[1392768000000, 1.598518],[1392854400000, 1.618190],[1392940800000, 1.623231],[1393027200000, 1.641717],[1393113600000, 1.641717],[1393200000000, 1.641717],[1393286400000, 1.663444],[1393372800000, 1.737478],[1393459200000, 1.750703],[1393545600000, 1.827443]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });