Skip to content

Commit 4bc8a45

Browse files
committed
Improve C# interop
1 parent 5eeaad4 commit 4bc8a45

File tree

5 files changed

+769
-92
lines changed

5 files changed

+769
-92
lines changed

Diff for: src/FSharp.Plotly/CandelstickExtension.fs

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
open Trace
44
open System
5+
open System.Runtime.InteropServices
56

67
type Candle =
78
{
@@ -28,6 +29,7 @@ module CandelstickExtension =
2829

2930

3031
type TraceStyle with
32+
[<CompiledName("Candlestick")>]
3133
static member Candlestick
3234
(
3335
data : (#IConvertible*Candle) seq,
@@ -50,12 +52,13 @@ module CandelstickExtension =
5052
)
5153

5254
type Chart with
55+
[<CompiledName("Candelstick")>]
5356
static member Candelstick
5457
(
5558
data : (#IConvertible*Candle) seq,
56-
?increasing : Line,
57-
?decreasing : Line,
58-
?line : Line
59+
[<Optional;DefaultParameterValue(null)>] ?increasing : Line,
60+
[<Optional;DefaultParameterValue(null)>] ?decreasing : Line,
61+
[<Optional;DefaultParameterValue(null)>] ?line : Line
5962
) =
6063
Trace.initCandelstick(TraceStyle.Candlestick
6164
(

0 commit comments

Comments
 (0)