$(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: [[1130803200000,8.97305],[1130889600000,8.93084],[1130976000000,8.9196],[1131062400000,8.96529],[1131148800000,8.90917],[1131235200000,8.90917],[1131321600000,8.90917],[1131408000000,8.82584],[1131494400000,8.76972],[1131580800000,8.77786],[1131667200000,8.82718],[1131753600000,8.77579],[1131840000000,8.77579],[1131926400000,8.77579],[1132012800000,8.79106],[1132099200000,8.75198],[1132185600000,8.7116],[1132272000000,8.68942],[1132358400000,8.65428],[1132444800000,8.65428],[1132531200000,8.65428],[1132617600000,8.68519],[1132704000000,8.63069],[1132790400000,8.68665],[1132876800000,8.70644],[1132963200000,8.6923],[1133049600000,8.6923],[1133136000000,8.6923],[1133222400000,8.63841],[1133308800000,8.703]], 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: [[1130803200000, 8.973051],[1130803200000, 8.973051],[1130889600000, 8.930839],[1130976000000, 8.919596],[1131062400000, 8.965286],[1131148800000, 8.909174],[1131235200000, 8.909174],[1131321600000, 8.909174],[1131408000000, 8.825837],[1131494400000, 8.769716],[1131580800000, 8.777862],[1131667200000, 8.827181],[1131753600000, 8.775791],[1131840000000, 8.775791],[1131926400000, 8.775791],[1132012800000, 8.791060],[1132099200000, 8.751983],[1132185600000, 8.711604],[1132272000000, 8.689419],[1132358400000, 8.654285],[1132444800000, 8.654285],[1132531200000, 8.654285],[1132617600000, 8.685191],[1132704000000, 8.630695],[1132790400000, 8.686649],[1132876800000, 8.706438],[1132963200000, 8.692296],[1133049600000, 8.692296],[1133136000000, 8.692296],[1133222400000, 8.638410],[1133308800000, 8.703003]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });