$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1548979200000,38.8567],[1549065600000,38.5564],[1549152000000,38.5564],[1549238400000,38.5564],[1549324800000,38.2865],[1549411200000,37.9563],[1549497600000,37.5539],[1549584000000,37.4623],[1549670400000,37.4126],[1549756800000,37.4126],[1549843200000,37.4126],[1549929600000,37.5772],[1550016000000,37.4592],[1550102400000,37.649],[1550188800000,37.6298],[1550275200000,37.7811],[1550361600000,37.7811],[1550448000000,37.7811],[1550534400000,37.6951],[1550620800000,37.7007],[1550707200000,37.6927],[1550793600000,37.6037],[1550880000000,37.5966],[1550966400000,37.5966],[1551052800000,37.5966],[1551139200000,37.6298],[1551225600000,37.6378],[1551312000000,37.7281]], 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, 38.856695],[1548979200000, 38.856695],[1549065600000, 38.556381],[1549152000000, 38.556381],[1549238400000, 38.556381],[1549324800000, 38.286541],[1549411200000, 37.956314],[1549497600000, 37.553917],[1549584000000, 37.462273],[1549670400000, 37.412596],[1549756800000, 37.412596],[1549843200000, 37.412596],[1549929600000, 37.577186],[1550016000000, 37.459214],[1550102400000, 37.649008],[1550188800000, 37.629766],[1550275200000, 37.781066],[1550361600000, 37.781066],[1550448000000, 37.781066],[1550534400000, 37.695127],[1550620800000, 37.700726],[1550707200000, 37.692708],[1550793600000, 37.603668],[1550880000000, 37.596627],[1550966400000, 37.596627],[1551052800000, 37.596627],[1551139200000, 37.629806],[1551225600000, 37.637819],[1551312000000, 37.728109]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });