$(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: [[1009843200000,5.2985],[1009929600000,5.2985],[1010016000000,5.2985],[1010102400000,5.303],[1010188800000,5.303],[1010275200000,5.303],[1010361600000,5.303],[1010448000000,5.303],[1010534400000,5.3109],[1010620800000,5.3114],[1010707200000,5.3113],[1010793600000,5.3113],[1010880000000,5.3113],[1010966400000,5.3113],[1011052800000,5.3121],[1011139200000,5.313],[1011225600000,5.3135],[1011312000000,5.318],[1011398400000,5.318],[1011484800000,5.318],[1011571200000,5.318],[1011657600000,5.318],[1011744000000,5.321],[1011830400000,5.321],[1011916800000,5.3206],[1012003200000,5.3206],[1012089600000,5.3206],[1012176000000,5.3206],[1012262400000,5.3206],[1012348800000,5.321],[1012435200000,5.321]], 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: [[1009843200000, 5.298500],[1009843200000, 5.298500],[1009929600000, 5.298500],[1010016000000, 5.298500],[1010102400000, 5.303000],[1010188800000, 5.303000],[1010275200000, 5.303000],[1010361600000, 5.303000],[1010448000000, 5.303000],[1010534400000, 5.310900],[1010620800000, 5.311400],[1010707200000, 5.311300],[1010793600000, 5.311300],[1010880000000, 5.311300],[1010966400000, 5.311300],[1011052800000, 5.312100],[1011139200000, 5.313000],[1011225600000, 5.313500],[1011312000000, 5.318000],[1011398400000, 5.318000],[1011484800000, 5.318000],[1011571200000, 5.318000],[1011657600000, 5.318000],[1011744000000, 5.321000],[1011830400000, 5.321000],[1011916800000, 5.320600],[1012003200000, 5.320600],[1012089600000, 5.320600],[1012176000000, 5.320600],[1012262400000, 5.320600],[1012348800000, 5.321000],[1012435200000, 5.321000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });