$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1533168000000,0.098129],[1533254400000,0.097504],[1533340800000,0.09788],[1533427200000,0.09788],[1533513600000,0.09788],[1533600000000,0.097704],[1533686400000,0.097987],[1533772800000,0.09787],[1533859200000,0.098158],[1533945600000,0.096702],[1534032000000,0.096702],[1534118400000,0.096702],[1534204800000,0.096267],[1534291200000,0.097043],[1534377600000,0.095639],[1534464000000,0.096951],[1534550400000,0.09812],[1534636800000,0.09812],[1534723200000,0.09812],[1534809600000,0.097764],[1534896000000,0.098542],[1534982400000,0.100303],[1535068800000,0.099596],[1535155200000,0.099596],[1535241600000,0.099596],[1535328000000,0.099596],[1535414400000,0.10016],[1535500800000,0.101448],[1535587200000,0.100988],[1535673600000,0.101325]], 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, 0.098129],[1533168000000, 0.098129],[1533254400000, 0.097504],[1533340800000, 0.097880],[1533427200000, 0.097880],[1533513600000, 0.097880],[1533600000000, 0.097704],[1533686400000, 0.097987],[1533772800000, 0.097870],[1533859200000, 0.098158],[1533945600000, 0.096702],[1534032000000, 0.096702],[1534118400000, 0.096702],[1534204800000, 0.096267],[1534291200000, 0.097043],[1534377600000, 0.095639],[1534464000000, 0.096951],[1534550400000, 0.098120],[1534636800000, 0.098120],[1534723200000, 0.098120],[1534809600000, 0.097764],[1534896000000, 0.098542],[1534982400000, 0.100303],[1535068800000, 0.099596],[1535155200000, 0.099596],[1535241600000, 0.099596],[1535328000000, 0.099596],[1535414400000, 0.100160],[1535500800000, 0.101448],[1535587200000, 0.100988],[1535673600000, 0.101325]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });