$(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: [[1541030400000,31.8249],[1541116800000,32.0803],[1541203200000,32.1192],[1541289600000,32.1192],[1541376000000,32.1192],[1541462400000,31.8534],[1541548800000,31.9479],[1541635200000,32.0452],[1541721600000,31.9035],[1541808000000,31.6459],[1541894400000,31.6459],[1541980800000,31.6459],[1542067200000,31.4336],[1542153600000,31.4386],[1542240000000,31.4474],[1542326400000,31.3988],[1542412800000,31.4908],[1542499200000,31.4908],[1542585600000,31.4908],[1542672000000,31.7269],[1542758400000,31.7091],[1542844800000,31.6884],[1542931200000,31.6386],[1543017600000,31.5538],[1543104000000,31.5538],[1543190400000,31.5538],[1543276800000,31.701],[1543363200000,31.8377],[1543449600000,31.8988],[1543536000000,32.3288]], 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: [[1541030400000, 31.824894],[1541030400000, 31.824894],[1541116800000, 32.080253],[1541203200000, 32.119244],[1541289600000, 32.119244],[1541376000000, 32.119244],[1541462400000, 31.853411],[1541548800000, 31.947934],[1541635200000, 32.045236],[1541721600000, 31.903501],[1541808000000, 31.645856],[1541894400000, 31.645856],[1541980800000, 31.645856],[1542067200000, 31.433560],[1542153600000, 31.438642],[1542240000000, 31.447393],[1542326400000, 31.398796],[1542412800000, 31.490789],[1542499200000, 31.490789],[1542585600000, 31.490789],[1542672000000, 31.726870],[1542758400000, 31.709122],[1542844800000, 31.688381],[1542931200000, 31.638578],[1543017600000, 31.553824],[1543104000000, 31.553824],[1543190400000, 31.553824],[1543276800000, 31.701005],[1543363200000, 31.837722],[1543449600000, 31.898795],[1543536000000, 32.328754]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });