Plot.plot({
title: "Filmy Dialogues are too Male",
width: width,
height: 500,
y: { reverse: true, axis: null },
color: { range: ["blue", "white", "red"], type: "diverging", pivot: 0.5 },
marks: [
Plot.dot(data2, { x: "gRatio2", fill: "gRatio2", y: "rRank" }),
Plot.tip(
data2,
Plot.pointer({
x: "gRatio2",
y: "rRank",
channels: { movie: "script_id" }
})
)
]
})