{
const data = [
{category: 'Observable Sourced', value: 49.6, order: 1},
{category: 'Original', value: 40.8, order: 2},
{category: 'Outside Sourced', value: 6.4, order: 3},
{category: 'Orthogonal', value: 3.2, order: 4}
];
const colors = {
domain: ['Observable Sourced', 'Original', 'Outside Sourced', 'Orthogonal'],
range: ["#ff7f0e","#2ca02c", "#9467bd","#1f77b4"]
};
return vl.markArc({outerRadius: 100})
.data(data)
.encode(
vl.column().fieldO("Code Inheritance Strategies Across 125 Examples"),
vl.theta().fieldQ('value').stack(true).scale({range: [0.75 * Math.PI, 2.75 * Math.PI]}),
vl.color().fieldN('category').title(null).scale(colors).legend({orient: 'right'}),
vl.order().fieldO('order')
)
.config({view: {stroke: null}})
.width(300)
.height(200)
.render();
}