--cięcie--
    d3.select("#key")
      .selectAll("p")
      .data(licenses)
      .join(
        enter => {
        let p = enter.append("p");

        p.append("input")
          .attr("type", "checkbox")
          .attr("checked", true)
          .attr("title", "Uwzględnij na wykresie");

        p.append("div")
          .attr("class", "color")
          .style("background-color", d => colorScale(d));
--cięcie--
