$(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: [[1533168000000,1.23231],[1533254400000,1.2263],[1533340800000,1.22364],[1533427200000,1.22364],[1533513600000,1.22364],[1533600000000,1.22098],[1533686400000,1.22432],[1533772800000,1.22159],[1533859200000,1.22918],[1533945600000,1.21758],[1534032000000,1.21758],[1534118400000,1.21758],[1534204800000,1.21534],[1534291200000,1.21904],[1534377600000,1.20895],[1534464000000,1.22408],[1534550400000,1.23515],[1534636800000,1.23515],[1534723200000,1.23515],[1534809600000,1.23044],[1534896000000,1.23835],[1534982400000,1.25916],[1535068800000,1.25428],[1535155200000,1.25428],[1535241600000,1.25428],[1535328000000,1.25428],[1535414400000,1.26006],[1535500800000,1.27748],[1535587200000,1.2734],[1535673600000,1.2841]], 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: [[1533168000000, 1.232314],[1533168000000, 1.232314],[1533254400000, 1.226296],[1533340800000, 1.223644],[1533427200000, 1.223644],[1533513600000, 1.223644],[1533600000000, 1.220981],[1533686400000, 1.224316],[1533772800000, 1.221595],[1533859200000, 1.229184],[1533945600000, 1.217578],[1534032000000, 1.217578],[1534118400000, 1.217578],[1534204800000, 1.215344],[1534291200000, 1.219043],[1534377600000, 1.208947],[1534464000000, 1.224084],[1534550400000, 1.235153],[1534636800000, 1.235153],[1534723200000, 1.235153],[1534809600000, 1.230437],[1534896000000, 1.238351],[1534982400000, 1.259156],[1535068800000, 1.254277],[1535155200000, 1.254277],[1535241600000, 1.254277],[1535328000000, 1.254277],[1535414400000, 1.260057],[1535500800000, 1.277485],[1535587200000, 1.273403],[1535673600000, 1.284101]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });