$(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: [[1491004800000,33.7673],[1491091200000,33.7673],[1491177600000,33.7673],[1491264000000,33.7919],[1491350400000,33.7344],[1491436800000,33.9121],[1491523200000,33.7717],[1491609600000,33.5075],[1491696000000,33.5075],[1491782400000,33.5075],[1491868800000,33.386],[1491955200000,33.4589],[1492041600000,33.5946],[1492128000000,33.69],[1492214400000,33.6246],[1492300800000,33.6246],[1492387200000,33.6246],[1492473600000,33.6246],[1492560000000,33.9861],[1492646400000,34.435],[1492732800000,34.2589],[1492819200000,34.16],[1492905600000,34.16],[1492992000000,34.16],[1493078400000,34.1101],[1493164800000,34.1521],[1493251200000,34.1134],[1493337600000,34.2225],[1493424000000,34.3673],[1493510400000,34.3673]], 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: [[1491004800000, 33.767311],[1491004800000, 33.767311],[1491091200000, 33.767311],[1491177600000, 33.767311],[1491264000000, 33.791893],[1491350400000, 33.734390],[1491436800000, 33.912120],[1491523200000, 33.771711],[1491609600000, 33.507481],[1491696000000, 33.507481],[1491782400000, 33.507481],[1491868800000, 33.386046],[1491955200000, 33.458856],[1492041600000, 33.594589],[1492128000000, 33.689999],[1492214400000, 33.624598],[1492300800000, 33.624598],[1492387200000, 33.624598],[1492473600000, 33.624598],[1492560000000, 33.986116],[1492646400000, 34.435030],[1492732800000, 34.258950],[1492819200000, 34.159971],[1492905600000, 34.159971],[1492992000000, 34.159971],[1493078400000, 34.110134],[1493164800000, 34.152139],[1493251200000, 34.113356],[1493337600000, 34.222502],[1493424000000, 34.367308],[1493510400000, 34.367308]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });