Skip to content

Commit c52b686

Browse files
committed
Update legend.md
1 parent aded536 commit c52b686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/legend.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ fig.add_shape(
120120
)
121121
fig.add_trace(go.Bar(name="third", x=["a", "b"], y=[1, 2]))
122122
fig.add_trace(go.Bar(name="fourth", x=["a", "b"], y=[2, 1]))
123-
v
123+
124124
fig.show()
125125

126126
```
127127

128128
The `legendrank` attribute of a trace or shape can be used to control its placement in the legend.
129-
The default `legendrank` for traces and shapes is 1000. When all traces and shapes have the same `legendrank`, traces appear in the order they appear in the data, followed by shapes in the order they are defined.
129+
The default `legendrank` for traces and shapes is 1000. When all traces and shapes have the same `legendrank`, traces appear in the order they appear in the data, followed by shapes in the order they are defined.
130130

131131
Any trace or shape can be pulled up to the top of the legend if it is the only one with a legend rank less than 1000 and pushed to the bottom if it is the only one with a rank greater than 1000.
132132

0 commit comments

Comments
 (0)