$(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: [[1496275200000,3.12782],[1496361600000,3.10589],[1496448000000,3.10577],[1496534400000,3.10577],[1496620800000,3.10577],[1496707200000,3.10577],[1496793600000,3.10519],[1496880000000,3.09342],[1496966400000,3.08327],[1497052800000,3.06634],[1497139200000,3.06634],[1497225600000,3.06634],[1497312000000,3.07985],[1497398400000,3.08428],[1497484800000,3.09588],[1497571200000,3.06589],[1497657600000,3.07125],[1497744000000,3.07125],[1497830400000,3.07125],[1497916800000,3.08336],[1498003200000,3.05957],[1498089600000,3.04846],[1498176000000,3.06448],[1498262400000,3.07406],[1498348800000,3.07406],[1498435200000,3.07406],[1498521600000,3.07287],[1498608000000,3.08962],[1498694400000,3.08962],[1498780800000,3.11252]], 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: [[1496275200000, 3.127816],[1496275200000, 3.127816],[1496361600000, 3.105894],[1496448000000, 3.105768],[1496534400000, 3.105768],[1496620800000, 3.105768],[1496707200000, 3.105768],[1496793600000, 3.105194],[1496880000000, 3.093421],[1496966400000, 3.083275],[1497052800000, 3.066335],[1497139200000, 3.066335],[1497225600000, 3.066335],[1497312000000, 3.079848],[1497398400000, 3.084285],[1497484800000, 3.095876],[1497571200000, 3.065895],[1497657600000, 3.071253],[1497744000000, 3.071253],[1497830400000, 3.071253],[1497916800000, 3.083360],[1498003200000, 3.059571],[1498089600000, 3.048457],[1498176000000, 3.064477],[1498262400000, 3.074056],[1498348800000, 3.074056],[1498435200000, 3.074056],[1498521600000, 3.072873],[1498608000000, 3.089618],[1498694400000, 3.089618],[1498780800000, 3.112516]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });