$(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: [[1519862400000,1.28807],[1519948800000,1.27622],[1520035200000,1.2858],[1520121600000,1.2858],[1520208000000,1.2858],[1520294400000,1.28293],[1520380800000,1.28848],[1520467200000,1.27457],[1520553600000,1.27457],[1520640000000,1.27457],[1520726400000,1.27457],[1520812800000,1.27457],[1520899200000,1.25324],[1520985600000,1.25942],[1521072000000,1.26446],[1521158400000,1.2757],[1521244800000,1.27554],[1521331200000,1.27554],[1521417600000,1.27554],[1521504000000,1.2795],[1521590400000,1.27],[1521676800000,1.27011],[1521763200000,1.27304],[1521849600000,1.27642],[1521936000000,1.27642],[1522022400000,1.27642],[1522108800000,1.28297],[1522195200000,1.27808],[1522281600000,1.28573],[1522368000000,1.2863],[1522454400000,1.27484]], 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: [[1519862400000, 1.288074],[1519862400000, 1.288074],[1519948800000, 1.276223],[1520035200000, 1.285804],[1520121600000, 1.285804],[1520208000000, 1.285804],[1520294400000, 1.282928],[1520380800000, 1.288483],[1520467200000, 1.274571],[1520553600000, 1.274571],[1520640000000, 1.274571],[1520726400000, 1.274571],[1520812800000, 1.274571],[1520899200000, 1.253240],[1520985600000, 1.259420],[1521072000000, 1.264459],[1521158400000, 1.275696],[1521244800000, 1.275544],[1521331200000, 1.275544],[1521417600000, 1.275544],[1521504000000, 1.279495],[1521590400000, 1.270002],[1521676800000, 1.270113],[1521763200000, 1.273042],[1521849600000, 1.276416],[1521936000000, 1.276416],[1522022400000, 1.276416],[1522108800000, 1.282967],[1522195200000, 1.278084],[1522281600000, 1.285729],[1522368000000, 1.286302],[1522454400000, 1.274844]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });