$(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: [[1527811200000,1.18465],[1527897600000,1.17986],[1527984000000,1.17986],[1528070400000,1.17986],[1528156800000,1.19365],[1528243200000,1.1904],[1528329600000,1.20009],[1528416000000,1.20814],[1528502400000,1.19096],[1528588800000,1.19096],[1528675200000,1.19096],[1528761600000,1.19779],[1528848000000,1.19881],[1528934400000,1.19531],[1529020800000,1.19901],[1529107200000,1.18673],[1529193600000,1.18673],[1529280000000,1.18673],[1529366400000,1.18792],[1529452800000,1.18179],[1529539200000,null],[1529625600000,1.17353],[1529712000000,1.18498],[1529798400000,1.18498],[1529884800000,1.18498],[1529971200000,1.18077],[1530057600000,1.18023],[1530144000000,1.18641],[1530230400000,1.18641],[1530316800000,1.18641]], 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, 1.184653],[1527811200000, 1.184653],[1527897600000, 1.179865],[1527984000000, 1.179865],[1528070400000, 1.179865],[1528156800000, 1.193655],[1528243200000, 1.190402],[1528329600000, 1.200094],[1528416000000, 1.208143],[1528502400000, 1.190957],[1528588800000, 1.190957],[1528675200000, 1.190957],[1528761600000, 1.197791],[1528848000000, 1.198812],[1528934400000, 1.195306],[1529020800000, 1.199005],[1529107200000, 1.186727],[1529193600000, 1.186727],[1529280000000, 1.186727],[1529366400000, 1.187919],[1529452800000, 1.181795],[1529625600000, 1.173535],[1529712000000, 1.184983],[1529798400000, 1.184983],[1529884800000, 1.184983],[1529971200000, 1.180765],[1530057600000, 1.180232],[1530144000000, 1.186407],[1530230400000, 1.186407],[1530316800000, 1.186407]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });