--cięcie--
   let yScale = d3.scaleBand()
    .domain(data.map(d => d.char))
    .range([margin.top, height - margin.bottom])
    .padding(0.5);

   let topAxisTicks = xScale.ticks()
     .filter(tick => Number.isInteger(tick));

   let topAxis = d3.axisTop(xScale)
     .tickValues(topAxisTicks)
     .tickFormat(d3.format("d"));

   let leftAxis = d3.axisLeft(yScale); 
--cięcie--
