Plot.plot({
marginLeft: 80,
x:{domain:[new Date(`1992-01-01`),new Date(`2020-12-01`)]},
y:{domain:[0,60000]},
marks:[
Plot.ruleX([new Date('1992-01-01')]),
Plot.ruleY([0]),
Plot.line(retail2,{x:'yr',y:'total',filter:d => d.kind_of_business == 'Sporting goods stores',strokeDasharray:'5,5'}),
Plot.line(retail2,{x:'yr',y:'total',filter:d => d.kind_of_business == 'Hobby, toy, and game stores',strokeDasharray:'1,5'}),
Plot.line(retail2,{x:'yr',y:'total',filter:d => d.kind_of_business == 'Book stores'}),
Plot.text(['Sporting goods stores'],{x:new Date('2019'),y: 55000}),
Plot.text(['Hobby, toy, and game stores'],{x:new Date('2018'),y: 15000}),
Plot.text(['Book stores'],{x:new Date('2020'),y: 5000})
]
})