$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1538352000000,4.38888],[1538438400000,4.39176],[1538524800000,4.37753],[1538611200000,4.38585],[1538697600000,4.34602],[1538784000000,4.33233],[1538870400000,4.33233],[1538956800000,4.33233],[1539043200000,4.32168],[1539129600000,4.3049],[1539216000000,4.31674],[1539302400000,4.34193],[1539388800000,4.33287],[1539475200000,4.33287],[1539561600000,4.33287],[1539648000000,4.33287],[1539734400000,4.33762],[1539820800000,4.31454],[1539907200000,4.32353],[1539993600000,4.33273],[1540080000000,4.33273],[1540166400000,4.33273],[1540252800000,4.32632],[1540339200000,4.33091],[1540425600000,4.30699],[1540512000000,4.3356],[1540598400000,4.29822],[1540684800000,4.29822],[1540771200000,4.29822],[1540857600000,4.30178],[1540944000000,4.29257]], 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: [[1538352000000, 4.388884],[1538352000000, 4.388884],[1538438400000, 4.391758],[1538524800000, 4.377528],[1538611200000, 4.385854],[1538697600000, 4.346017],[1538784000000, 4.332326],[1538870400000, 4.332326],[1538956800000, 4.332326],[1539043200000, 4.321682],[1539129600000, 4.304902],[1539216000000, 4.316743],[1539302400000, 4.341927],[1539388800000, 4.332868],[1539475200000, 4.332868],[1539561600000, 4.332868],[1539648000000, 4.332868],[1539734400000, 4.337615],[1539820800000, 4.314538],[1539907200000, 4.323535],[1539993600000, 4.332729],[1540080000000, 4.332729],[1540166400000, 4.332729],[1540252800000, 4.326316],[1540339200000, 4.330909],[1540425600000, 4.306994],[1540512000000, 4.335599],[1540598400000, 4.298224],[1540684800000, 4.298224],[1540771200000, 4.298224],[1540857600000, 4.301779],[1540944000000, 4.292572]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });