-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathMeanLine.fs
More file actions
35 lines (29 loc) · 891 Bytes
/
MeanLine.fs
File metadata and controls
35 lines (29 loc) · 891 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
namespace Plotly.NET.TraceObjects
open Plotly.NET
open Plotly.NET.LayoutObjects
open DynamicObj
open System
open System.Runtime.InteropServices
/// Meanline type inherits from dynamic object (parent violin)
type MeanLine() =
inherit DynamicObj()
/// Initialized Line object
static member init
(
?Visible: bool,
?Color: Color,
?Width: float
) =
MeanLine() |> MeanLine.style (?Visible = Visible, ?Color = Color, ?Width = Width)
// Applies the styles to Line()
static member style
(
?Visible: bool,
?Color: Color,
?Width: float
) =
fun (line: MeanLine) ->
line
|> DynObj.withOptionalProperty "visible" Visible
|> DynObj.withOptionalProperty "color" Color
|> DynObj.withOptionalProperty "width" Width