$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1530403200000,19.3141],[1530489600000,19.3141],[1530576000000,19.1725],[1530662400000,19.2689],[1530748800000,19.3689],[1530835200000,19.384],[1530921600000,19.3459],[1531008000000,19.3459],[1531094400000,19.3459],[1531180800000,19.403],[1531267200000,19.3159],[1531353600000,19.2746],[1531440000000,19.2439],[1531526400000,19.1867],[1531612800000,19.1867],[1531699200000,19.1867],[1531785600000,19.2519],[1531872000000,19.257],[1531958400000,19.2286],[1532044800000,19.2823],[1532131200000,19.3375],[1532217600000,19.3375],[1532304000000,19.3375],[1532390400000,19.3932],[1532476800000,19.4891],[1532563200000,19.5385],[1532649600000,19.5853],[1532736000000,19.6155],[1532822400000,19.6155],[1532908800000,19.6155],[1532995200000,19.6436]], 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, 19.314145],[1530403200000, 19.314145],[1530489600000, 19.314145],[1530576000000, 19.172515],[1530662400000, 19.268944],[1530748800000, 19.368888],[1530835200000, 19.384046],[1530921600000, 19.345886],[1531008000000, 19.345886],[1531094400000, 19.345886],[1531180800000, 19.402994],[1531267200000, 19.315927],[1531353600000, 19.274602],[1531440000000, 19.243914],[1531526400000, 19.186723],[1531612800000, 19.186723],[1531699200000, 19.186723],[1531785600000, 19.251858],[1531872000000, 19.257000],[1531958400000, 19.228613],[1532044800000, 19.282328],[1532131200000, 19.337471],[1532217600000, 19.337471],[1532304000000, 19.337471],[1532390400000, 19.393234],[1532476800000, 19.489123],[1532563200000, 19.538523],[1532649600000, 19.585269],[1532736000000, 19.615543],[1532822400000, 19.615543],[1532908800000, 19.615543],[1532995200000, 19.643579]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });