$(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: [[1517443200000,39.4547],[1517529600000,39.6739],[1517616000000,39.6547],[1517702400000,39.6547],[1517788800000,39.6547],[1517875200000,38.9662],[1517961600000,38.0902],[1518048000000,37.7335],[1518134400000,37.9742],[1518220800000,37.4228],[1518307200000,37.4228],[1518393600000,37.4228],[1518480000000,37.1494],[1518566400000,37.0253],[1518652800000,36.9646],[1518739200000,37.707],[1518825600000,37.8832],[1518912000000,37.8832],[1518998400000,37.8832],[1519084800000,37.8393],[1519171200000,37.8913],[1519257600000,37.5611],[1519344000000,37.6186],[1519430400000,37.7455],[1519516800000,37.7455],[1519603200000,37.7455],[1519689600000,37.8867],[1519776000000,37.4988]], 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: [[1517443200000, 39.454714],[1517443200000, 39.454714],[1517529600000, 39.673860],[1517616000000, 39.654655],[1517702400000, 39.654655],[1517788800000, 39.654655],[1517875200000, 38.966224],[1517961600000, 38.090231],[1518048000000, 37.733528],[1518134400000, 37.974190],[1518220800000, 37.422756],[1518307200000, 37.422756],[1518393600000, 37.422756],[1518480000000, 37.149370],[1518566400000, 37.025320],[1518652800000, 36.964623],[1518739200000, 37.706998],[1518825600000, 37.883229],[1518912000000, 37.883229],[1518998400000, 37.883229],[1519084800000, 37.839254],[1519171200000, 37.891314],[1519257600000, 37.561097],[1519344000000, 37.618594],[1519430400000, 37.745452],[1519516800000, 37.745452],[1519603200000, 37.745452],[1519689600000, 37.886750],[1519776000000, 37.498826]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });