$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1335830400000,1.39297],[1335916800000,1.39297],[1336003200000,1.39297],[1336089600000,1.39051],[1336176000000,1.38769],[1336262400000,1.38769],[1336348800000,1.38769],[1336435200000,1.37657],[1336521600000,1.3763],[1336608000000,1.3763],[1336694400000,1.37027],[1336780800000,1.36414],[1336867200000,1.36414],[1336953600000,1.36414],[1337040000000,1.35382],[1337126400000,1.34693],[1337212800000,1.33548],[1337299200000,1.33693],[1337385600000,1.33807],[1337472000000,1.33807],[1337558400000,1.33807],[1337644800000,1.33602],[1337731200000,1.34779],[1337817600000,1.33602],[1337904000000,1.33177],[1337990400000,1.32795],[1338076800000,1.32795],[1338163200000,1.32795],[1338249600000,1.33274],[1338336000000,1.3309],[1338422400000,1.32292]], 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: [[1335830400000, 1.392968],[1335830400000, 1.392968],[1335916800000, 1.392968],[1336003200000, 1.392968],[1336089600000, 1.390511],[1336176000000, 1.387692],[1336262400000, 1.387692],[1336348800000, 1.387692],[1336435200000, 1.376568],[1336521600000, 1.376303],[1336608000000, 1.376303],[1336694400000, 1.370273],[1336780800000, 1.364144],[1336867200000, 1.364144],[1336953600000, 1.364144],[1337040000000, 1.353822],[1337126400000, 1.346926],[1337212800000, 1.335476],[1337299200000, 1.336929],[1337385600000, 1.338070],[1337472000000, 1.338070],[1337558400000, 1.338070],[1337644800000, 1.336021],[1337731200000, 1.347794],[1337817600000, 1.336023],[1337904000000, 1.331765],[1337990400000, 1.327955],[1338076800000, 1.327955],[1338163200000, 1.327955],[1338249600000, 1.332737],[1338336000000, 1.330897],[1338422400000, 1.322919]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });