$(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: [[1141171200000,8.82412],[1141257600000,8.86978],[1141344000000,8.81292],[1141430400000,8.86146],[1141516800000,8.86146],[1141603200000,8.86146],[1141689600000,8.85279],[1141776000000,8.77233],[1141862400000,8.77233],[1141948800000,8.77749],[1142035200000,8.77163],[1142121600000,8.77163],[1142208000000,8.77163],[1142294400000,8.72363],[1142380800000,8.76297],[1142467200000,8.81185],[1142553600000,8.82224],[1142640000000,8.86022],[1142726400000,8.86022],[1142812800000,8.86022],[1142899200000,8.86243],[1142985600000,8.83423],[1143072000000,8.81522],[1143158400000,8.80054],[1143244800000,8.74978],[1143331200000,8.74978],[1143417600000,8.74978],[1143504000000,8.82264],[1143590400000,8.83512],[1143676800000,8.76788],[1143763200000,8.79424]], 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: [[1141171200000, 8.824124],[1141171200000, 8.824124],[1141257600000, 8.869777],[1141344000000, 8.812919],[1141430400000, 8.861460],[1141516800000, 8.861460],[1141603200000, 8.861460],[1141689600000, 8.852786],[1141776000000, 8.772332],[1141862400000, 8.772332],[1141948800000, 8.777486],[1142035200000, 8.771634],[1142121600000, 8.771634],[1142208000000, 8.771634],[1142294400000, 8.723625],[1142380800000, 8.762966],[1142467200000, 8.811854],[1142553600000, 8.822241],[1142640000000, 8.860223],[1142726400000, 8.860223],[1142812800000, 8.860223],[1142899200000, 8.862433],[1142985600000, 8.834226],[1143072000000, 8.815223],[1143158400000, 8.800542],[1143244800000, 8.749776],[1143331200000, 8.749776],[1143417600000, 8.749776],[1143504000000, 8.822643],[1143590400000, 8.835124],[1143676800000, 8.767883],[1143763200000, 8.794241]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });