Commit c33c92f
committed
do not constrain legend (x,y) when
- when one sets autoexpand to false, fullLayout.margin are
honoured no matter how big the legend gets. In this case, (I'd argue)
the legend should NOT move from its provided (or default) (x,y)
position to make it fit on the graph.
- if some users want the legend to auto-expand the margin while keeping
the provided/default (x,y), we could eventually add a `legend.fitinside`
boolean attributemargin.autoexpand:false
1 parent 488cca1 commit c33c92f
File tree
3 files changed
+23
-2
lines changed- src/components/legend
- test/image
- baselines
- mocks
3 files changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments