$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1548979200000,27.741],[1549065600000,27.5707],[1549152000000,27.5707],[1549238400000,27.5707],[1549324800000,27.4237],[1549411200000,27.2159],[1549497600000,26.9641],[1549584000000,26.9594],[1549670400000,26.9],[1549756800000,26.9],[1549843200000,26.9],[1549929600000,27.0577],[1550016000000,27.0075],[1550102400000,27.0928],[1550188800000,27.16],[1550275200000,27.2479],[1550361600000,27.2479],[1550448000000,27.2479],[1550534400000,27.1859],[1550620800000,27.1733],[1550707200000,27.0876],[1550793600000,27.0026],[1550880000000,27.0173],[1550966400000,27.0173],[1551052800000,27.0173],[1551139200000,26.9907],[1551225600000,26.9826],[1551312000000,26.9928]], 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, 27.740960],[1548979200000, 27.740960],[1549065600000, 27.570704],[1549152000000, 27.570704],[1549238400000, 27.570704],[1549324800000, 27.423692],[1549411200000, 27.215854],[1549497600000, 26.964088],[1549584000000, 26.959350],[1549670400000, 26.899993],[1549756800000, 26.899993],[1549843200000, 26.899993],[1549929600000, 27.057716],[1550016000000, 27.007494],[1550102400000, 27.092791],[1550188800000, 27.159961],[1550275200000, 27.247894],[1550361600000, 27.247894],[1550448000000, 27.247894],[1550534400000, 27.185914],[1550620800000, 27.173251],[1550707200000, 27.087563],[1550793600000, 27.002630],[1550880000000, 27.017312],[1550966400000, 27.017312],[1551052800000, 27.017312],[1551139200000, 26.990656],[1551225600000, 26.982628],[1551312000000, 26.992764]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });