$(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: [[1535760000000,1.27879],[1535846400000,1.27879],[1535932800000,1.27879],[1536019200000,1.27944],[1536105600000,1.28046],[1536192000000,1.27811],[1536278400000,1.27694],[1536364800000,1.27757],[1536451200000,1.27757],[1536537600000,1.27757],[1536624000000,1.27226],[1536710400000,1.26795],[1536796800000,1.26879],[1536883200000,1.2807],[1536969600000,1.29184],[1537056000000,1.29184],[1537142400000,1.29184],[1537228800000,1.2895],[1537315200000,1.29394],[1537401600000,1.28992],[1537488000000,1.2921],[1537574400000,1.28978],[1537660800000,1.28978],[1537747200000,1.28978],[1537833600000,1.29202],[1537920000000,1.29027],[1538006400000,1.29003],[1538092800000,1.28831],[1538179200000,1.27182],[1538265600000,1.27182]], 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: [[1535760000000, 1.278786],[1535760000000, 1.278786],[1535846400000, 1.278786],[1535932800000, 1.278786],[1536019200000, 1.279443],[1536105600000, 1.280457],[1536192000000, 1.278112],[1536278400000, 1.276941],[1536364800000, 1.277572],[1536451200000, 1.277572],[1536537600000, 1.277572],[1536624000000, 1.272264],[1536710400000, 1.267951],[1536796800000, 1.268786],[1536883200000, 1.280697],[1536969600000, 1.291837],[1537056000000, 1.291837],[1537142400000, 1.291837],[1537228800000, 1.289497],[1537315200000, 1.293942],[1537401600000, 1.289921],[1537488000000, 1.292097],[1537574400000, 1.289785],[1537660800000, 1.289785],[1537747200000, 1.289785],[1537833600000, 1.292024],[1537920000000, 1.290270],[1538006400000, 1.290031],[1538092800000, 1.288305],[1538179200000, 1.271823],[1538265600000, 1.271823]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });