Plot.plot({
marks: [
Plot.barX(connecting.slice(18,30), {x: "2020", y: "субъект", fill:(d=>select_colors_r(d)), rx:5, sort: {x: "x", reverse: true}}),
Plot.text(connecting.slice(18,30), {x: "2020", y: "субъект", dx: 20, text: d=>d["2020"]}),
Plot.text(connecting.slice(18,30), {x: "2020", y: "субъект", dx: 60, text: d=>d["2021"]}),
Plot.ruleX([0, 1800, 2000])
],
color: { legend: true },
marginLeft: 230,
marginRight: 80
})