$(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: [[1228089600000,0.981306],[1228176000000,1.01272],[1228262400000,1.02522],[1228348800000,1.0464],[1228435200000,1.02806],[1228521600000,1.0196],[1228608000000,1.0196],[1228694400000,1.0196],[1228780800000,1.04202],[1228867200000,1.04249],[1228953600000,1.05828],[1229040000000,1.07465],[1229126400000,1.08231],[1229212800000,1.08231],[1229299200000,1.08231],[1229385600000,1.10923],[1229472000000,1.11337],[1229558400000,1.16207],[1229644800000,1.16732],[1229731200000,1.1169],[1229817600000,1.1169],[1229904000000,1.1169],[1229990400000,1.11686],[1230076800000,1.11566],[1230163200000,1.10034],[1230249600000,1.10034],[1230336000000,1.08763],[1230422400000,1.08763],[1230508800000,1.08763],[1230595200000,1.10487],[1230681600000,1.1032]], 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: [[1228089600000, 0.981306],[1228089600000, 0.981306],[1228176000000, 1.012724],[1228262400000, 1.025221],[1228348800000, 1.046398],[1228435200000, 1.028063],[1228521600000, 1.019600],[1228608000000, 1.019600],[1228694400000, 1.019600],[1228780800000, 1.042023],[1228867200000, 1.042488],[1228953600000, 1.058283],[1229040000000, 1.074654],[1229126400000, 1.082305],[1229212800000, 1.082305],[1229299200000, 1.082305],[1229385600000, 1.109234],[1229472000000, 1.113372],[1229558400000, 1.162073],[1229644800000, 1.167324],[1229731200000, 1.116901],[1229817600000, 1.116901],[1229904000000, 1.116901],[1229990400000, 1.116863],[1230076800000, 1.115662],[1230163200000, 1.100342],[1230249600000, 1.100342],[1230336000000, 1.087630],[1230422400000, 1.087630],[1230508800000, 1.087630],[1230595200000, 1.104867],[1230681600000, 1.103197]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });