$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1548979200000,1.23714],[1549065600000,1.23084],[1549152000000,1.23084],[1549238400000,1.23084],[1549324800000,1.21993],[1549411200000,1.20982],[1549497600000,1.19169],[1549584000000,1.18507],[1549670400000,1.1827],[1549756800000,1.1827],[1549843200000,1.1827],[1549929600000,1.18438],[1550016000000,1.17922],[1550102400000,1.18738],[1550188800000,1.18666],[1550275200000,1.1934],[1550361600000,1.1934],[1550448000000,1.1934],[1550534400000,1.1976],[1550620800000,1.19335],[1550707200000,1.19641],[1550793600000,1.19537],[1550880000000,1.19208],[1550966400000,1.19208],[1551052800000,1.19208],[1551139200000,1.19471],[1551225600000,1.19452],[1551312000000,1.19769]], 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, 1.237143],[1548979200000, 1.237143],[1549065600000, 1.230837],[1549152000000, 1.230837],[1549238400000, 1.230837],[1549324800000, 1.219932],[1549411200000, 1.209817],[1549497600000, 1.191687],[1549584000000, 1.185067],[1549670400000, 1.182699],[1549756800000, 1.182699],[1549843200000, 1.182699],[1549929600000, 1.184377],[1550016000000, 1.179222],[1550102400000, 1.187377],[1550188800000, 1.186655],[1550275200000, 1.193400],[1550361600000, 1.193400],[1550448000000, 1.193400],[1550534400000, 1.197597],[1550620800000, 1.193353],[1550707200000, 1.196414],[1550793600000, 1.195368],[1550880000000, 1.192080],[1550966400000, 1.192080],[1551052800000, 1.192080],[1551139200000, 1.194710],[1551225600000, 1.194520],[1551312000000, 1.197691]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });