$(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: [[1064966400000,5.3317],[1065052800000,5.3315],[1065139200000,5.3317],[1065225600000,5.3317],[1065312000000,5.3317],[1065398400000,5.3315],[1065484800000,5.3315],[1065571200000,5.3315],[1065657600000,5.3315],[1065744000000,5.3315],[1065830400000,5.3315],[1065916800000,5.3315],[1066003200000,5.3315],[1066089600000,5.3313],[1066176000000,5.3315],[1066262400000,5.3317],[1066348800000,5.3317],[1066435200000,5.3317],[1066521600000,5.3317],[1066608000000,5.3317],[1066694400000,5.3318],[1066780800000,5.332],[1066867200000,5.332],[1066953600000,5.3319],[1067040000000,5.3319],[1067126400000,5.3319],[1067212800000,5.3319],[1067299200000,5.3319],[1067385600000,5.3319],[1067472000000,5.3319],[1067558400000,5.3319]], 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: [[1064966400000, 5.331700],[1064966400000, 5.331700],[1065052800000, 5.331500],[1065139200000, 5.331700],[1065225600000, 5.331700],[1065312000000, 5.331700],[1065398400000, 5.331500],[1065484800000, 5.331500],[1065571200000, 5.331500],[1065657600000, 5.331500],[1065744000000, 5.331500],[1065830400000, 5.331500],[1065916800000, 5.331500],[1066003200000, 5.331500],[1066089600000, 5.331300],[1066176000000, 5.331500],[1066262400000, 5.331700],[1066348800000, 5.331700],[1066435200000, 5.331700],[1066521600000, 5.331700],[1066608000000, 5.331700],[1066694400000, 5.331800],[1066780800000, 5.332000],[1066867200000, 5.332000],[1066953600000, 5.331900],[1067040000000, 5.331900],[1067126400000, 5.331900],[1067212800000, 5.331900],[1067299200000, 5.331900],[1067385600000, 5.331900],[1067472000000, 5.331900],[1067558400000, 5.331900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });