$(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: [[1470009600000,27.5675],[1470096000000,27.6683],[1470182400000,27.7846],[1470268800000,27.7939],[1470355200000,27.6274],[1470441600000,27.6732],[1470528000000,27.6732],[1470614400000,27.6732],[1470700800000,27.5175],[1470787200000,27.4937],[1470873600000,27.7549],[1470960000000,27.7157],[1471046400000,27.9443],[1471132800000,27.9443],[1471219200000,27.9443],[1471305600000,28.0787],[1471392000000,28.3045],[1471478400000,28.29],[1471564800000,28.496],[1471651200000,28.6122],[1471737600000,28.6122],[1471824000000,28.6122],[1471910400000,28.5942],[1471996800000,28.6939],[1472083200000,28.6939],[1472169600000,28.5967],[1472256000000,28.7244],[1472342400000,28.7244],[1472428800000,28.7244],[1472515200000,28.4709],[1472601600000,28.6484]], 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: [[1470009600000, 27.567512],[1470009600000, 27.567512],[1470096000000, 27.668327],[1470182400000, 27.784581],[1470268800000, 27.793929],[1470355200000, 27.627387],[1470441600000, 27.673180],[1470528000000, 27.673180],[1470614400000, 27.673180],[1470700800000, 27.517534],[1470787200000, 27.493672],[1470873600000, 27.754874],[1470960000000, 27.715661],[1471046400000, 27.944315],[1471132800000, 27.944315],[1471219200000, 27.944315],[1471305600000, 28.078728],[1471392000000, 28.304466],[1471478400000, 28.289974],[1471564800000, 28.495987],[1471651200000, 28.612240],[1471737600000, 28.612240],[1471824000000, 28.612240],[1471910400000, 28.594187],[1471996800000, 28.693940],[1472083200000, 28.693940],[1472169600000, 28.596684],[1472256000000, 28.724421],[1472342400000, 28.724421],[1472428800000, 28.724421],[1472515200000, 28.470862],[1472601600000, 28.648423]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });