$(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: [[1517443200000,34.6846],[1517529600000,34.7226],[1517616000000,34.8366],[1517702400000,34.8366],[1517788800000,34.8366],[1517875200000,34.5116],[1517961600000,33.8565],[1518048000000,33.4602],[1518134400000,33.2324],[1518220800000,33.209],[1518307200000,33.209],[1518393600000,33.209],[1518480000000,32.9143],[1518566400000,32.9285],[1518652800000,32.9133],[1518739200000,33.431],[1518825600000,33.6414],[1518912000000,33.6414],[1518998400000,33.6414],[1519084800000,33.5218],[1519171200000,33.408],[1519257600000,33.2277],[1519344000000,33.2334],[1519430400000,33.1934],[1519516800000,33.1934],[1519603200000,33.1934],[1519689600000,33.2721],[1519776000000,33.149]], 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: [[1517443200000, 34.684639],[1517443200000, 34.684639],[1517529600000, 34.722563],[1517616000000, 34.836614],[1517702400000, 34.836614],[1517788800000, 34.836614],[1517875200000, 34.511605],[1517961600000, 33.856502],[1518048000000, 33.460206],[1518134400000, 33.232353],[1518220800000, 33.208954],[1518307200000, 33.208954],[1518393600000, 33.208954],[1518480000000, 32.914342],[1518566400000, 32.928469],[1518652800000, 32.913300],[1518739200000, 33.431024],[1518825600000, 33.641444],[1518912000000, 33.641444],[1518998400000, 33.641444],[1519084800000, 33.521795],[1519171200000, 33.408014],[1519257600000, 33.227674],[1519344000000, 33.233394],[1519430400000, 33.193350],[1519516800000, 33.193350],[1519603200000, 33.193350],[1519689600000, 33.272144],[1519776000000, 33.148962]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });