|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Text; |
| 5 | +using System.Threading.Tasks; |
| 6 | +using Plotly.NET; |
| 7 | +using Plotly.NET.LayoutObjects; |
| 8 | +using Plotly.NET.TraceObjects; |
| 9 | +namespace Plotly.NET.CSharp.ChartAPI |
| 10 | +{ |
| 11 | + public static class Test |
| 12 | + { |
| 13 | + public static int Foo<T>(IEnumerable<T> notopt, IEnumerable<T>? opt1) => |
| 14 | + Plotly.NET.Chart2D.Chart.Foo<T, T>( |
| 15 | + notopt: notopt, |
| 16 | + opt1: opt1 |
| 17 | + ); |
| 18 | + } |
| 19 | + public static class Chart2D |
| 20 | + { |
| 21 | + /// <summary> |
| 22 | + /// Creates a Scatter plot. |
| 23 | + /// |
| 24 | + /// Scatter charts are the basis of Point, Line, and Bubble Charts, and can be customized as such. We also provide abstractions for those Chart.Line, Chart.Point, Chart.Bubble |
| 25 | + /// </summary> |
| 26 | + /// <param name="x">Sets the x coordinates of the plotted data.</param> |
| 27 | + /// <param name="y">Sets the y coordinates of the plotted data.</param> |
| 28 | + /// <param name="mode">Determines the drawing mode for this scatter trace.</param> |
| 29 | + /// <param name="Name">Sets the trace name. The trace name appear as the legend item and on hover</param> |
| 30 | + /// <param name="ShowLegend">Determines whether or not an item corresponding to this trace is shown in the legend.</param> |
| 31 | + /// <param name="Opacity">Sets the opactity of the trace</param> |
| 32 | + /// <param name="MultiOpacity">Sets the opactity of individual datum markers</param> |
| 33 | + /// <param name="Text">Sets a text associated with each datum</param> |
| 34 | + /// <param name="MultiText">Sets individual text for each datum</param> |
| 35 | + /// <param name="TextPosition">Sets the position of text associated with each datum</param> |
| 36 | + /// <param name="MultiTextPosition">Sets the position of text associated with individual datum</param> |
| 37 | + /// <param name="MarkerColor">Sets the color of the marker</param> |
| 38 | + /// <param name="MarkerColorScale">Sets the colorscale of the marker</param> |
| 39 | + /// <param name="MarkerOutline">Sets the outline of the marker</param> |
| 40 | + /// <param name="MarkerSymbol">Sets the marker symbol for each datum</param> |
| 41 | + /// <param name="MultiMarkerSymbol">Sets the marker symbol for each individual datum</param> |
| 42 | + /// <param name="Marker">Sets the marker (use this for more finegrained control than the other marker-associated arguments)</param> |
| 43 | + /// <param name="LineColor">Sets the color of the line</param> |
| 44 | + /// <param name="LineColorScale">Sets the colorscale of the line</param> |
| 45 | + /// <param name="LineWidth">Sets the width of the line</param> |
| 46 | + /// <param name="LineDash">sets the drawing style of the line</param> |
| 47 | + /// <param name="Line">Sets the line (use this for more finegrained control than the other line-associated arguments)</param> |
| 48 | + /// <param name="StackGroup">Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order</param> |
| 49 | + /// <param name="Orientation">Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used.</param> |
| 50 | + /// <param name="GroupNorm">Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used</param> |
| 51 | + /// <param name="Fill">Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.</param> |
| 52 | + /// <param name="FillColor">ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.</param> |
| 53 | + /// <param name="UseWebGL">If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once.</param> |
| 54 | + /// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param> |
| 55 | + public static GenericChart.GenericChart Scatter( |
| 56 | + IEnumerable<IConvertible> x, |
| 57 | + IEnumerable<IConvertible> y, |
| 58 | + StyleParam.Mode mode, |
| 59 | + string? Name, |
| 60 | + bool? ShowLegend, |
| 61 | + float? Opacity, |
| 62 | + IEnumerable<float>? MultiOpacity, |
| 63 | + IConvertible? Text, |
| 64 | + IEnumerable<IConvertible>? MultiText, |
| 65 | + StyleParam.TextPosition? TextPosition, |
| 66 | + IEnumerable<StyleParam.TextPosition>? MultiTextPosition, |
| 67 | + Color? MarkerColor, |
| 68 | + StyleParam.Colorscale? MarkerColorScale, |
| 69 | + Line? MarkerOutline, |
| 70 | + StyleParam.MarkerSymbol? MarkerSymbol, |
| 71 | + IEnumerable<StyleParam.MarkerSymbol>? MultiMarkerSymbol, |
| 72 | + Marker? Marker, |
| 73 | + Color? LineColor, |
| 74 | + StyleParam.Colorscale? LineColorScale, |
| 75 | + float? LineWidth, |
| 76 | + StyleParam.DrawingStyle? LineDash, |
| 77 | + Line? Line, |
| 78 | + string StackGroup, |
| 79 | + StyleParam.Orientation? Orientation, |
| 80 | + StyleParam.GroupNorm? GroupNorm, |
| 81 | + StyleParam.Fill? Fill, |
| 82 | + Color? FillColor, |
| 83 | + bool? UseWebGL, |
| 84 | + bool? UseDefaults |
| 85 | + ) => |
| 86 | + Plotly.NET.Chart2D.Chart.Scatter<IConvertible,IConvertible,IConvertible>( |
| 87 | + x, y, mode, |
| 88 | + Name: Name, |
| 89 | + ShowLegend: ShowLegend, |
| 90 | + Opacity: Opacity, |
| 91 | + MultiOpacity: MultiOpacity, |
| 92 | + Text: Text, |
| 93 | + MultiText: MultiText, |
| 94 | + TextPosition: TextPosition, |
| 95 | + MultiTextPosition: MultiTextPosition, |
| 96 | + MarkerColor: MarkerColor, |
| 97 | + MarkerColorScale: MarkerColorScale, |
| 98 | + MarkerOutline: MarkerOutline, |
| 99 | + MarkerSymbol: MarkerSymbol, |
| 100 | + MultiMarkerSymbol: MultiMarkerSymbol, |
| 101 | + Marker: Marker, |
| 102 | + LineColor: LineColor, |
| 103 | + LineColorScale: LineColorScale, |
| 104 | + LineWidth: LineWidth, |
| 105 | + LineDash: LineDash, |
| 106 | + Line: Line, |
| 107 | + StackGroup: StackGroup, |
| 108 | + Orientation: Orientation, |
| 109 | + GroupNorm: GroupNorm, |
| 110 | + Fill: Fill, |
| 111 | + FillColor: FillColor, |
| 112 | + UseWebGL: UseWebGL, |
| 113 | + UseDefaults: UseDefaults |
| 114 | + ); |
| 115 | + }; |
| 116 | +} |
0 commit comments