File tree Expand file tree Collapse file tree 2 files changed +55
-2
lines changed Expand file tree Collapse file tree 2 files changed +55
-2
lines changed Original file line number Diff line number Diff line change @@ -466,13 +466,17 @@ type Config() =
466
466
? StaticPlot : bool ,
467
467
? Autosizable : bool ,
468
468
? Responsive : bool ,
469
+ ? ShowEditInChartStudio : bool ,
469
470
? ToImageButtonOptions : ToImageButtonOptions
470
471
) =
471
472
Config()
472
473
|> Config.style
473
474
(
475
+ ?StaticPlot = StaticPlot,
476
+ ?Autosizable = Autosizable,
477
+ ?Responsive = Responsive,
474
478
?ToImageButtonOptions = ToImageButtonOptions,
475
- ?StaticPlot = StaticPlot
479
+ ?ShowEditInChartStudio = ShowEditInChartStudio
476
480
)
477
481
478
482
@@ -484,12 +488,14 @@ type Config() =
484
488
? StaticPlot : bool ,
485
489
? Autosizable : bool ,
486
490
? Responsive : bool ,
487
- ? ToImageButtonOptions : ToImageButtonOptions
491
+ ? ToImageButtonOptions : ToImageButtonOptions ,
492
+ ? ShowEditInChartStudio : bool
488
493
489
494
) =
490
495
fun ( config : Config ) ->
491
496
StaticPlot |> DynObj.setValueOpt config " staticPlot"
492
497
Autosizable |> DynObj.setValueOpt config " autosizable"
493
498
Responsive |> DynObj.setValueOpt config " responsive"
494
499
ToImageButtonOptions |> DynObj.setValueOpt config " toImageButtonOptions"
500
+ ShowEditInChartStudio |> DynObj.setValueOpt config " showEditInChartStudio"
495
501
config
Original file line number Diff line number Diff line change
1
+ //#I "./bin/Debug"
2
+ //#r "./bin/Debug/netstandard2.0/Newtonsoft.Json.dll"
3
+ #r @" ..\..\bin\FSharp.Plotly\netstandard2.0\FSharp.Plotly.dll"
4
+ #r " netstandard"
5
+
6
+ open FSharp.Plotly
7
+
8
+
9
+ let x = seq [ 1. ; 2. ; 3. ; 4. ; 5. ; 6. ; 7. ; 8. ; 9. ; 10. ; ] // 9.; 8.; 7.; 6.; 5.; 4.; 3.; 2.; 1.]
10
+ let y = seq [ 5. ; 2.5 ; 5. ; 7.5 ; 5. ; 2.5 ; 7.5 ; 4.5 ; 5.5 ; 5. ]
11
+ let y ' = seq [ 2. ; 1.5 ; 5. ; 1.5 ; 3. ; 2.5 ; 2.5 ; 1.5 ; 3.5 ; 1. ]
12
+
13
+ Chart.Spline( x, y', Name= " spline" )
14
+ |> Chart.withConfig
15
+ ( Config.init
16
+ (
17
+ Autosizable = true ,
18
+ ShowEditInChartStudio = true ,
19
+ ToImageButtonOptions =
20
+ ToImageButtonOptions.init
21
+ (
22
+ Format = StyleParam.ImageFormat.SVG,
23
+ Filename = " SOOOOS"
24
+ )
25
+ )
26
+ )
27
+ |> Chart.Show
28
+ //|> Chart.withYError(Options.Error(Array=[1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ]))
29
+
30
+
31
+ //|> Chart.withLineStyle(Width=2,Dash=StyleParam.DrawingStyle.Dot)
32
+ //|> Chart.withLineOption(Options.Line(Width=10))
33
+ //|> Chart.withX_AxisStyle("x axis title")
34
+ //|> Chart.withY_AxisStyle("y axis title")
35
+ //|> layoutJson
36
+ //|> GenericChart.toChartHtmlWithSize 500 500
37
+
38
+ //|> Chart.ShowAsImage StyleParam.ImageFormat.SVG
39
+ |> Chart.ShowAsImage StyleParam.ImageFormat.SVG
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
You can’t perform that action at this time.
0 commit comments