$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1064966400000,6.2125],[1065052800000,6.22239],[1065139200000,6.23063],[1065225600000,6.23063],[1065312000000,6.23063],[1065398400000,6.17334],[1065484800000,6.27411],[1065571200000,6.27411],[1065657600000,6.28477],[1065744000000,6.28477],[1065830400000,6.28477],[1065916800000,6.28477],[1066003200000,6.28477],[1066089600000,6.23122],[1066176000000,6.20267],[1066262400000,6.22156],[1066348800000,6.17357],[1066435200000,6.17357],[1066521600000,6.17357],[1066608000000,6.17357],[1066694400000,6.20035],[1066780800000,6.19738],[1066867200000,6.23524],[1066953600000,6.28151],[1067040000000,6.28151],[1067126400000,6.28151],[1067212800000,6.28151],[1067299200000,6.26392],[1067385600000,6.22393],[1067472000000,6.22979],[1067558400000,6.25752]], 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, 6.212500],[1064966400000, 6.212500],[1065052800000, 6.222390],[1065139200000, 6.230630],[1065225600000, 6.230630],[1065312000000, 6.230630],[1065398400000, 6.173340],[1065484800000, 6.274110],[1065571200000, 6.274110],[1065657600000, 6.284770],[1065744000000, 6.284770],[1065830400000, 6.284770],[1065916800000, 6.284770],[1066003200000, 6.284770],[1066089600000, 6.231220],[1066176000000, 6.202670],[1066262400000, 6.221560],[1066348800000, 6.173570],[1066435200000, 6.173570],[1066521600000, 6.173570],[1066608000000, 6.173570],[1066694400000, 6.200350],[1066780800000, 6.197380],[1066867200000, 6.235240],[1066953600000, 6.281510],[1067040000000, 6.281510],[1067126400000, 6.281510],[1067212800000, 6.281510],[1067299200000, 6.263920],[1067385600000, 6.223930],[1067472000000, 6.229790],[1067558400000, 6.257520]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });