$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1456790400000,0.35698],[1456876800000,0.36575],[1456963200000,0.36415],[1457049600000,0.35508],[1457136000000,0.36205],[1457222400000,0.36205],[1457308800000,0.36205],[1457395200000,0.36205],[1457481600000,0.36205],[1457568000000,0.36175],[1457654400000,0.35896],[1457740800000,0.36761],[1457827200000,0.37009],[1457913600000,0.37009],[1458000000000,0.37799],[1458086400000,0.38113],[1458172800000,0.37796],[1458259200000,0.38944],[1458345600000,0.38365],[1458432000000,0.38365],[1458518400000,0.38365],[1458604800000,0.38659],[1458691200000,0.38513],[1458777600000,0.38461],[1458864000000,0.38084],[1458950400000,0.38095],[1459036800000,0.38095],[1459123200000,0.38095],[1459209600000,0.38772],[1459296000000,0.38454],[1459382400000,0.3878]], 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, 0.356980],[1456790400000, 0.356980],[1456876800000, 0.365750],[1456963200000, 0.364150],[1457049600000, 0.355080],[1457136000000, 0.362050],[1457222400000, 0.362050],[1457308800000, 0.362050],[1457395200000, 0.362050],[1457481600000, 0.362050],[1457568000000, 0.361750],[1457654400000, 0.358960],[1457740800000, 0.367610],[1457827200000, 0.370090],[1457913600000, 0.370090],[1458000000000, 0.377990],[1458086400000, 0.381130],[1458172800000, 0.377960],[1458259200000, 0.389440],[1458345600000, 0.383650],[1458432000000, 0.383650],[1458518400000, 0.383650],[1458604800000, 0.386590],[1458691200000, 0.385130],[1458777600000, 0.384610],[1458864000000, 0.380840],[1458950400000, 0.380950],[1459036800000, 0.380950],[1459123200000, 0.380950],[1459209600000, 0.387720],[1459296000000, 0.384540],[1459382400000, 0.387800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });