$(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: [[1414800000000,16.3153],[1414886400000,16.3153],[1414972800000,16.3153],[1415059200000,16.2195],[1415145600000,16.1834],[1415232000000,16.8902],[1415318400000,17.4167],[1415404800000,18.1129],[1415491200000,18.1129],[1415577600000,18.1129],[1415664000000,18.3469],[1415750400000,19.6921],[1415836800000,19.5673],[1415923200000,19.3987],[1416009600000,19.1977],[1416096000000,19.1977],[1416182400000,19.1977],[1416268800000,null],[1416355200000,19.0691],[1416441600000,19.0214],[1416528000000,18.9856],[1416614400000,18.9292],[1416700800000,18.9292],[1416787200000,18.9292],[1416873600000,18.7085],[1416960000000,18.6248],[1417046400000,18.6025],[1417132800000,18.6712],[1417219200000,18.6816],[1417305600000,18.6816]], 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: [[1414800000000, 16.315272],[1414800000000, 16.315272],[1414886400000, 16.315272],[1414972800000, 16.315272],[1415059200000, 16.219514],[1415145600000, 16.183373],[1415232000000, 16.890161],[1415318400000, 17.416679],[1415404800000, 18.112925],[1415491200000, 18.112925],[1415577600000, 18.112925],[1415664000000, 18.346876],[1415750400000, 19.692124],[1415836800000, 19.567333],[1415923200000, 19.398652],[1416009600000, 19.197707],[1416096000000, 19.197707],[1416182400000, 19.197707],[1416355200000, 19.069121],[1416441600000, 19.021418],[1416528000000, 18.985595],[1416614400000, 18.929175],[1416700800000, 18.929175],[1416787200000, 18.929175],[1416873600000, 18.708518],[1416960000000, 18.624844],[1417046400000, 18.602532],[1417132800000, 18.671189],[1417219200000, 18.681648],[1417305600000, 18.681648]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });