Skip to content

Commit 2293ba8

Browse files
committed
update shape layer example
1 parent 310db94 commit 2293ba8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/python/shapes.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1118,40 +1118,40 @@ fig = px.line(df)
11181118

11191119
fig.add_shape(
11201120
type="rect",
1121-
x0="2018-01-24",
1121+
x0="2018-03-01",
11221122
y0=0,
1123-
x1="2018-08-18",
1123+
x1="2018-08-01",
11241124
y1=3,
11251125
line_width=0,
11261126
layer="above",
11271127
label=dict(text="Above", textposition="top center", font=dict(size=15)),
1128-
fillcolor="LightSkyBlue",
1128+
fillcolor="LightGreen",
11291129
opacity=0.80,
11301130
)
11311131

11321132
fig.add_shape(
11331133
type="rect",
1134-
x0="2018-09-24",
1134+
x0="2018-10-01",
11351135
y0=0,
1136-
x1="2019-04-18",
1136+
x1="2019-03-01",
11371137
y1=3,
11381138
line_width=0,
11391139
layer="between",
11401140
label=dict(text="Between", textposition="top center", font=dict(size=15)),
1141-
fillcolor="LightSkyBlue",
1141+
fillcolor="LightGreen",
11421142
opacity=0.80,
11431143
)
11441144

11451145
fig.add_shape(
11461146
type="rect",
1147-
x0="2019-05-24",
1147+
x0="2019-05-01",
11481148
y0=0,
1149-
x1="2019-11-18",
1149+
x1="2019-10-01",
11501150
y1=3,
11511151
line_width=0,
11521152
layer="below",
11531153
label=dict(text="Below", textposition="top center", font=dict(size=15)),
1154-
fillcolor="LightSkyBlue",
1154+
fillcolor="LightGreen",
11551155
opacity=0.80,
11561156
)
11571157

0 commit comments

Comments
 (0)