Plot.plot({
height: 300,
width: width,
x: {
padding: 0,
},
y: {
padding: 0,
tickSize: 0,
domain: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
},
facet: {
data: dataGrouped,
y: d => d3.timeFormat("%Y")(d.dia)
},
color: {
range:["#eaeaea", "green"]
},
marks: [
Plot.cell(dataGroupedFull, {
filter: d=> dataGrouped.find(e=> e.dia.getTime() == d.dia.getTime()),
x: d => d3.timeFormat("%H")(d.dia),
y: d => d3.timeFormat("%a")(d.dia),
fill: "cant",
title: d=>"Visitas: "+d.cant ,
inset: 0.5
})
],
})