$(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: [[1480550400000,25.5586],[1480636800000,25.6382],[1480723200000,25.8987],[1480809600000,25.8987],[1480896000000,25.8987],[1480982400000,26.1275],[1481068800000,26.0974],[1481155200000,26.0201],[1481241600000,25.7725],[1481328000000,25.8794],[1481414400000,25.8794],[1481500800000,25.8794],[1481587200000,26.1711],[1481673600000,26.1088],[1481760000000,26.3074],[1481846400000,26.2985],[1481932800000,26.3318],[1482019200000,26.3318],[1482105600000,26.3318],[1482192000000,26.396],[1482278400000,26.4705],[1482364800000,26.4294],[1482451200000,26.286],[1482537600000,26.2668],[1482624000000,26.2668],[1482710400000,26.2668],[1482796800000,26.3656],[1482883200000,26.3656],[1482969600000,26.8932],[1483056000000,27.1909],[1483142400000,27.1909]], 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: [[1480550400000, 25.558575],[1480550400000, 25.558575],[1480636800000, 25.638209],[1480723200000, 25.898742],[1480809600000, 25.898742],[1480896000000, 25.898742],[1480982400000, 26.127478],[1481068800000, 26.097384],[1481155200000, 26.020104],[1481241600000, 25.772490],[1481328000000, 25.879355],[1481414400000, 25.879355],[1481500800000, 25.879355],[1481587200000, 26.171129],[1481673600000, 26.108820],[1481760000000, 26.307416],[1481846400000, 26.298510],[1481932800000, 26.331835],[1482019200000, 26.331835],[1482105600000, 26.331835],[1482192000000, 26.396034],[1482278400000, 26.470481],[1482364800000, 26.429366],[1482451200000, 26.286013],[1482537600000, 26.266766],[1482624000000, 26.266766],[1482710400000, 26.266766],[1482796800000, 26.365578],[1482883200000, 26.365578],[1482969600000, 26.893158],[1483056000000, 27.190858],[1483142400000, 27.190858]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });