$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1551398400000,27.0511],[1551484800000,26.9095],[1551571200000,26.9095],[1551657600000,26.9095],[1551744000000,26.7916],[1551830400000,26.7341],[1551916800000,26.3529],[1552003200000,26.194],[1552089600000,26.194],[1552176000000,26.194],[1552262400000,26.194],[1552348800000,26.0685],[1552435200000,26.1416],[1552521600000,26.5386],[1552608000000,26.5847],[1552694400000,26.8912],[1552780800000,26.8912],[1552867200000,26.8912],[1552953600000,27.1056],[1553040000000,27.1728],[1553126400000,27.2062],[1553212800000,27.4443],[1553299200000,27.1024],[1553385600000,27.1024],[1553472000000,27.1024],[1553558400000,27.0997],[1553644800000,27.1461],[1553731200000,27.239],[1553817600000,27.3292],[1553904000000,27.3405],[1553990400000,27.3405]], 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, 27.051101],[1551398400000, 27.051101],[1551484800000, 26.909524],[1551571200000, 26.909524],[1551657600000, 26.909524],[1551744000000, 26.791635],[1551830400000, 26.734059],[1551916800000, 26.352932],[1552003200000, 26.193950],[1552089600000, 26.193950],[1552176000000, 26.193950],[1552262400000, 26.193950],[1552348800000, 26.068519],[1552435200000, 26.141610],[1552521600000, 26.538576],[1552608000000, 26.584683],[1552694400000, 26.891189],[1552780800000, 26.891189],[1552867200000, 26.891189],[1552953600000, 27.105618],[1553040000000, 27.172792],[1553126400000, 27.206218],[1553212800000, 27.444302],[1553299200000, 27.102418],[1553385600000, 27.102418],[1553472000000, 27.102418],[1553558400000, 27.099712],[1553644800000, 27.146114],[1553731200000, 27.238994],[1553817600000, 27.329159],[1553904000000, 27.340513],[1553990400000, 27.340513]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });