Plot.plot({
x: {domain: [0,3], line: true, nice: true, label: "电流(A)", labelArrow: false, labelAnchor: "center"},
y: {domain: [4,9], grid: true, line: true, nice: true, label: "电压(V)", labelAnchor: "center", labelArrow: false},
marks: [
Plot.dot(rawHJWJ, { filter: (d) => d.power > 0, x: "current", y: "voltage", r: 2, symbol: "circle", stroke: "darkcyan", strokeWidth: 0.8, tip: {anchor: "top-right", textPadding: 4, strokeOpacity: 0.1, fill: "darkcyan", fillOpacity: 0.1}, title: (d) => `维简3A ○\n电压:${d.voltage}V\n电流:${d.current}A`}),
Plot.dot(rawHJHW, { filter: (d) => d.power > 0, x: "current", y: "voltage", r: 2, symbol: "triangle2", stroke: "darkgoldenrod", strokeWidth: 0.8, tip: {anchor: "top-left", textPadding: 4, strokeOpacity: 0.1, fill: "darkgoldenrod", fillOpacity: 0.1}, title: (d) => `华为3A △\n电压:${d.voltage}V\n电流:${d.current}A` }),
Plot.ruleY([0]),
Plot.dotY(["维简3A"], {x: 2.4, y: 4.4, symbol: "circle", stroke: "darkcyan"}),
Plot.text([" 航嘉20W + 维简3A线"], {x: 2.4, y: 4.4, textAnchor: "start"}),
Plot.dotY(["华为3A"], {x: 2.4, y: 4.2, symbol: "triangle2", stroke: "darkgoldenrod"}),
Plot.text([" 航嘉20W + 华为3A线"], {x: 2.4, y: 4.2, textAnchor: "start"}),
Plot.ruleX([2.22], {stroke: "grey", strokeOpacity: 0.8}),
Plot.tip([tip222], {x: 2.22, y: 8.3, anchor: "top-right", textPadding: 6, strokeOpacity: 0.3, lineHeight: 1.5}),
]
})