$(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: [[1548979200000,36.3891],[1549065600000,35.9848],[1549152000000,35.9848],[1549238400000,35.9848],[1549324800000,35.7974],[1549411200000,35.4073],[1549497600000,34.964],[1549584000000,34.8551],[1549670400000,34.8848],[1549756800000,34.8848],[1549843200000,34.8848],[1549929600000,34.925],[1550016000000,34.7844],[1550102400000,34.9827],[1550188800000,34.7988],[1550275200000,34.8895],[1550361600000,34.8895],[1550448000000,34.8895],[1550534400000,35.1475],[1550620800000,35.2004],[1550707200000,35.3358],[1550793600000,35.3191],[1550880000000,35.0631],[1550966400000,35.0631],[1551052800000,35.0631],[1551139200000,35.2972],[1551225600000,35.6225],[1551312000000,35.9449]], 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: [[1548979200000, 36.389064],[1548979200000, 36.389064],[1549065600000, 35.984838],[1549152000000, 35.984838],[1549238400000, 35.984838],[1549324800000, 35.797367],[1549411200000, 35.407298],[1549497600000, 34.964017],[1549584000000, 34.855137],[1549670400000, 34.884823],[1549756800000, 34.884823],[1549843200000, 34.884823],[1549929600000, 34.925037],[1550016000000, 34.784408],[1550102400000, 34.982696],[1550188800000, 34.798845],[1550275200000, 34.889500],[1550361600000, 34.889500],[1550448000000, 34.889500],[1550534400000, 35.147459],[1550620800000, 35.200401],[1550707200000, 35.335803],[1550793600000, 35.319148],[1550880000000, 35.063092],[1550966400000, 35.063092],[1551052800000, 35.063092],[1551139200000, 35.297243],[1551225600000, 35.622525],[1551312000000, 35.944892]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });