如何在条形图中设置
x
和 y
轴的范围。我的条形图目前是以下格式(使用 Python):x = [1,2,3,5,6,7]
y = [3,5,76,8,96,1]
data = [go.Bar(
x=x,
y=y
)]
layout = {
'xaxis': {'title': 'Query Duration'},
'yaxis': {'title': 'Proportion (%)'},
'barmode': 'relative'
}
但是在我的测试中,我无法将range
发送到data
或layout
。