Plot.plot({
insetLeft: 20,
insetRight: 20,
insetTop: 70,
marks: [
Plot.barX([26.2], {fill: "orange", fillOpacity: 0.1}),
Plot.ruleY(bbc_devicestats, {x1: 0, x2: "CostOnStandby", y: "Device", sort: {y: "x", reverse: true}, stroke: "#008080", opacity: 0.8, strokeWidth: 40}),
Plot.image(bbc_devicestats, {x: -1 , y: "Device",width: 50, src: "deviceurl"}),
Plot.text(bbc_devicestats,{x: d => d.CostOnStandby - .1 , y: "Device", fill: "white", opacity: 1, textAnchor: "end", fontSize: 20, text: "Costchar"}),
Plot.text(bbc_devicestats,{x: d => d.CostOnStandby + .3 , y: "Device", fill: "black", opacity: 0.8, textAnchor: "start", fontSize: 17, text: "Device"}),
Plot.text(bbc_devicestats,{x: 25.5 , y: "Device", fill: "#008080", text: "fact", opacity: 0.4, textAnchor: "end", fontSize: 40, filter: d => d.Device === "Shower", lineHeight: 1.2}),
Plot.text(bbc_devicestats,{x: 25 , y: "Device", fill: "black", text: "titletop", opacity: 1, textAnchor: "end", fontSize: 40, filter: d => d.Device === "TV", dy: -70}),
Plot.text(bbc_devicestats,{x: 26 , y: "Device", fill: "gray", text: "source", opacity: 0.6, textAnchor: "end", fontSize: 20, filter: d => d.Device === "Phone Charger", dy: 30}),
Plot.ruleX([0]),
Plot.axisY({ tickSize: 0, fontSize: 0}),
Plot.axisX({ tickSize: 0, fontSize: 0}),
],
height: 800, width: 1200
})