$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1512086400000,7.6694],[1512172800000,7.63229],[1512259200000,7.63229],[1512345600000,7.63229],[1512432000000,7.68357],[1512518400000,7.65866],[1512604800000,7.60165],[1512691200000,7.58691],[1512777600000,7.57539],[1512864000000,7.57539],[1512950400000,7.57539],[1513036800000,7.61528],[1513123200000,7.6055],[1513209600000,7.59292],[1513296000000,7.68999],[1513382400000,7.73732],[1513468800000,7.73732],[1513555200000,7.73732],[1513641600000,7.81482],[1513728000000,7.85074],[1513814400000,7.84977],[1513900800000,7.8657],[1513987200000,7.89285],[1514073600000,7.89285],[1514160000000,7.89285],[1514246400000,7.89285],[1514332800000,7.89105],[1514419200000,7.93733],[1514505600000,8.01173],[1514592000000,8.01173],[1514678400000,8.01173]], 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, 7.669399],[1512086400000, 7.669399],[1512172800000, 7.632286],[1512259200000, 7.632286],[1512345600000, 7.632286],[1512432000000, 7.683571],[1512518400000, 7.658656],[1512604800000, 7.601652],[1512691200000, 7.586907],[1512777600000, 7.575391],[1512864000000, 7.575391],[1512950400000, 7.575391],[1513036800000, 7.615277],[1513123200000, 7.605504],[1513209600000, 7.592921],[1513296000000, 7.689993],[1513382400000, 7.737320],[1513468800000, 7.737320],[1513555200000, 7.737320],[1513641600000, 7.814821],[1513728000000, 7.850740],[1513814400000, 7.849766],[1513900800000, 7.865697],[1513987200000, 7.892847],[1514073600000, 7.892847],[1514160000000, 7.892847],[1514246400000, 7.892847],[1514332800000, 7.891053],[1514419200000, 7.937327],[1514505600000, 8.011726],[1514592000000, 8.011726],[1514678400000, 8.011726]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });