Skip to content

Commit 03afc72

Browse files
committed
add Side.TopLeft
close #266
1 parent 37ebfda commit 03afc72

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Plotly.NET/CommonAbstractions/StyleParams.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,13 +2628,15 @@ module StyleParam =
26282628
[<RequireQualifiedAccess>]
26292629
type Side =
26302630
| Top
2631+
| TopLeft
26312632
| Bottom
26322633
| Left
26332634
| Right
26342635

26352636
static member toString =
26362637
function
26372638
| Top -> "top"
2639+
| TopLeft -> "top left"
26382640
| Bottom -> "bottom"
26392641
| Left -> "left"
26402642
| Right -> "right"

src/Plotly.NET/Playground.fsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,12 @@ let multiTraceSingleStack =
306306
]
307307
|> Chart.SingleStack()
308308
|> Chart.withSize(1000,1000)
309-
|> Chart.show
309+
|> Chart.show
310+
311+
[
312+
Chart.Point [(1,2)]
313+
Chart.Point [(2,1)]
314+
]
315+
|> Chart.combine
316+
|> Chart.withLegend(Legend.init(Title=Title.init("Left",Side=StyleParam.Side.Left)))
317+
|> Chart.show

0 commit comments

Comments
 (0)