$(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: [[1475280000000,33.6204],[1475366400000,33.6204],[1475452800000,33.6204],[1475539200000,33.3544],[1475625600000,32.9761],[1475712000000,32.9359],[1475798400000,32.7851],[1475884800000,31.8603],[1475971200000,31.8603],[1476057600000,31.8603],[1476144000000,32.0008],[1476230400000,31.7413],[1476316800000,31.6032],[1476403200000,31.4806],[1476489600000,31.4806],[1476576000000,31.4806],[1476662400000,31.4806],[1476748800000,31.3268],[1476835200000,31.4982],[1476921600000,31.5752],[1477008000000,31.5096],[1477094400000,31.2769],[1477180800000,31.2769],[1477267200000,31.2769],[1477353600000,31.3712],[1477440000000,31.2672],[1477526400000,31.2386],[1477612800000,31.2924],[1477699200000,30.9734],[1477785600000,30.9734],[1477872000000,30.9734]], 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: [[1475280000000, 33.620392],[1475280000000, 33.620392],[1475366400000, 33.620392],[1475452800000, 33.620392],[1475539200000, 33.354419],[1475625600000, 32.976095],[1475712000000, 32.935877],[1475798400000, 32.785081],[1475884800000, 31.860310],[1475971200000, 31.860310],[1476057600000, 31.860310],[1476144000000, 32.000800],[1476230400000, 31.741284],[1476316800000, 31.603239],[1476403200000, 31.480564],[1476489600000, 31.480564],[1476576000000, 31.480564],[1476662400000, 31.480564],[1476748800000, 31.326784],[1476835200000, 31.498230],[1476921600000, 31.575150],[1477008000000, 31.509606],[1477094400000, 31.276899],[1477180800000, 31.276899],[1477267200000, 31.276899],[1477353600000, 31.371170],[1477440000000, 31.267248],[1477526400000, 31.238635],[1477612800000, 31.292398],[1477699200000, 30.973447],[1477785600000, 30.973447],[1477872000000, 30.973447]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });