$(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: [[1427846400000,34.6918],[1427932800000,34.6669],[1428019200000,34.8015],[1428105600000,34.4985],[1428192000000,34.4985],[1428278400000,34.4985],[1428364800000,34.7098],[1428451200000,34.9945],[1428537600000,35.1555],[1428624000000,34.7403],[1428710400000,33.3881],[1428796800000,33.3881],[1428883200000,33.3881],[1428969600000,33.3881],[1429056000000,33.5591],[1429142400000,32.1488],[1429228800000,31.9525],[1429315200000,31.6318],[1429401600000,31.6318],[1429488000000,31.6318],[1429574400000,33.1643],[1429660800000,33.1648],[1429747200000,33.9698],[1429833600000,33.85],[1429920000000,33.9456],[1430006400000,33.9456],[1430092800000,33.9456],[1430179200000,34.6004],[1430265600000,34.0226],[1430352000000,32.3359]], 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: [[1427846400000, 34.691796],[1427846400000, 34.691796],[1427932800000, 34.666892],[1428019200000, 34.801503],[1428105600000, 34.498493],[1428192000000, 34.498493],[1428278400000, 34.498493],[1428364800000, 34.709758],[1428451200000, 34.994502],[1428537600000, 35.155460],[1428624000000, 34.740323],[1428710400000, 33.388058],[1428796800000, 33.388058],[1428883200000, 33.388058],[1428969600000, 33.388058],[1429056000000, 33.559108],[1429142400000, 32.148806],[1429228800000, 31.952506],[1429315200000, 31.631820],[1429401600000, 31.631820],[1429488000000, 31.631820],[1429574400000, 33.164310],[1429660800000, 33.164758],[1429747200000, 33.969811],[1429833600000, 33.850015],[1429920000000, 33.945585],[1430006400000, 33.945585],[1430092800000, 33.945585],[1430179200000, 34.600429],[1430265600000, 34.022561],[1430352000000, 32.335881]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });