$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1512086400000,3.27008],[1512172800000,3.25601],[1512259200000,3.25601],[1512345600000,3.25601],[1512432000000,3.27269],[1512518400000,3.27622],[1512604800000,3.2831],[1512691200000,3.27814],[1512777600000,3.25928],[1512864000000,3.25928],[1512950400000,3.25928],[1513036800000,3.23899],[1513123200000,3.25478],[1513209600000,3.25701],[1513296000000,3.32033],[1513382400000,3.33503],[1513468800000,3.33503],[1513555200000,3.33503],[1513641600000,3.33529],[1513728000000,3.33427],[1513814400000,3.34416],[1513900800000,3.31211],[1513987200000,3.34774],[1514073600000,3.34774],[1514160000000,3.34774],[1514246400000,3.34774],[1514332800000,3.34698],[1514419200000,3.3715],[1514505600000,3.39469],[1514592000000,3.39469],[1514678400000,3.39469]], 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, 3.270083],[1512086400000, 3.270083],[1512172800000, 3.256008],[1512259200000, 3.256008],[1512345600000, 3.256008],[1512432000000, 3.272690],[1512518400000, 3.276222],[1512604800000, 3.283104],[1512691200000, 3.278143],[1512777600000, 3.259284],[1512864000000, 3.259284],[1512950400000, 3.259284],[1513036800000, 3.238988],[1513123200000, 3.254780],[1513209600000, 3.257013],[1513296000000, 3.320327],[1513382400000, 3.335032],[1513468800000, 3.335032],[1513555200000, 3.335032],[1513641600000, 3.335290],[1513728000000, 3.334272],[1513814400000, 3.344163],[1513900800000, 3.312113],[1513987200000, 3.347739],[1514073600000, 3.347739],[1514160000000, 3.347739],[1514246400000, 3.347739],[1514332800000, 3.346978],[1514419200000, 3.371502],[1514505600000, 3.394692],[1514592000000, 3.394692],[1514678400000, 3.394692]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });