Skip to content

Commit 04e3813

Browse files
committed
fix all xml doc warnings
1 parent 334b400 commit 04e3813

File tree

7 files changed

+49
-16
lines changed

7 files changed

+49
-16
lines changed

src/Plotly.NET.CSharp/ChartAPI/Chart.cs

+12-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,22 @@
1010

1111
namespace Plotly.NET.CSharp
1212
{
13+
/// <summary>
14+
///
15+
/// </summary>
1316
public static partial class Chart
1417
{
18+
/// <summary>
19+
/// Create a combined chart with the given charts merged
20+
/// </summary>
21+
/// <param name="gCharts">the charts to combine</param>
22+
/// <returns></returns>
1523
public static GenericChart Combine(IEnumerable<GenericChart> gCharts) => Plotly.NET.Chart.Combine(gCharts);
1624

17-
25+
/// <summary>
26+
/// Creates a chart that is completely invisible when rendered. The Chart object however is NOT empty! Combining this chart with other charts will have unforseen consequences (it has for example invisible axes that can override other axes if used in Chart.Combine)
27+
/// </summary>
28+
/// <returns></returns>
1829
public static GenericChart Invisible() => Plotly.NET.Chart.Invisible();
1930

2031
/// <summary>

src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ public static partial class Chart
1818
///
1919
/// 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
2020
/// </summary>
21-
/// <param name="X">Sets the x coordinates of the plotted data.</param>
22-
/// <param name="MultiX">Sets the x coordinates of the plotted data. Use two inner arrays here to plot multicategorial data</param>
23-
/// <param name="Y">Sets the y coordinates of the plotted data.</param>
24-
/// <param name="MultiY">Sets the x coordinates of the plotted data. Use two inner arrays here to plot multicategorial data</param>
25-
/// <param name="Mode">Determines the drawing mode for this scatter trace.</param>
21+
/// <param name="x">Sets the x coordinates of the plotted data.</param>
22+
/// <param name="y">Sets the y coordinates of the plotted data.</param>
23+
/// <param name="mode">Determines the drawing mode for this scatter trace.</param>
2624
/// <param name="Name">Sets the trace name. The trace name appear as the legend item and on hover</param>
2725
/// <param name="ShowLegend">Determines whether or not an item corresponding to this trace is shown in the legend.</param>
2826
/// <param name="Opacity">Sets the opactity of the trace</param>

src/Plotly.NET/ChartAPI/Chart.fs

+17-2
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,10 @@ type Chart =
664664
/// <summary>
665665
/// Applies the given styles to the ColorBar object(s) of the chart's trace(s). Overwrites attributes with the same name that are already set.
666666
/// </summary>
667+
/// <param name="TitleText">Sets the colorbar's title</param>
668+
/// <param name="TitleFont">Sets the title font.</param>
669+
/// <param name="TitleStandoff">Sets the standoff distance (in px) between the axis labels and the title text The default value is a function of the axis tick labels, the title `font.size` and the axis `linewidth`. Note that the axis title position is always constrained within the margins, so the actual standoff distance is always less than the set or default value. By setting `standoff` and turning on `automargin`, plotly.js will push the margins to fit the axis title at given standoff distance.</param>
670+
/// <param name="Title">Sets the Title object (use this for more finegrained control than the other title-associated arguments)</param>
667671
/// <param name="BGColor">Sets the color of padded area.</param>
668672
/// <param name="BorderColor">Sets the axis line color.</param>
669673
/// <param name="BorderWidth">Sets the width (in px) or the border enclosing this color bar.</param>
@@ -700,7 +704,6 @@ type Chart =
700704
/// <param name="TickText">Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`.</param>
701705
/// <param name="TickVals">Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`.</param>
702706
/// <param name="TickWidth">Sets the tick width (in px).</param>
703-
/// <param name="Title">Sets the ColorBar title.</param>
704707
/// <param name="X">Sets the x position of the color bar (in plot fraction).</param>
705708
/// <param name="XAnchor">Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar.</param>
706709
/// <param name="XPad">Sets the amount of padding (in px) along the x direction.</param>
@@ -3690,12 +3693,20 @@ type Chart =
36903693
/// <summary>
36913694
/// Applies the given styles to the chart's DisplayOptions object. Overwrites attributes with the same name that are already set.
36923695
/// </summary>
3696+
/// <param name="DocumentTitle">The title metadata for the document</param>
3697+
/// <param name="DocumentCharset">The document charset</param>
3698+
/// <param name="DocumentDescription">The description metadata for the document</param>
3699+
/// <param name="DocumentFavicon">base64 encoded favicon image</param>
36933700
/// <param name="AdditionalHeadTags">Additional tags that will be included in the document's head </param>
3694-
/// <param name="Description">HTML tags that appear below the chart in HTML docs</param>
3701+
/// <param name="ChartDescription">HTML tags that appear below the chart in HTML docs</param>
36953702
/// <param name="PlotlyJSReference">Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline</param>
36963703
[<CompiledName("WithDisplayOptionsStyle")>]
36973704
static member withDisplayOptionsStyle
36983705
(
3706+
?DocumentTitle: string,
3707+
?DocumentCharset: string,
3708+
?DocumentDescription: string,
3709+
?DocumentFavicon: XmlNode,
36993710
?AdditionalHeadTags: XmlNode list,
37003711
?ChartDescription: XmlNode list,
37013712
?PlotlyJSReference: PlotlyJSReference
@@ -3704,6 +3715,10 @@ type Chart =
37043715

37053716
let displayOpts' =
37063717
DisplayOptions.init (
3718+
?DocumentTitle = DocumentTitle,
3719+
?DocumentCharset = DocumentCharset,
3720+
?DocumentDescription = DocumentDescription,
3721+
?DocumentFavicon = DocumentFavicon,
37073722
?AdditionalHeadTags = AdditionalHeadTags,
37083723
?ChartDescription = ChartDescription,
37093724
?PlotlyJSReference = PlotlyJSReference

src/Plotly.NET/ChartAPI/Chart2D.fs

+4-5
Original file line numberDiff line numberDiff line change
@@ -4398,7 +4398,7 @@ module Chart2D =
43984398
/// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "&lt;" and "&lt;=" keep regions less than `value` "&gt;" and "&gt;=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param>
43994399
/// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param>
44004400
/// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param>
4401-
/// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
4401+
/// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
44024402
/// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param>
44034403
/// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param>
44044404
/// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param>
@@ -4545,15 +4545,14 @@ module Chart2D =
45454545
/// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "&lt;" and "&lt;=" keep regions less than `value` "&gt;" and "&gt;=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param>
45464546
/// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param>
45474547
/// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param>
4548-
/// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
4548+
/// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
45494549
/// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param>
45504550
/// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param>
45514551
/// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param>
45524552
/// <param name="ColorBar">Sets the styles of the colorbar for this trace.</param>
45534553
/// <param name="ColorScale">Sets the colorscale for this trace.</param>
45544554
/// <param name="ShowScale">Whether or not to show the colorscale/colorbar</param>
45554555
/// <param name="ReverseScale">Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color.</param>
4556-
/// <param name="Contours">Sets the style of the contours</param>
45574556
/// <param name="NContours">Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing.</param>
45584557
/// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param>
45594558
[<Extension>]
@@ -5123,7 +5122,7 @@ module Chart2D =
51235122
/// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "&lt;" and "&lt;=" keep regions less than `value` "&gt;" and "&gt;=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param>
51245123
/// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param>
51255124
/// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param>
5126-
/// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
5125+
/// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
51275126
/// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param>
51285127
/// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param>
51295128
/// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param>
@@ -5827,7 +5826,7 @@ module Chart2D =
58275826
/// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "&lt;" and "&lt;=" keep regions less than `value` "&gt;" and "&gt;=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param>
58285827
/// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param>
58295828
/// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param>
5830-
/// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
5829+
/// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param>
58315830
/// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param>
58325831
/// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param>
58335832
/// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param>

src/Plotly.NET/ChartAPI/GenericChart.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ type GenericChart =
534534
/// If false, empty objects are used.
535535
/// </summary>
536536
/// <param name="useDefaults">wether or not to set default objects for Layout, Config and DisplayOptions</param>
537-
/// <param name="traces">the input Trace collection</param>
537+
/// <param name="trace">the input Trace</param>
538538
static member ofTraceObject (useDefaults: bool) (trace: Trace) = GenericChart.ofTraceObjects useDefaults (Seq.singleton trace)
539539

540540
/// <summary>

src/Plotly.NET/CommonAbstractions/ColorBar.fs

+2
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,11 @@ type ColorBar() =
200200
/// <param name="X">Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.</param>
201201
/// <param name="XAnchor">'Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center*, or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*.</param>
202202
/// <param name="XPad">Sets the amount of padding (in px) along the x direction.</param>
203+
/// <param name="XRef">Sets the container `x` refers to. "container" spans the entire `width` of the plot. "paper" refers to the width of the plotting area only.</param>
203204
/// <param name="Y">Sets the y position of the color bar (in plot fraction).Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.'</param>
204205
/// <param name="YAnchor">'Sets this color bar\'s vertical position anchor. This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*.'</param>
205206
/// <param name="YPad">Sets the amount of padding (in px) along the y direction.</param>
207+
/// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param>
206208
static member style
207209
(
208210
?BGColor: Color,

src/Plotly.NET/DisplayOptions/DisplayOptions.fs

+10-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ type DisplayOptions() =
2222
/// <summary>
2323
/// Returns a new DisplayOptions object with the given styles
2424
/// </summary>
25+
/// <param name="DocumentTitle">The title metadata for the document</param>
26+
/// <param name="DocumentCharset">The document charset</param>
27+
/// <param name="DocumentDescription">The description metadata for the document</param>
28+
/// <param name="DocumentFavicon">base64 encoded favicon image</param>
2529
/// <param name="AdditionalHeadTags">Additional tags that will be included in the document's head </param>
26-
/// <param name="Description">HTML tags that appear below the chart in HTML docs</param>
30+
/// <param name="ChartDescription">HTML tags that appear below the chart in HTML docs</param>
2731
/// <param name="PlotlyJSReference">Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline</param>
2832
static member init
2933
(
@@ -49,8 +53,12 @@ type DisplayOptions() =
4953
/// <summary>
5054
/// Returns a function sthat applies the given styles to a DisplayOptions object
5155
/// </summary>
56+
/// <param name="DocumentTitle">The title metadata for the document</param>
57+
/// <param name="DocumentCharset">The document charset</param>
58+
/// <param name="DocumentDescription">The description metadata for the document</param>
59+
/// <param name="DocumentFavicon">base64 encoded favicon image</param>
5260
/// <param name="AdditionalHeadTags">Additional tags that will be included in the document's head </param>
53-
/// <param name="Description">HTML tags that appear below the chart in HTML docs</param>
61+
/// <param name="ChartDescription">HTML tags that appear below the chart in HTML docs</param>
5462
/// <param name="PlotlyJSReference">Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline</param>
5563
static member style
5664
(

0 commit comments

Comments
 (0)