$(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: [[1556668800000,25.936],[1556755200000,25.936],[1556841600000,26.0758],[1556928000000,25.9501],[1557014400000,25.9501],[1557100800000,25.9501],[1557187200000,26.0219],[1557273600000,25.8093],[1557360000000,25.7778],[1557446400000,25.7778],[1557532800000,25.865],[1557619200000,25.865],[1557705600000,25.865],[1557792000000,25.9425],[1557878400000,25.9755],[1557964800000,26.1565],[1558051200000,26.1029],[1558137600000,26.1088],[1558224000000,26.1088],[1558310400000,26.1088],[1558396800000,25.9796],[1558483200000,25.8507],[1558569600000,26.1153],[1558656000000,26.1363],[1558742400000,26.4087],[1558828800000,26.4087],[1558915200000,26.4087],[1559001600000,26.1877],[1559088000000,26.2607],[1559174400000,26.5383],[1559260800000,26.6476]], 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: [[1556668800000, 25.935952],[1556668800000, 25.935952],[1556755200000, 25.935952],[1556841600000, 26.075821],[1556928000000, 25.950061],[1557014400000, 25.950061],[1557100800000, 25.950061],[1557187200000, 26.021907],[1557273600000, 25.809297],[1557360000000, 25.777808],[1557446400000, 25.777808],[1557532800000, 25.865012],[1557619200000, 25.865012],[1557705600000, 25.865012],[1557792000000, 25.942496],[1557878400000, 25.975452],[1557964800000, 26.156510],[1558051200000, 26.102924],[1558137600000, 26.108797],[1558224000000, 26.108797],[1558310400000, 26.108797],[1558396800000, 25.979555],[1558483200000, 25.850724],[1558569600000, 26.115338],[1558656000000, 26.136281],[1558742400000, 26.408682],[1558828800000, 26.408682],[1558915200000, 26.408682],[1559001600000, 26.187704],[1559088000000, 26.260691],[1559174400000, 26.538267],[1559260800000, 26.647598]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });