$(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: [[1527811200000,4.10561],[1527897600000,4.09349],[1527984000000,4.09349],[1528070400000,4.09349],[1528156800000,4.12072],[1528243200000,4.10311],[1528329600000,4.1351],[1528416000000,4.15891],[1528502400000,4.12492],[1528588800000,4.12492],[1528675200000,4.12492],[1528761600000,4.12953],[1528848000000,4.12761],[1528934400000,4.125],[1529020800000,4.12833],[1529107200000,4.09588],[1529193600000,4.09588],[1529280000000,4.09588],[1529366400000,4.10414],[1529452800000,4.09281],[1529539200000,null],[1529625600000,4.07288],[1529712000000,4.101],[1529798400000,4.101],[1529884800000,4.101],[1529971200000,4.10955],[1530057600000,4.10254],[1530144000000,4.10458],[1530230400000,4.10458],[1530316800000,4.10458]], 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: [[1527811200000, 4.105606],[1527811200000, 4.105606],[1527897600000, 4.093492],[1527984000000, 4.093492],[1528070400000, 4.093492],[1528156800000, 4.120718],[1528243200000, 4.103107],[1528329600000, 4.135099],[1528416000000, 4.158909],[1528502400000, 4.124919],[1528588800000, 4.124919],[1528675200000, 4.124919],[1528761600000, 4.129525],[1528848000000, 4.127610],[1528934400000, 4.125004],[1529020800000, 4.128335],[1529107200000, 4.095876],[1529193600000, 4.095876],[1529280000000, 4.095876],[1529366400000, 4.104141],[1529452800000, 4.092813],[1529625600000, 4.072884],[1529712000000, 4.100995],[1529798400000, 4.100995],[1529884800000, 4.100995],[1529971200000, 4.109551],[1530057600000, 4.102536],[1530144000000, 4.104583],[1530230400000, 4.104583],[1530316800000, 4.104583]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });