London Lives Petitions: parish v others, 1690-1799 (v2)
ojsCwopYear =transpose(ojs_cwop_year)
// dodge groups; in OP they do it with facets.Plot.plot({width: width,height:600,marginBottom:60,fx: {padding:0,label:null,tickRotate:90,tickSize:6,tickFormat: d3.format('d')},x: {axis:null},color: {legend:true,domain: ["other","parish"],range: ["#b24747","#47b2b2"] },marks: [ Plot.barY(ojsCwopYear, {fx:"year",y:"petitions",x:"ptype",fill:"ptype",// offset: "normalize",tip:true,// need to add year again as a channel to give it the right labeltip: {channels: { year:"year", },format: {year: (d) =>`${d}`,fx:false } }//sort: {y: "x"} }),//Plot.ruleX([0]) ]})//"#b24747", "#d35400", 1), // orange//"#47b2b2", "#16a085", 1), // turquoise
Notes:
“Parish” = petitions from churchwardens and overseers of the poor, mainly concerning disputed pauper removals but also rate assessments, plus highways etc
Data: London Lives petitions project, v1.2
Dataviz: Observable Plot (supersedes earlier versions in dimple.js)