子弹图表中是否有可能有 2 个销售点?目前我只能得到 1 个阈值
我添加了第二条阈值线,但它不会添加到情节中:
fig <- plot_ly(
type = "indicator",
mode = "number+gauge+delta",
gauge = list(
shape = "bullet",
axis = list(range = list(low, high)),
steps = list(
list(range = c(0, 25), color = "#0072B275"),
list(range = c(75, 100), color = "#E69F0075")),
bar = list(color = "#CC79A7"),
threshold = list(
line = list(color = "#0072B2", width = 2),
thickness = 0.75,
value = lowerthr),
threshold = list(
line = list(color = "#E69F00", width = 2),
thickness = 0.75,
value = upperthr)),
delta = list(reference = high),
value = val,
domain = list(x = c(0, 1), y = c(0, 1)),
title= list(text = "Test"),
height = 150)
fig