   --cięcie--
   let margin = { top: 20, right: 10, bottom: 20, left: 50 };

   // Kontener osi górnej
   let topContainer = svg
     .append("g")
     .attr("id", "top")
     .attr("transform", `translate(0, ${margin.top})`);

   // Kontener osi lewej 
   let leftContainer = svg
     .append("g")
     .attr("id", "left")
     .attr("transform", `translate(${margin.left}, 0)`);

   function update(data) {
   --cięcie--
