$(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: [[1477958400000,27.9292],[1478044800000,null],[1478131200000,28.3574],[1478217600000,28.3181],[1478304000000,28.3717],[1478390400000,28.3717],[1478476800000,28.3717],[1478563200000,28.2863],[1478649600000,28.2167],[1478736000000,28.1745],[1478822400000,27.8695],[1478908800000,27.9474],[1478995200000,27.9474],[1479081600000,27.9474],[1479168000000,27.7521],[1479254400000,28.0017],[1479340800000,28.1951],[1479427200000,27.9215],[1479513600000,27.5241],[1479600000000,27.5241],[1479686400000,27.5241],[1479772800000,27.4108],[1479859200000,27.2421],[1479945600000,27.128],[1480032000000,26.9903],[1480118400000,27.2473],[1480204800000,27.2473],[1480291200000,27.2473],[1480377600000,27.1683],[1480464000000,27.0739]], 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: [[1477958400000, 27.929198],[1477958400000, 27.929198],[1478131200000, 28.357351],[1478217600000, 28.318115],[1478304000000, 28.371669],[1478390400000, 28.371669],[1478476800000, 28.371669],[1478563200000, 28.286257],[1478649600000, 28.216730],[1478736000000, 28.174460],[1478822400000, 27.869466],[1478908800000, 27.947387],[1478995200000, 27.947387],[1479081600000, 27.947387],[1479168000000, 27.752105],[1479254400000, 28.001662],[1479340800000, 28.195147],[1479427200000, 27.921470],[1479513600000, 27.524079],[1479600000000, 27.524079],[1479686400000, 27.524079],[1479772800000, 27.410778],[1479859200000, 27.242094],[1479945600000, 27.127994],[1480032000000, 26.990270],[1480118400000, 27.247312],[1480204800000, 27.247312],[1480291200000, 27.247312],[1480377600000, 27.168301],[1480464000000, 27.073898]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });