$(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: [[1551398400000,0.097045],[1551484800000,0.096745],[1551571200000,0.096745],[1551657600000,0.096745],[1551744000000,0.096295],[1551830400000,0.096065],[1551916800000,0.094884],[1552003200000,0.094315],[1552089600000,0.094315],[1552176000000,0.094315],[1552262400000,0.094315],[1552348800000,0.093671],[1552435200000,0.094246],[1552521600000,0.095939],[1552608000000,0.095971],[1552694400000,0.09718],[1552780800000,0.09718],[1552867200000,0.09718],[1552953600000,0.097945],[1553040000000,0.098491],[1553126400000,0.09846],[1553212800000,0.098664],[1553299200000,0.096358],[1553385600000,0.096358],[1553472000000,0.096358],[1553558400000,0.096111],[1553644800000,0.096373],[1553731200000,0.095311],[1553817600000,0.095566],[1553904000000,0.095217],[1553990400000,0.095217]], 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: [[1551398400000, 0.097045],[1551398400000, 0.097045],[1551484800000, 0.096745],[1551571200000, 0.096745],[1551657600000, 0.096745],[1551744000000, 0.096295],[1551830400000, 0.096065],[1551916800000, 0.094884],[1552003200000, 0.094315],[1552089600000, 0.094315],[1552176000000, 0.094315],[1552262400000, 0.094315],[1552348800000, 0.093671],[1552435200000, 0.094246],[1552521600000, 0.095939],[1552608000000, 0.095971],[1552694400000, 0.097180],[1552780800000, 0.097180],[1552867200000, 0.097180],[1552953600000, 0.097945],[1553040000000, 0.098491],[1553126400000, 0.098460],[1553212800000, 0.098664],[1553299200000, 0.096358],[1553385600000, 0.096358],[1553472000000, 0.096358],[1553558400000, 0.096111],[1553644800000, 0.096373],[1553731200000, 0.095311],[1553817600000, 0.095566],[1553904000000, 0.095217],[1553990400000, 0.095217]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });