chart2 = render({
data: {values: data},
mark: { type: 'bar' },
"encoding": {
x: {field: "Sim Type", scale: {domain:["Dot Product", "Cosine Sim", "L2 Norm"]}, axis: {labelAngle: 0} },
y: {field: "Test Accuracy", type: "Q", scale: {domain:[0, 100]}},
xOffset: {field: "Model Type", scale: {domain:["bert-base-uncased", "GPT-4o", "human"]} },
color: {field: "Model Type", scale: {domain:["bert-base-uncased", "GPT-4o", "human"], range: colors} }
}
})