@@ -2447,30 +2447,79 @@ module Chart2D =
24472447 )
24482448 |> GenericChart.ofTraceObject useDefaults
24492449
2450- /// Shows a graphical representation of data where the individual values contained in a matrix are represented as colors.
2450+ /// Shows a graphical representation of a 3-dimensional surface by plotting constant z slices, called contours, on a 2-dimensional format
24512451 [<Extension>]
2452- static member Contour ( data : seq < #seq < #IConvertible >>,
2453- [<Optional; DefaultParameterValue( null ) >] ? X ,
2454- [<Optional; DefaultParameterValue( null ) >] ? Y ,
2455- [<Optional; DefaultParameterValue( null ) >] ? Name ,
2456- [<Optional; DefaultParameterValue( null ) >] ? ShowLegend ,
2457- [<Optional; DefaultParameterValue( null ) >] ? Opacity ,
2458- [<Optional; DefaultParameterValue( null ) >] ? Colorscale ,
2459- [<Optional; DefaultParameterValue( null ) >] ? Showscale ,
2460- [<Optional; DefaultParameterValue( null ) >] ? zSmooth ,
2461- [<Optional; DefaultParameterValue( null ) >] ? ColorBar ,
2462- [<Optional; DefaultParameterValue( true ) >] ? UseDefaults : bool
2452+ static member Contour
2453+ (
2454+ zData : seq < #seq < #IConvertible >>,
2455+ [<Optional; DefaultParameterValue( null ) >] ? Name : string ,
2456+ [<Optional; DefaultParameterValue( null ) >] ? ShowLegend : bool ,
2457+ [<Optional; DefaultParameterValue( null ) >] ? Opacity : float ,
2458+ [<Optional; DefaultParameterValue( null ) >] ? X : seq < #IConvertible >,
2459+ [<Optional; DefaultParameterValue( null ) >] ? Y : seq < #IConvertible >,
2460+ [<Optional; DefaultParameterValue( null ) >] ? Text : #IConvertible ,
2461+ [<Optional; DefaultParameterValue( null ) >] ? MultiText : seq < #IConvertible >,
2462+ [<Optional; DefaultParameterValue( null ) >] ? ColorBar : ColorBar ,
2463+ [<Optional; DefaultParameterValue( null ) >] ? ColorScale : StyleParam.Colorscale ,
2464+ [<Optional; DefaultParameterValue( null ) >] ? ShowScale : bool ,
2465+ [<Optional; DefaultParameterValue( null ) >] ? ReverseScale : bool ,
2466+ [<Optional; DefaultParameterValue( null ) >] ? Transpose : bool ,
2467+ [<Optional; DefaultParameterValue( null ) >] ? LineColor : Color ,
2468+ [<Optional; DefaultParameterValue( null ) >] ? LineDash : StyleParam.DrawingStyle ,
2469+ [<Optional; DefaultParameterValue( null ) >] ? Line : Line ,
2470+ [<Optional; DefaultParameterValue( null ) >] ? ContoursColoring : StyleParam.ContourColoring ,
2471+ [<Optional; DefaultParameterValue( null ) >] ? ContoursOperation : StyleParam.ConstraintOperation ,
2472+ [<Optional; DefaultParameterValue( null ) >] ? ContoursType : StyleParam.ContourType ,
2473+ [<Optional; DefaultParameterValue( null ) >] ? ShowContourLabels : bool ,
2474+ [<Optional; DefaultParameterValue( null ) >] ? ContourLabelFont : Font ,
2475+ [<Optional; DefaultParameterValue( null ) >] ? Contours : Contours ,
2476+ [<Optional; DefaultParameterValue( null ) >] ? FillColor : Color ,
2477+ [<Optional; DefaultParameterValue( null ) >] ? NContours : int ,
2478+ [<Optional; DefaultParameterValue( true ) >] ? UseDefaults : bool
24632479 ) =
24642480
24652481 let useDefaults = defaultArg UseDefaults true
24662482
2483+ let contours =
2484+ Contours
2485+ |> Option.defaultValue ( TraceObjects.Contours.init())
2486+ |> TraceObjects.Contours.style(
2487+ ?Coloring = ContoursColoring ,
2488+ ?Operation = ContoursOperation,
2489+ ?Type = ContoursType ,
2490+ ?ShowLabels = ShowContourLabels,
2491+ ?LabelFont = ContourLabelFont
2492+ )
2493+
2494+ let line =
2495+ Line
2496+ |> Option.defaultValue ( Plotly.NET.Line.init())
2497+ |> Plotly.NET.Line.style(
2498+ ?Color = LineColor,
2499+ ?Dash = LineDash
2500+ )
2501+
24672502 Trace2D.initContour (
24682503 Trace2DStyle.Contour(
2469- Z= data,? X= X, ?Y= Y,
2470- ?Colorscale= Colorscale,? Showscale= Showscale,? zSmooth= zSmooth,? ColorBar= ColorBar
2504+ Z = zData ,
2505+ ?Name = Name ,
2506+ ?ShowLegend = ShowLegend ,
2507+ ?Opacity = Opacity ,
2508+ ?X = X ,
2509+ ?Y = Y ,
2510+ ?Text = Text ,
2511+ ?MultiText = MultiText ,
2512+ ?ColorBar = ColorBar ,
2513+ ?ColorScale = ColorScale ,
2514+ ?ShowScale = ShowScale ,
2515+ ?ReverseScale = ReverseScale,
2516+ ?Transpose = Transpose ,
2517+ ?FillColor = FillColor ,
2518+ ?NContours = NContours ,
2519+ Contours = contours ,
2520+ Line = line
24712521 )
24722522 )
2473- |> TraceStyle.TraceInfo( ?Name= Name,? ShowLegend= ShowLegend,? Opacity= Opacity)
24742523 |> GenericChart.ofTraceObject useDefaults
24752524
24762525 /// Creates an OHLC (open-high-low-close) chart. OHLC charts are typically used to illustrate movements in the price of a financial instrument over time.
0 commit comments