$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1541030400000,3.33147],[1541116800000,3.37154],[1541203200000,3.37589],[1541289600000,3.37589],[1541376000000,3.37589],[1541462400000,3.34454],[1541548800000,3.34716],[1541635200000,3.36158],[1541721600000,3.35551],[1541808000000,3.31655],[1541894400000,3.31655],[1541980800000,3.31655],[1542067200000,3.29568],[1542153600000,3.28983],[1542240000000,3.27611],[1542326400000,3.26975],[1542412800000,3.27626],[1542499200000,3.27626],[1542585600000,3.27626],[1542672000000,3.288],[1542758400000,3.26444],[1542844800000,3.25711],[1542931200000,3.24838],[1543017600000,3.24078],[1543104000000,3.24078],[1543190400000,3.24078],[1543276800000,3.2584],[1543363200000,3.27128],[1543449600000,3.28566],[1543536000000,3.32197]], 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: [[1541030400000, 3.331473],[1541030400000, 3.331473],[1541116800000, 3.371545],[1541203200000, 3.375891],[1541289600000, 3.375891],[1541376000000, 3.375891],[1541462400000, 3.344541],[1541548800000, 3.347156],[1541635200000, 3.361576],[1541721600000, 3.355508],[1541808000000, 3.316550],[1541894400000, 3.316550],[1541980800000, 3.316550],[1542067200000, 3.295682],[1542153600000, 3.289834],[1542240000000, 3.276111],[1542326400000, 3.269754],[1542412800000, 3.276263],[1542499200000, 3.276263],[1542585600000, 3.276263],[1542672000000, 3.287997],[1542758400000, 3.264438],[1542844800000, 3.257106],[1542931200000, 3.248381],[1543017600000, 3.240777],[1543104000000, 3.240777],[1543190400000, 3.240777],[1543276800000, 3.258403],[1543363200000, 3.271279],[1543449600000, 3.285656],[1543536000000, 3.321971]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });