forked from plotly/Plotly.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.fs
More file actions
43 lines (42 loc) · 983 Bytes
/
Program.fs
File metadata and controls
43 lines (42 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
open System
open Deedle
open System.IO
open Plotly.NET
open Plotly.NET.LayoutObjects
open Plotly.NET.TraceObjects
open Plotly.NET.ConfigObjects
open DynamicObj
open Giraffe.ViewEngine
open Newtonsoft.Json
[<EntryPoint>]
let main argv =
Chart.Point([1,2], UseDefaults = false, ShowLegend = true)
|> Chart.withLayout(
Layout.init(
DragMode = StyleParam.DragMode.DrawRect,
NewShape = (
NewShape.init(
DrawDirection = StyleParam.DrawDirection.Diagonal,
Visible = StyleParam.Visible.True,
ShowLegend = true
)
|> NewShape.setLegendAnchor(2)
)
)
)
|> Chart.withLegend (
Legend.init (
X = 0.25,
Y = 0.25
),
Id = 1
)
|> Chart.withLegend (
Legend.init (
X = 0.75,
Y = 0.75
),
Id = 2
)
|> Chart.show
0