$(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: [[1483228800000,28.4226],[1483315200000,28.4226],[1483401600000,28.4226],[1483488000000,28.4226],[1483574400000,27.8588],[1483660800000,27.8588],[1483747200000,28.6125],[1483833600000,28.6125],[1483920000000,28.6125],[1484006400000,28.6125],[1484092800000,28.7283],[1484179200000,28.477],[1484265600000,29.102],[1484352000000,null],[1484438400000,29.4982],[1484524800000,29.4982],[1484611200000,29.3682],[1484697600000,29.5197],[1484784000000,29.3173],[1484870400000,29.2753],[1484956800000,29.162],[1485043200000,29.162],[1485129600000,29.162],[1485216000000,29.2868],[1485302400000,29.2688],[1485388800000,29.2297],[1485475200000,29.118],[1485561600000,29.044],[1485648000000,29.044],[1485734400000,29.044],[1485820800000,28.8275]], 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: [[1483228800000, 28.422604],[1483228800000, 28.422604],[1483315200000, 28.422604],[1483401600000, 28.422604],[1483488000000, 28.422604],[1483574400000, 27.858822],[1483660800000, 27.858822],[1483747200000, 28.612462],[1483833600000, 28.612462],[1483920000000, 28.612462],[1484006400000, 28.612462],[1484092800000, 28.728326],[1484179200000, 28.476993],[1484265600000, 29.102015],[1484438400000, 29.498168],[1484524800000, 29.498168],[1484611200000, 29.368201],[1484697600000, 29.519670],[1484784000000, 29.317325],[1484870400000, 29.275295],[1484956800000, 29.161971],[1485043200000, 29.161971],[1485129600000, 29.161971],[1485216000000, 29.286773],[1485302400000, 29.268848],[1485388800000, 29.229702],[1485475200000, 29.117993],[1485561600000, 29.044034],[1485648000000, 29.044034],[1485734400000, 29.044034],[1485820800000, 28.827535]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });