$(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: [[1512086400000,36.571],[1512172800000,36.491],[1512259200000,36.491],[1512345600000,36.491],[1512432000000,36.8093],[1512518400000,36.4942],[1512604800000,36.2652],[1512691200000,36.2934],[1512777600000,36.3688],[1512864000000,36.3688],[1512950400000,36.3688],[1513036800000,36.2712],[1513123200000,36.309],[1513209600000,36.4042],[1513296000000,36.8263],[1513382400000,36.9687],[1513468800000,36.9687],[1513555200000,36.9687],[1513641600000,37.2721],[1513728000000,37.2515],[1513814400000,37.3655],[1513900800000,37.2164],[1513987200000,37.4065],[1514073600000,37.4065],[1514160000000,37.4065],[1514246400000,37.4065],[1514332800000,37.398],[1514419200000,37.5252],[1514505600000,37.7337],[1514592000000,37.7337],[1514678400000,37.7337]], 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, 36.570967],[1512086400000, 36.570967],[1512172800000, 36.491017],[1512259200000, 36.491017],[1512345600000, 36.491017],[1512432000000, 36.809319],[1512518400000, 36.494190],[1512604800000, 36.265222],[1512691200000, 36.293411],[1512777600000, 36.368801],[1512864000000, 36.368801],[1512950400000, 36.368801],[1513036800000, 36.271156],[1513123200000, 36.308969],[1513209600000, 36.404216],[1513296000000, 36.826279],[1513382400000, 36.968664],[1513468800000, 36.968664],[1513555200000, 36.968664],[1513641600000, 37.272076],[1513728000000, 37.251540],[1513814400000, 37.365491],[1513900800000, 37.216355],[1513987200000, 37.406543],[1514073600000, 37.406543],[1514160000000, 37.406543],[1514246400000, 37.406543],[1514332800000, 37.398039],[1514419200000, 37.525200],[1514505600000, 37.733670],[1514592000000, 37.733670],[1514678400000, 37.733670]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });