$(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: [[1512086400000,32.177],[1512172800000,32.1541],[1512259200000,32.1541],[1512345600000,32.1541],[1512432000000,32.291],[1512518400000,32.1817],[1512604800000,32.0349],[1512691200000,31.9629],[1512777600000,31.8318],[1512864000000,31.8318],[1512950400000,31.8318],[1513036800000,32.0093],[1513123200000,31.9766],[1513209600000,32.0011],[1513296000000,32.4672],[1513382400000,32.626],[1513468800000,32.626],[1513555200000,32.626],[1513641600000,32.877],[1513728000000,32.9676],[1513814400000,33.0012],[1513900800000,33.0344],[1513987200000,33.1302],[1514073600000,33.1302],[1514160000000,33.1302],[1514246400000,33.1302],[1514332800000,33.1227],[1514419200000,33.2447],[1514505600000,33.4954],[1514592000000,33.4954],[1514678400000,33.4954]], 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: [[1512086400000, 32.176965],[1512086400000, 32.176965],[1512172800000, 32.154059],[1512259200000, 32.154059],[1512345600000, 32.154059],[1512432000000, 32.290975],[1512518400000, 32.181672],[1512604800000, 32.034884],[1512691200000, 31.962881],[1512777600000, 31.831793],[1512864000000, 31.831793],[1512950400000, 31.831793],[1513036800000, 32.009295],[1513123200000, 31.976583],[1513209600000, 32.001126],[1513296000000, 32.467152],[1513382400000, 32.625955],[1513468800000, 32.625955],[1513555200000, 32.625955],[1513641600000, 32.876952],[1513728000000, 32.967613],[1513814400000, 33.001202],[1513900800000, 33.034353],[1513987200000, 33.130227],[1514073600000, 33.130227],[1514160000000, 33.130227],[1514246400000, 33.130227],[1514332800000, 33.122695],[1514419200000, 33.244700],[1514505600000, 33.495424],[1514592000000, 33.495424],[1514678400000, 33.495424]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });