$(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: [[1264982400000,1.50066],[1265068800000,1.49481],[1265155200000,1.49759],[1265241600000,1.50287],[1265328000000,1.48823],[1265414400000,1.47125],[1265500800000,1.47125],[1265587200000,1.47125],[1265673600000,1.47096],[1265760000000,1.48033],[1265846400000,1.47829],[1265932800000,1.47587],[1266019200000,1.45893],[1266105600000,1.45893],[1266192000000,1.45893],[1266278400000,1.46276],[1266364800000,1.46748],[1266451200000,1.47566],[1266537600000,1.45813],[1266624000000,1.45273],[1266710400000,1.45273],[1266796800000,1.45273],[1266883200000,1.46268],[1266969600000,1.4574],[1267056000000,1.45432],[1267142400000,1.44809],[1267228800000,1.45677],[1267315200000,1.45677]], 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: [[1264982400000, 1.500665],[1264982400000, 1.500665],[1265068800000, 1.494806],[1265155200000, 1.497590],[1265241600000, 1.502871],[1265328000000, 1.488228],[1265414400000, 1.471255],[1265500800000, 1.471255],[1265587200000, 1.471255],[1265673600000, 1.470960],[1265760000000, 1.480335],[1265846400000, 1.478293],[1265932800000, 1.475866],[1266019200000, 1.458928],[1266105600000, 1.458928],[1266192000000, 1.458928],[1266278400000, 1.462757],[1266364800000, 1.467483],[1266451200000, 1.475663],[1266537600000, 1.458135],[1266624000000, 1.452726],[1266710400000, 1.452726],[1266796800000, 1.452726],[1266883200000, 1.462677],[1266969600000, 1.457402],[1267056000000, 1.454318],[1267142400000, 1.448092],[1267228800000, 1.456768],[1267315200000, 1.456768]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });