【发布时间】:2020-03-02 09:04:19
【问题描述】:
我正在尝试使用破折号和绘图显示一个简单的漏斗图。问题是它显示的是折线图。
我按照this答案的说明,也就是使用了代码:
app = dash.Dash()
app.layout = html.Div([dcc.Graph(id='FunnelDashboard',
figure = {'data':[
go.Funnel(
y = ["Website visit", "Downloads", "Potential customers", "Requested price", "invoice sent"],
x = [39, 27.4, 26.6, 11, 2])]
}
)])
if __name__ == '__main__':
app.run_server()
但我得到的是this 线图。
我期望得到类似this。
【问题讨论】:
-
运行上面的代码,我确实得到了你描述的漏斗图。所以肯定有其他问题。
标签: python python-3.x plotly plotly-dash plotly-python