$(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: [[1498867200000,26.0234],[1498953600000,26.0234],[1499040000000,26.0234],[1499126400000,25.9945],[1499212800000,26.0174],[1499299200000,26.1193],[1499385600000,26.0603],[1499472000000,26.023],[1499558400000,26.023],[1499644800000,26.023],[1499731200000,26.0042],[1499817600000,25.972],[1499904000000,25.9107],[1499990400000,25.9686],[1500076800000,26.0177],[1500163200000,26.0177],[1500249600000,26.0177],[1500336000000,25.9648],[1500422400000,25.9302],[1500508800000,25.9441],[1500595200000,25.9283],[1500681600000,25.8897],[1500768000000,25.8897],[1500854400000,25.8897],[1500940800000,25.8226],[1501027200000,25.8437],[1501113600000,25.8849],[1501200000000,25.9004],[1501286400000,25.9156],[1501372800000,25.9156],[1501459200000,25.9156]], 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: [[1498867200000, 26.023367],[1498867200000, 26.023367],[1498953600000, 26.023367],[1499040000000, 26.023367],[1499126400000, 25.994486],[1499212800000, 26.017365],[1499299200000, 26.119317],[1499385600000, 26.060308],[1499472000000, 26.022967],[1499558400000, 26.022967],[1499644800000, 26.022967],[1499731200000, 26.004175],[1499817600000, 25.972011],[1499904000000, 25.910673],[1499990400000, 25.968636],[1500076800000, 26.017657],[1500163200000, 26.017657],[1500249600000, 26.017657],[1500336000000, 25.964818],[1500422400000, 25.930157],[1500508800000, 25.944129],[1500595200000, 25.928333],[1500681600000, 25.889731],[1500768000000, 25.889731],[1500854400000, 25.889731],[1500940800000, 25.822625],[1501027200000, 25.843721],[1501113600000, 25.884860],[1501200000000, 25.900435],[1501286400000, 25.915589],[1501372800000, 25.915589],[1501459200000, 25.915589]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });