$(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: [[1456790400000,3.10394],[1456876800000,3.13034],[1456963200000,3.08913],[1457049600000,3.03204],[1457136000000,3.09787],[1457222400000,3.09787],[1457308800000,3.09787],[1457395200000,3.09787],[1457481600000,3.09787],[1457568000000,3.05759],[1457654400000,2.98153],[1457740800000,3.03755],[1457827200000,3.05809],[1457913600000,3.05809],[1458000000000,3.13201],[1458086400000,3.15053],[1458172800000,3.12576],[1458259200000,3.18677],[1458345600000,3.14515],[1458432000000,3.14515],[1458518400000,3.14515],[1458604800000,3.17508],[1458691200000,3.09793],[1458777600000,3.06352],[1458864000000,3.08423],[1458950400000,3.06287],[1459036800000,3.06287],[1459123200000,3.06287],[1459209600000,3.08752],[1459296000000,3.12066],[1459382400000,3.14839]], 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: [[1456790400000, 3.103945],[1456790400000, 3.103945],[1456876800000, 3.130335],[1456963200000, 3.089128],[1457049600000, 3.032041],[1457136000000, 3.097874],[1457222400000, 3.097874],[1457308800000, 3.097874],[1457395200000, 3.097874],[1457481600000, 3.097874],[1457568000000, 3.057590],[1457654400000, 2.981532],[1457740800000, 3.037545],[1457827200000, 3.058090],[1457913600000, 3.058090],[1458000000000, 3.132009],[1458086400000, 3.150529],[1458172800000, 3.125759],[1458259200000, 3.186766],[1458345600000, 3.145155],[1458432000000, 3.145155],[1458518400000, 3.145155],[1458604800000, 3.175079],[1458691200000, 3.097926],[1458777600000, 3.063516],[1458864000000, 3.084228],[1458950400000, 3.062866],[1459036800000, 3.062866],[1459123200000, 3.062866],[1459209600000, 3.087516],[1459296000000, 3.120658],[1459382400000, 3.148391]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });