$(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: [[1091318400000,6.39921],[1091404800000,6.39921],[1091491200000,6.39005],[1091577600000,6.36897],[1091664000000,6.36897],[1091750400000,6.36897],[1091836800000,6.41214],[1091923200000,6.41214],[1092009600000,6.50904],[1092096000000,6.52555],[1092182400000,6.50086],[1092268800000,6.50086],[1092355200000,6.49257],[1092441600000,6.49257],[1092528000000,6.49257],[1092614400000,6.49257],[1092700800000,6.55514],[1092787200000,6.55514],[1092873600000,6.56597],[1092960000000,6.53066],[1093046400000,6.53066],[1093132800000,6.53066],[1093219200000,6.53066],[1093305600000,6.53066],[1093392000000,6.41815],[1093478400000,6.42752],[1093564800000,6.41931],[1093651200000,6.41931],[1093737600000,6.41931],[1093824000000,6.41931],[1093910400000,6.43264]], 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: [[1091318400000, 6.399210],[1091318400000, 6.399210],[1091404800000, 6.399210],[1091491200000, 6.390050],[1091577600000, 6.368970],[1091664000000, 6.368970],[1091750400000, 6.368970],[1091836800000, 6.412140],[1091923200000, 6.412140],[1092009600000, 6.509040],[1092096000000, 6.525550],[1092182400000, 6.500860],[1092268800000, 6.500860],[1092355200000, 6.492570],[1092441600000, 6.492570],[1092528000000, 6.492570],[1092614400000, 6.492570],[1092700800000, 6.555140],[1092787200000, 6.555140],[1092873600000, 6.565970],[1092960000000, 6.530660],[1093046400000, 6.530660],[1093132800000, 6.530660],[1093219200000, 6.530660],[1093305600000, 6.530660],[1093392000000, 6.418150],[1093478400000, 6.427520],[1093564800000, 6.419310],[1093651200000, 6.419310],[1093737600000, 6.419310],[1093824000000, 6.419310],[1093910400000, 6.432640]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });