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
47 lines (45 loc) · 1.25 KB
/
Program.fs
File metadata and controls
47 lines (45 loc) · 1.25 KB
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
44
45
46
47
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 =
[
StyleParam.HoverInfo.X
StyleParam.HoverInfo.XY
StyleParam.HoverInfo.XYZ
StyleParam.HoverInfo.XYZText
StyleParam.HoverInfo.XYZTextName
StyleParam.HoverInfo.Y
StyleParam.HoverInfo.YZ
StyleParam.HoverInfo.YZText
StyleParam.HoverInfo.YZTextName
StyleParam.HoverInfo.Z
StyleParam.HoverInfo.ZText
StyleParam.HoverInfo.ZTextName
StyleParam.HoverInfo.Text
StyleParam.HoverInfo.TextName
StyleParam.HoverInfo.Name
StyleParam.HoverInfo.All
StyleParam.HoverInfo.None
StyleParam.HoverInfo.Skip
]
|> List.mapi (fun i hi ->
Chart.Point3D(
xyz = [i + 1, i + 2, i + 3],
Name = $"NAME: trace with {hi.ToString()}",
Text = $"TEXT: trace with {hi.ToString()}",
UseDefaults = false
)
|> GenericChart.mapTrace (Trace3DStyle.Scatter3D(HoverInfo = hi))
)
|> Chart.combine
|> Chart.withSize(1000,1000)
|> Chart.show
0