$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1456790400000,27.0948],[1456876800000,27.0852],[1456963200000,26.8108],[1457049600000,26.2136],[1457136000000,26.4971],[1457222400000,26.4971],[1457308800000,26.4971],[1457395200000,26.4971],[1457481600000,26.4971],[1457568000000,26.1828],[1457654400000,25.5192],[1457740800000,25.8451],[1457827200000,26.02],[1457913600000,26.02],[1458000000000,26.5174],[1458086400000,26.8854],[1458172800000,26.8447],[1458259200000,26.7],[1458345600000,26.2429],[1458432000000,26.2429],[1458518400000,26.2429],[1458604800000,26.6007],[1458691200000,26.1025],[1458777600000,26.0151],[1458864000000,26.2522],[1458950400000,26.0703],[1459036800000,26.0703],[1459123200000,26.0703],[1459209600000,26.2801],[1459296000000,26.4392],[1459382400000,26.2181]], 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: [[1456790400000, 27.094802],[1456790400000, 27.094802],[1456876800000, 27.085229],[1456963200000, 26.810762],[1457049600000, 26.213621],[1457136000000, 26.497130],[1457222400000, 26.497130],[1457308800000, 26.497130],[1457395200000, 26.497130],[1457481600000, 26.497130],[1457568000000, 26.182756],[1457654400000, 25.519193],[1457740800000, 25.845149],[1457827200000, 26.019961],[1457913600000, 26.019961],[1458000000000, 26.517435],[1458086400000, 26.885419],[1458172800000, 26.844691],[1458259200000, 26.699975],[1458345600000, 26.242902],[1458432000000, 26.242902],[1458518400000, 26.242902],[1458604800000, 26.600686],[1458691200000, 26.102487],[1458777600000, 26.015065],[1458864000000, 26.252159],[1458950400000, 26.070332],[1459036800000, 26.070332],[1459123200000, 26.070332],[1459209600000, 26.280144],[1459296000000, 26.439172],[1459382400000, 26.218056]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });