$(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: [[1472688000000,34.2354],[1472774400000,35.2958],[1472860800000,35.3789],[1472947200000,35.3789],[1473033600000,35.3789],[1473120000000,35.7276],[1473206400000,35.8654],[1473292800000,35.7637],[1473379200000,35.5843],[1473465600000,35.5463],[1473552000000,35.5463],[1473638400000,35.5463],[1473724800000,35.3899],[1473811200000,35.064],[1473897600000,34.7175],[1473984000000,34.6171],[1474070400000,34.1262],[1474156800000,34.1262],[1474243200000,34.1262],[1474329600000,33.6478],[1474416000000,33.4763],[1474502400000,33.797],[1474588800000,33.9041],[1474675200000,33.72],[1474761600000,33.72],[1474848000000,33.72],[1474934400000,33.4944],[1475020800000,33.5374],[1475107200000,33.7196],[1475193600000,33.7548]], 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: [[1472688000000, 34.235370],[1472688000000, 34.235370],[1472774400000, 35.295800],[1472860800000, 35.378934],[1472947200000, 35.378934],[1473033600000, 35.378934],[1473120000000, 35.727598],[1473206400000, 35.865444],[1473292800000, 35.763746],[1473379200000, 35.584276],[1473465600000, 35.546325],[1473552000000, 35.546325],[1473638400000, 35.546325],[1473724800000, 35.389921],[1473811200000, 35.064008],[1473897600000, 34.717515],[1473984000000, 34.617051],[1474070400000, 34.126209],[1474156800000, 34.126209],[1474243200000, 34.126209],[1474329600000, 33.647846],[1474416000000, 33.476275],[1474502400000, 33.797044],[1474588800000, 33.904076],[1474675200000, 33.720007],[1474761600000, 33.720007],[1474848000000, 33.720007],[1474934400000, 33.494420],[1475020800000, 33.537396],[1475107200000, 33.719587],[1475193600000, 33.754811]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });