$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1512086400000,0.46356],[1512172800000,0.46232],[1512259200000,0.46232],[1512345600000,0.46232],[1512432000000,0.46135],[1512518400000,0.46283],[1512604800000,0.46004],[1512691200000,0.45736],[1512777600000,0.4573],[1512864000000,0.4573],[1512950400000,0.4573],[1513036800000,0.4581],[1513123200000,0.46191],[1513209600000,0.46103],[1513296000000,0.46689],[1513382400000,0.4692],[1513468800000,0.4692],[1513555200000,0.4692],[1513641600000,0.4749],[1513728000000,0.47575],[1513814400000,0.47449],[1513900800000,0.47569],[1513987200000,0.47931],[1514073600000,0.47931],[1514160000000,0.47931],[1514246400000,0.47931],[1514332800000,0.48402],[1514419200000,0.48645],[1514505600000,0.48703],[1514592000000,0.48703],[1514678400000,0.48703]], 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, 0.463560],[1512086400000, 0.463560],[1512172800000, 0.462320],[1512259200000, 0.462320],[1512345600000, 0.462320],[1512432000000, 0.461350],[1512518400000, 0.462830],[1512604800000, 0.460040],[1512691200000, 0.457360],[1512777600000, 0.457300],[1512864000000, 0.457300],[1512950400000, 0.457300],[1513036800000, 0.458100],[1513123200000, 0.461910],[1513209600000, 0.461030],[1513296000000, 0.466890],[1513382400000, 0.469200],[1513468800000, 0.469200],[1513555200000, 0.469200],[1513641600000, 0.474900],[1513728000000, 0.475750],[1513814400000, 0.474490],[1513900800000, 0.475690],[1513987200000, 0.479310],[1514073600000, 0.479310],[1514160000000, 0.479310],[1514246400000, 0.479310],[1514332800000, 0.484020],[1514419200000, 0.486450],[1514505600000, 0.487030],[1514592000000, 0.487030],[1514678400000, 0.487030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });