Plot.plot({
x:{round: true,
label: "Percentage of articles per Organization",
labelAnchor: "center",
tickFormat: "%",
domain:[0,0.5]},
grid:true,
marginLeft: 150,
margin:50,
y:{label:"Organizations"},
marks: [
Plot.barX(percentages, {y:percentages.keys(),x:percentages.values(),fill:Array.from(percentages.keys()),title:titles,sort: {y: "x", reverse: true}}),
Plot.ruleX([0])
],
color: {legend: true}
})