London Lives Sessions Papers, image counts, 1690-1799
ojsYear =transpose(ojs_year)
Plot.plot({width: width,height:600,marginBottom:60,x: {tickRotate:90,tickFormat: d3.format('d')},y: { grid:true },color: {legend:true,domain: ["Middlesex","City","OldBailey","Westminster"],range: ["#b24747","#47b2b2","#faae15","#a5e79b"] },marks: [ Plot.barY(ojsYear, {x:"year",y:"images",fill:"court",order:"court",// i think this fixes the random problem.//offset: "normalize",tip:true,// need to format year againtip: {format: {x: (d) =>`${d}` } }//sort: {y: "x"} }),//Plot.ruleX([0]) ]})//"#b24747", "#d35400", 1), // orange//"#47b2b2", "#16a085", 1), // turquoise// problem that ptype were randomly ordered!// could fix it by uncounting the data in r and then using count in Plot. but dn't want that sort of faff// order: option seems to fix it.
Notes:
This represents pages, not documents, in the original files (some documents consist of multiple pages).
Data: London Lives petitions project, v1.2
Dataviz: Observable Plot (supersedes earlier versions in dimple.js)