$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1496275200000,26.3103],[1496361600000,26.271],[1496448000000,26.2809],[1496534400000,26.2809],[1496620800000,26.2809],[1496707200000,26.2809],[1496793600000,26.2466],[1496880000000,26.2054],[1496966400000,26.1492],[1497052800000,26.1248],[1497139200000,26.1248],[1497225600000,26.1248],[1497312000000,26.0707],[1497398400000,25.9952],[1497484800000,26.015],[1497571200000,26.0071],[1497657600000,26.0219],[1497744000000,26.0219],[1497830400000,26.0219],[1497916800000,26.0231],[1498003200000,26.0349],[1498089600000,26.0236],[1498176000000,26.0257],[1498262400000,26.0311],[1498348800000,26.0311],[1498435200000,26.0311],[1498521600000,26.0366],[1498608000000,26.0801],[1498694400000,26.0801],[1498780800000,26.099]], 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, 26.310335],[1496275200000, 26.310335],[1496361600000, 26.270953],[1496448000000, 26.280938],[1496534400000, 26.280938],[1496620800000, 26.280938],[1496707200000, 26.280938],[1496793600000, 26.246584],[1496880000000, 26.205414],[1496966400000, 26.149214],[1497052800000, 26.124759],[1497139200000, 26.124759],[1497225600000, 26.124759],[1497312000000, 26.070702],[1497398400000, 25.995212],[1497484800000, 26.014971],[1497571200000, 26.007115],[1497657600000, 26.021900],[1497744000000, 26.021900],[1497830400000, 26.021900],[1497916800000, 26.023126],[1498003200000, 26.034880],[1498089600000, 26.023602],[1498176000000, 26.025695],[1498262400000, 26.031112],[1498348800000, 26.031112],[1498435200000, 26.031112],[1498521600000, 26.036606],[1498608000000, 26.080120],[1498694400000, 26.080120],[1498780800000, 26.098994]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });