$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1512086400000,20.1282],[1512172800000,20.0787],[1512259200000,20.0787],[1512345600000,20.0787],[1512432000000,20.192],[1512518400000,20.1728],[1512604800000,20.1161],[1512691200000,20.0822],[1512777600000,20.0339],[1512864000000,20.0339],[1512950400000,20.0339],[1513036800000,20.0862],[1513123200000,20.1098],[1513209600000,20.1595],[1513296000000,20.3556],[1513382400000,20.5233],[1513468800000,20.5233],[1513555200000,20.5233],[1513641600000,20.6721],[1513728000000,20.7083],[1513814400000,20.7034],[1513900800000,20.7086],[1513987200000,20.7987],[1514073600000,20.7987],[1514160000000,20.7987],[1514246400000,20.7987],[1514332800000,20.794],[1514419200000,20.8601],[1514505600000,20.9766],[1514592000000,20.9766],[1514678400000,20.9766]], 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, 20.128216],[1512086400000, 20.128216],[1512172800000, 20.078718],[1512259200000, 20.078718],[1512345600000, 20.078718],[1512432000000, 20.191955],[1512518400000, 20.172802],[1512604800000, 20.116097],[1512691200000, 20.082232],[1512777600000, 20.033855],[1512864000000, 20.033855],[1512950400000, 20.033855],[1513036800000, 20.086154],[1513123200000, 20.109794],[1513209600000, 20.159460],[1513296000000, 20.355581],[1513382400000, 20.523341],[1513468800000, 20.523341],[1513555200000, 20.523341],[1513641600000, 20.672128],[1513728000000, 20.708299],[1513814400000, 20.703389],[1513900800000, 20.708597],[1513987200000, 20.798686],[1514073600000, 20.798686],[1514160000000, 20.798686],[1514246400000, 20.798686],[1514332800000, 20.793958],[1514419200000, 20.860074],[1514505600000, 20.976593],[1514592000000, 20.976593],[1514678400000, 20.976593]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });