$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1488326400000,33.7441],[1488412800000,33.4651],[1488499200000,33.291],[1488585600000,33.1787],[1488672000000,33.1787],[1488758400000,33.1787],[1488844800000,33.1645],[1488931200000,32.8824],[1489017600000,32.8824],[1489104000000,32.7644],[1489190400000,32.5901],[1489276800000,32.5901],[1489363200000,32.5901],[1489449600000,32.8654],[1489536000000,32.6644],[1489622400000,32.7917],[1489708800000,33.3345],[1489795200000,33.2602],[1489881600000,33.2602],[1489968000000,33.2602],[1490054400000,33.3089],[1490140800000,33.4334],[1490227200000,33.5204],[1490313600000,33.828],[1490400000000,33.8431],[1490486400000,33.8431],[1490572800000,33.8431],[1490659200000,34.2205],[1490745600000,34.0643],[1490832000000,33.6432],[1490918400000,33.609]], 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: [[1488326400000, 33.744080],[1488326400000, 33.744080],[1488412800000, 33.465070],[1488499200000, 33.291035],[1488585600000, 33.178723],[1488672000000, 33.178723],[1488758400000, 33.178723],[1488844800000, 33.164522],[1488931200000, 32.882404],[1489017600000, 32.882404],[1489104000000, 32.764356],[1489190400000, 32.590082],[1489276800000, 32.590082],[1489363200000, 32.590082],[1489449600000, 32.865385],[1489536000000, 32.664433],[1489622400000, 32.791740],[1489708800000, 33.334497],[1489795200000, 33.260207],[1489881600000, 33.260207],[1489968000000, 33.260207],[1490054400000, 33.308945],[1490140800000, 33.433443],[1490227200000, 33.520383],[1490313600000, 33.827992],[1490400000000, 33.843055],[1490486400000, 33.843055],[1490572800000, 33.843055],[1490659200000, 34.220452],[1490745600000, 34.064346],[1490832000000, 33.643233],[1490918400000, 33.608950]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });