$(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: [[1422748800000,24.4501],[1422835200000,24.4501],[1422921600000,24.3033],[1423008000000,24.4075],[1423094400000,25.2415],[1423180800000,27.4116],[1423267200000,null],[1423353600000,35.274],[1423440000000,35.274],[1423526400000,38.2274],[1423612800000,37.7716],[1423699200000,38.9123],[1423785600000,38.3953],[1423872000000,39.8055],[1423958400000,39.8055],[1424044800000,39.8055],[1424131200000,40.0586],[1424217600000,40.5202],[1424304000000,41.1512],[1424390400000,42.2023],[1424476800000,42.9902],[1424563200000,42.9902],[1424649600000,42.9902],[1424736000000,43.5869],[1424822400000,43.4758],[1424908800000,43.2605],[1424995200000,46.465],[1425081600000,43.0345]], 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: [[1422748800000, 24.450110],[1422748800000, 24.450110],[1422835200000, 24.450110],[1422921600000, 24.303261],[1423008000000, 24.407492],[1423094400000, 25.241501],[1423180800000, 27.411560],[1423353600000, 35.273980],[1423440000000, 35.273980],[1423526400000, 38.227432],[1423612800000, 37.771623],[1423699200000, 38.912329],[1423785600000, 38.395307],[1423872000000, 39.805454],[1423958400000, 39.805454],[1424044800000, 39.805454],[1424131200000, 40.058618],[1424217600000, 40.520172],[1424304000000, 41.151235],[1424390400000, 42.202263],[1424476800000, 42.990198],[1424563200000, 42.990198],[1424649600000, 42.990198],[1424736000000, 43.586888],[1424822400000, 43.475814],[1424908800000, 43.260546],[1424995200000, 46.464990],[1425081600000, 43.034547]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });