@@ -32,14 +32,28 @@ type IndicatorSymbol() =
32
32
type IndicatorDelta () =
33
33
inherit DynamicObj()
34
34
35
+ /// <summary>
36
+ /// Returns a new IndicatorDelta object with the given styles
37
+ /// </summary>
38
+ /// <param name="Decreasing">Sets the style of decreasing deltas.</param>
39
+ /// <param name="Font">Set the font used to display the delta</param>
40
+ /// <param name="Increasing">Sets the style of increasing deltas.</param>
41
+ /// <param name="Position">Sets the position of delta with respect to the number.</param>
42
+ /// <param name="Prefix">Sets a prefix appearing before the delta.</param>
43
+ /// <param name="Reference">Sets the reference value to compute the delta. By default, it is set to the current value.</param>
44
+ /// <param name="Relative">Show relative change</param>
45
+ /// <param name="Suffix">Sets a suffix appearing next to the delta.</param>
46
+ /// <param name="ValueFormat">Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.</param>
35
47
static member init
36
48
(
37
49
[<Optional; DefaultParameterValue( null ) >] ? Decreasing : IndicatorSymbol ,
38
50
[<Optional; DefaultParameterValue( null ) >] ? Font : Font ,
39
51
[<Optional; DefaultParameterValue( null ) >] ? Increasing : IndicatorSymbol ,
40
52
[<Optional; DefaultParameterValue( null ) >] ? Position : StyleParam.IndicatorDeltaPosition ,
53
+ [<Optional; DefaultParameterValue( null ) >] ? Prefix : string ,
41
54
[<Optional; DefaultParameterValue( null ) >] ? Reference : #IConvertible ,
42
55
[<Optional; DefaultParameterValue( null ) >] ? Relative : bool ,
56
+ [<Optional; DefaultParameterValue( null ) >] ? Suffix : string ,
43
57
[<Optional; DefaultParameterValue( null ) >] ? ValueFormat : string
44
58
) =
45
59
IndicatorDelta()
@@ -48,19 +62,35 @@ type IndicatorDelta() =
48
62
?Font = Font,
49
63
?Increasing = Increasing,
50
64
?Position = Position,
65
+ ?Prefix = Prefix,
51
66
?Reference = Reference,
52
67
?Relative = Relative,
68
+ ?Suffix = Suffix,
53
69
?ValueFormat = ValueFormat
54
70
)
55
71
72
+ /// <summary>
73
+ /// Returns a function that applies the given styles to an IndicatorDelta object
74
+ /// </summary>
75
+ /// <param name="Decreasing">Sets the style of decreasing deltas.</param>
76
+ /// <param name="Font">Set the font used to display the delta</param>
77
+ /// <param name="Increasing">Sets the style of increasing deltas.</param>
78
+ /// <param name="Position">Sets the position of delta with respect to the number.</param>
79
+ /// <param name="Prefix">Sets a prefix appearing before the delta.</param>
80
+ /// <param name="Reference">Sets the reference value to compute the delta. By default, it is set to the current value.</param>
81
+ /// <param name="Relative">Show relative change</param>
82
+ /// <param name="Suffix">Sets a suffix appearing next to the delta.</param>
83
+ /// <param name="ValueFormat">Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.</param>
56
84
static member style
57
85
(
58
86
[<Optional; DefaultParameterValue( null ) >] ? Decreasing : IndicatorSymbol ,
59
87
[<Optional; DefaultParameterValue( null ) >] ? Font : Font ,
60
88
[<Optional; DefaultParameterValue( null ) >] ? Increasing : IndicatorSymbol ,
61
89
[<Optional; DefaultParameterValue( null ) >] ? Position : StyleParam.IndicatorDeltaPosition ,
90
+ [<Optional; DefaultParameterValue( null ) >] ? Prefix : string ,
62
91
[<Optional; DefaultParameterValue( null ) >] ? Reference : #IConvertible ,
63
92
[<Optional; DefaultParameterValue( null ) >] ? Relative : bool ,
93
+ [<Optional; DefaultParameterValue( null ) >] ? Suffix : string ,
64
94
[<Optional; DefaultParameterValue( null ) >] ? ValueFormat : string
65
95
) =
66
96
( fun ( indicatorDelta : IndicatorDelta ) ->
@@ -69,8 +99,10 @@ type IndicatorDelta() =
69
99
Font |> DynObj.setValueOpt indicatorDelta " font"
70
100
Increasing |> DynObj.setValueOpt indicatorDelta " increasing"
71
101
Position |> DynObj.setValueOptBy indicatorDelta " position" StyleParam.IndicatorDeltaPosition.convert
102
+ Prefix |> DynObj.setValueOpt indicatorDelta " prefix"
72
103
Reference |> DynObj.setValueOpt indicatorDelta " reference"
73
104
Relative |> DynObj.setValueOpt indicatorDelta " relative"
105
+ Suffix |> DynObj.setValueOpt indicatorDelta " suffix"
74
106
ValueFormat |> DynObj.setValueOpt indicatorDelta " valueformat"
75
107
76
108
indicatorDelta)
0 commit comments