$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1548979200000,27.933],[1549065600000,27.7522],[1549152000000,27.7522],[1549238400000,27.7522],[1549324800000,27.4813],[1549411200000,27.1849],[1549497600000,26.9641],[1549584000000,26.9309],[1549670400000,26.8739],[1549756800000,26.8739],[1549843200000,26.8739],[1549929600000,26.9576],[1550016000000,26.8058],[1550102400000,26.9355],[1550188800000,26.9163],[1550275200000,27.0557],[1550361600000,27.0557],[1550448000000,27.0557],[1550534400000,27.1069],[1550620800000,27.0368],[1550707200000,27.0876],[1550793600000,26.9717],[1550880000000,26.9673],[1550966400000,26.9673],[1551052800000,26.9673],[1551139200000,27.0002],[1551225600000,26.9589],[1551312000000,27.0688]], 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.933048],[1548979200000, 27.933048],[1549065600000, 27.752154],[1549152000000, 27.752154],[1549238400000, 27.752154],[1549324800000, 27.481320],[1549411200000, 27.184916],[1549497600000, 26.964088],[1549584000000, 26.930864],[1549670400000, 26.873939],[1549756800000, 26.873939],[1549843200000, 26.873939],[1549929600000, 26.957599],[1550016000000, 26.805786],[1550102400000, 26.935538],[1550188800000, 26.916310],[1550275200000, 27.055669],[1550361600000, 27.055669],[1550448000000, 27.055669],[1550534400000, 27.106948],[1550620800000, 27.036798],[1550707200000, 27.087563],[1550793600000, 26.971748],[1550880000000, 26.967306],[1550966400000, 26.967306],[1551052800000, 26.967306],[1551139200000, 27.000167],[1551225600000, 26.958899],[1551312000000, 27.068840]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });