plotCyfan=Plot.plot({marginLeft: 200, marginTop:60,width,
x: {axis: "top", tickFormat: "s",label: "Poblogaeth"},
y: {label:"Ardal gynnyrch ehangach haen isaf"},
color: {scheme: "category10", domain: dewis},
style: {fontSize:12},
marks: [
Plot.barX(dewiswyd3, {
y: "lsoa",
x: "pobl",
title: (d) =>
`${d.pobl} â'r sgil:`+`${d.newidyn}`,
fill: "newidyn",
sort: {y: "x", reverse: true}
}),
Plot.ruleX([0])
],
tooltip: {
fill: "purple"
}
})