$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1512086400000,1.58138],[1512172800000,1.57532],[1512259200000,1.57532],[1512345600000,1.57532],[1512432000000,1.58448],[1512518400000,1.58137],[1512604800000,1.57738],[1512691200000,1.57442],[1512777600000,1.57074],[1512864000000,1.57074],[1512950400000,1.57074],[1513036800000,1.56908],[1513123200000,1.57299],[1513209600000,1.58099],[1513296000000,1.59149],[1513382400000,1.6107],[1513468800000,1.6107],[1513555200000,1.6107],[1513641600000,1.6281],[1513728000000,1.62822],[1513814400000,1.62561],[1513900800000,1.62138],[1513987200000,1.62636],[1514073600000,1.62636],[1514160000000,1.62636],[1514246400000,1.62636],[1514332800000,1.62795],[1514419200000,1.63317],[1514505600000,1.64134],[1514592000000,1.64134],[1514678400000,1.64134]], 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, 1.581384],[1512086400000, 1.581384],[1512172800000, 1.575316],[1512259200000, 1.575316],[1512345600000, 1.575316],[1512432000000, 1.584478],[1512518400000, 1.581367],[1512604800000, 1.577379],[1512691200000, 1.574419],[1512777600000, 1.570737],[1512864000000, 1.570737],[1512950400000, 1.570737],[1513036800000, 1.569083],[1513123200000, 1.572986],[1513209600000, 1.580990],[1513296000000, 1.591486],[1513382400000, 1.610698],[1513468800000, 1.610698],[1513555200000, 1.610698],[1513641600000, 1.628104],[1513728000000, 1.628223],[1513814400000, 1.625612],[1513900800000, 1.621379],[1513987200000, 1.626358],[1514073600000, 1.626358],[1514160000000, 1.626358],[1514246400000, 1.626358],[1514332800000, 1.627949],[1514419200000, 1.633172],[1514505600000, 1.641339],[1514592000000, 1.641339],[1514678400000, 1.641339]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });