$(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: [[1530403200000,1.18641],[1530489600000,1.18641],[1530576000000,1.17441],[1530662400000,1.17662],[1530748800000,1.18254],[1530835200000,1.1931],[1530921600000,1.1893],[1531008000000,1.1893],[1531094400000,1.1893],[1531180800000,1.19676],[1531267200000,1.18537],[1531353600000,1.187],[1531440000000,1.17884],[1531526400000,1.17819],[1531612800000,1.17819],[1531699200000,1.17819],[1531785600000,1.18666],[1531872000000,1.18638],[1531958400000,1.18132],[1532044800000,1.1835],[1532131200000,1.19276],[1532217600000,1.19276],[1532304000000,1.19276],[1532390400000,1.19887],[1532476800000,1.20796],[1532563200000,1.21234],[1532649600000,1.21748],[1532736000000,1.2142],[1532822400000,1.2142],[1532908800000,1.2142],[1532995200000,1.21998]], 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: [[1530403200000, 1.186407],[1530403200000, 1.186407],[1530489600000, 1.186407],[1530576000000, 1.174407],[1530662400000, 1.176623],[1530748800000, 1.182538],[1530835200000, 1.193100],[1530921600000, 1.189300],[1531008000000, 1.189300],[1531094400000, 1.189300],[1531180800000, 1.196761],[1531267200000, 1.185374],[1531353600000, 1.186998],[1531440000000, 1.178836],[1531526400000, 1.178188],[1531612800000, 1.178188],[1531699200000, 1.178188],[1531785600000, 1.186664],[1531872000000, 1.186380],[1531958400000, 1.181325],[1532044800000, 1.183498],[1532131200000, 1.192758],[1532217600000, 1.192758],[1532304000000, 1.192758],[1532390400000, 1.198872],[1532476800000, 1.207961],[1532563200000, 1.212340],[1532649600000, 1.217483],[1532736000000, 1.214201],[1532822400000, 1.214201],[1532908800000, 1.214201],[1532995200000, 1.219981]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });