   --cięcie--
   // Dodanie elementu svg na stronie
   let svg = d3
     .select("body")
     .append("svg")
     .attr("width", width)
     .attr("height", height);

   function update(data) {
     svg
       .selectAll("rect")
       .data(data)
       .join("rect")
       .attr("width", (d, i) => d.count * 5)
       .attr("height", 10)
       .attr("x", 20)
       .attr("y", (d, i) => i * 20);
   }

   d3.select("textarea").on("input", e => {
   --cięcie--

     data.sort((a, b) => d3.ascending(a.char, b.char));
     update(data);
   });
