You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Plotly.NET/ChartAPI/Chart2D.fs
+33-6Lines changed: 33 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3062,6 +3062,7 @@ module Chart2D =
3062
3062
/// <paramname="Opacity">Sets the Opacity of the trace.</param>
3063
3063
/// <paramname="Text">Sets a text associated with each datum</param>
3064
3064
/// <paramname="MultiText">Sets individual text for each datum</param>
3065
+
/// <paramname="TextPosition">Sets the position of text associated with each datum</param>
3065
3066
/// <paramname="HistFunc">Specifies the binning function used for this histogram trace. If "count", the histogram values are computed by counting the number of values lying inside each bin. If "sum", "avg", "min", "max", the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively.</param>
3066
3067
/// <paramname="HistNorm">Specifies the type of normalization used for this histogram trace. If "", the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If "percent" / "probability", the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If "density", the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If "probability density", the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1).</param>
3067
3068
/// <paramname="AlignmentGroup">Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.</param>
@@ -3071,8 +3072,12 @@ module Chart2D =
3071
3072
/// <paramname="BinGroup">Set a group of histogram traces which will have compatible bin settings. Note that traces on the same subplot and with the same "orientation" under `barmode` "stack", "relative" and "group" are forced into the same bingroup, Using `bingroup`, traces under `barmode` "overlay" and on different axes (of the same axis type) can have compatible bin settings. Note that histogram and histogram2d" trace can share the same `bingroup`</param>
3072
3073
/// <paramname="XBins">Sets the binning across the x dimension</param>
3073
3074
/// <paramname="YBins">Sets the binning across the y dimension</param>
3074
-
/// <paramname="MarkerColor">Sets the color of the histogram's bars.</param>
3075
-
/// <paramname="Marker">Sets the marker for the histogram's bars (use this for more finegrained control than the other marker-associated arguments).</param>
3075
+
/// <paramname="MarkerColor">Sets the color of the bars</param>
3076
+
/// <paramname="MarkerColorScale">Sets the colorscale for the bars. To have an effect, `MarkerColor` must map to color scale values.</param>
3077
+
/// <paramname="MarkerOutline">Sets the color of the bar outlines</param>
3078
+
/// <paramname="MarkerPatternShape">Sets a pattern shape for all bars</param>
3079
+
/// <paramname="MultiMarkerPatternShape">Sets an individual pattern shape for each bar</param>
3080
+
/// <paramname="MarkerPattern">Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments).</param>
3076
3081
/// <paramname="Line">Sets the outline of the histogram's bars.</param>
3077
3082
/// <paramname="XError">Sets the x error of this trace.</param>
3078
3083
/// <paramname="YError">Sets the y error of this trace.</param>
Copy file name to clipboardExpand all lines: src/Plotly.NET/Traces/Trace2D.fs
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -873,6 +873,9 @@ type Trace2DStyle() =
873
873
/// <paramname="Y">Sets the sample data to be binned on the y axis.</param>
874
874
/// <paramname="Text">Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.</param>
875
875
/// <paramname="MultiText">Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.</param>
876
+
/// <paramname="TextPosition">Sets the positions of the `text` elements with respects to the (x,y) coordinates.</param>
877
+
/// <paramname="TextTemplate">Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.</param>
878
+
/// <paramname="MultiTextTemplate">Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.</param>
876
879
/// <paramname="HoverText">Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a "text" flag.</param>
877
880
/// <paramname="MultiHoverText">Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a "text" flag.</param>
878
881
/// <paramname="HoverInfo">Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.</param>
@@ -897,14 +900,21 @@ type Trace2DStyle() =
897
900
/// <paramname="XBins">Sets the binning across the x dimension</param>
898
901
/// <paramname="YBins">Sets the binning across the y dimension</param>
899
902
/// <paramname="Marker">Sets the marker of this trace.</param>
903
+
/// <paramname="TextAngle">Sets the angle of the tick labels with respect to the bar. For example, a `tickangle` of -90 draws the tick labels vertically. With "auto" the texts may automatically be rotated to fit with the maximum size in bars.</param>
904
+
/// <paramname="TextFont">Sets the font used for `text`.</param>
900
905
/// <paramname="Line">Sets the line of this trace.</param>
901
906
/// <paramname="XError">Sets the x error of this trace.</param>
902
907
/// <paramname="YError">Sets the y error of this trace.</param>
903
908
/// <paramname="SelectedPoints">Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the `selected` and `unselected` styles have no effect.</param>
904
909
/// <paramname="Selected">Sets the style of selected points of this trace.</param>
905
910
/// <paramname="Unselected">Sets the style of unselected points of this trace.</param>
911
+
/// <paramname="ClipOnAxis">Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to "below traces".</param>
912
+
/// <paramname="Constraintext">Constrain the size of text inside or outside a bar to be no larger than the bar itself.</param>
906
913
/// <paramname="Cumulative">Sets wether and how the cumulative distribution is displayed</param>
907
914
/// <paramname="HoverLabel">Sets the style of the hoverlabels of this trace.</param>
915
+
/// <paramname="InsideTextAnchor">Determines if texts are kept at center or start/end points in `textposition` "inside" mode.</param>
916
+
/// <paramname="InsideTextFont">Sets the font used for `text` lying inside the bar.</param>
917
+
/// <paramname="OutsideTextFont">Sets the font used for `text` lying outside the bar.</param>
908
918
/// <paramname="XCalendar">Sets the calendar system to use with `x` date data.</param>
909
919
/// <paramname="YCalendar">Sets the calendar system to use with `y` date data.</param>
910
920
/// <paramname="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param>
Copy file name to clipboardExpand all lines: tests/Plotly.NET.Tests/HtmlCodegen/DistributionCharts.fs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ let ``Histogram charts`` =
22
22
// the string is too big to be here fully.
23
23
[
24
24
"var data = [{\"type\":\"histogram\",\"x\":[0.33836984091362443,0.2844184475412678,0.2629626417825756,0.6253758443637638,0.46346185284827923,0.9283738280312968,0.1463105539541275,0.9505998873853124,0.5961332552116985"
0 commit comments