plot2 = {
const p = new Facet("container2", {
type: "circle",
fields: ["clarity"],
data: data,
tooltip: { showMarkers: false },
meta: {
cut: {
sync: true
}
},
eachView: (view, f) => {
return {
type: "pie",
options: {
data: f.data,
angleField: "mean",
colorField: "cut",
pieStyle: { stroke: null },
theme: "custom"
}
};
}
});
p.render();
return p;
}