Bullet chart review #2110
Kiss-World
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Nice! If you’re interested, here are a few suggestions. Plot.plot({
width: 300,
height: 200,
color: { range: ["#696969", "#B6B5B5", "#E0DFDF"] },
marks: [
Plot.barX(
data2,
Plot.groupY({ x: "sum" }, { x: "目标", y: "序列", fill: "分类" })
),
Plot.barX(data, {
x: "前值",
y: "序列",
fill: "#F7AA58",
insetBottom: 8,
insetTop: 8
}),
Plot.tickX(data, {
x: "后值",
y: "序列",
stroke: "#DA1616",
strokeWidth: 6,
inset: 6
})
]
}) The changes are:
I also restored the axes and removed the custom margins which I think makes the chart more readable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
link: https://observablehq.com/d/9d6717f0a17f286d
Beta Was this translation helpful? Give feedback.
All reactions