import dash
import dash_core_components as dcc # dash的组件
import dash_html_components as html
使用px实现
在plotly_express...dash中实现
在dash中实现的一个通用方法
fig = go.Figure() # or any Plotly Express function e.g. px.bar(...)
# fig.add_trace...turquoise, violet, wheat, white, whitesmoke,
yellow, yellowgreen
Connect Data Gaps
如果数据中存在缺失值或者说断点...fig.add_trace(go.Scatter(
x = x + x_rev,
y = y1_upper + y1_lower,
fill = 'toself', # 显示填充...fillcolor = 'rgba(0,100,80,0.2)', # 填充区域颜色
line_color = 'rgba(255,255,255,0)', # 边界颜色