vegaEmbed({
width: 850,
height: 550,
data: { values: OceanRaw1 },
params: [{
name: "Capture_Born_Rescue",
value: 0,
bind: { input: "range", min: 0, max: 100, step: 5 }
},
],
transform: [{ filter: "datum.Total >Capture_Born_Rescue" }],
layer: [
{
mark: { type: "bar", fill: "Pink",size: 5, cornerRadiusEnd: 6, "tooltip": true },
encoding:{
x: { field: "AcqYear", type: "n" },
y: { field: "Capture", type: "q" },
}
},
{
mark: { type: "bar", fill: " lightBlue", size: 5, cornerRadiusEnd: 6, "tooltip": true },
encoding: {
x: { field: "AcqYear", type: "n" },
y: { field: "Born", type: "quantitative" },
}
},
{
mark: { type: "bar", fill: "darkOrange", size: 5, cornerRadiusEnd: 6, "tooltip": true },
encoding:{
x: { field: "AcqYear", type: "n" },
y: { field: "Rescue", type: "quantitative" },
}
},
],
config : {view: {strokeOpacity: 0}}
})