$(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: [[1530403200000,34.6841],[1530489600000,34.6841],[1530576000000,34.4413],[1530662400000,34.7234],[1530748800000,34.9334],[1530835200000,35.0432],[1530921600000,34.8246],[1531008000000,34.8246],[1531094400000,34.8246],[1531180800000,35.0284],[1531267200000,34.7515],[1531353600000,34.7841],[1531440000000,34.6427],[1531526400000,34.5169],[1531612800000,34.5169],[1531699200000,34.5169],[1531785600000,34.796],[1531872000000,34.5986],[1531958400000,34.2701],[1532044800000,34.3527],[1532131200000,34.5046],[1532217600000,34.5046],[1532304000000,34.5046],[1532390400000,34.7521],[1532476800000,34.8946],[1532563200000,35.031],[1532649600000,35.1393],[1532736000000,35.025],[1532822400000,35.025],[1532908800000,35.025],[1532995200000,35.0969]], 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: [[1530403200000, 34.684106],[1530403200000, 34.684106],[1530489600000, 34.684106],[1530576000000, 34.441320],[1530662400000, 34.723357],[1530748800000, 34.933377],[1530835200000, 35.043177],[1530921600000, 34.824561],[1531008000000, 34.824561],[1531094400000, 34.824561],[1531180800000, 35.028394],[1531267200000, 34.751526],[1531353600000, 34.784119],[1531440000000, 34.642664],[1531526400000, 34.516933],[1531612800000, 34.516933],[1531699200000, 34.516933],[1531785600000, 34.795983],[1531872000000, 34.598573],[1531958400000, 34.270075],[1532044800000, 34.352679],[1532131200000, 34.504560],[1532217600000, 34.504560],[1532304000000, 34.504560],[1532390400000, 34.752101],[1532476800000, 34.894574],[1532563200000, 35.031029],[1532649600000, 35.139314],[1532736000000, 35.024994],[1532822400000, 35.024994],[1532908800000, 35.024994],[1532995200000, 35.096881]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });