{
const chart = new G2.Chart();
chart
.coordinate({ type: "transpose" })
.coordinate({ type: "polar", innerRadius: 0.1 });
chart
.interval()
.data([
{ question: "问题 1", percent: 0.21 },
{ question: "问题 2", percent: 0.4 },
{ question: "问题 3", percent: 0.49 },
{ question: "问题 4", percent: 0.52 },
{ question: "问题 5", percent: 0.53 },
{ question: "问题 6", percent: 0.84 },
{ question: "问题 7", percent: 1.0 },
{ question: "问题 8", percent: 1.2 }
])
.scale("y", { domain: [0, 2] })
.scale("x", { range: [1, 0], padding: 0.1, guide: { type: "axisX" } })
.scale("color", {
type: "linear",
range: ["#BAE7FF", "#1890FF", "#0050B3"]
})
.encode("x", "question")
.encode("y", "percent")
.encode("color", "percent");
return chart.render().node();
}