Skip to content

Commit 67378a3

Browse files
committed
plotlyjs v2.17: Introduce group attributes for scatter trace i.e. alignmentgroup, offsetgroup, scattermode and scattergap (plotly/plotly.js#6381)
1 parent c5f7108 commit 67378a3

File tree

5 files changed

+122
-8
lines changed

5 files changed

+122
-8
lines changed

Diff for: src/Plotly.NET/ChartAPI/Chart.fs

+6
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,8 @@ type Chart =
776776
/// <param name="NewShape">Controls the behavior of newly drawn shapes</param>
777777
/// <param name="ActiveShape">Sets the styling of the active shape</param>
778778
/// <param name="HideSources">Determines whether or not a text link citing the data source is placed at the bottom-right cored of the figure. Has only an effect only on graphs that have been generated via forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise).</param>
779+
/// <param name="ScatterGap">Sets the gap (in plot fraction) between scatter points of adjacent location coordinates. Defaults to `bargap`.</param>
780+
/// <param name="ScatterMode">Determines how scatter points at the same location coordinate are displayed on the graph. With "group", the scatter points are plotted next to one another centered around the shared location. With "overlay", the scatter points are plotted over one another, you might need to reduce "opacity" to see multiple scatter points.</param>
779781
/// <param name="BarGap">Sets the gap (in plot fraction) between bars of adjacent location coordinates.</param>
780782
/// <param name="BarGroupGap">Sets the gap (in plot fraction) between bars of adjacent location coordinates.</param>
781783
/// <param name="BarMode">Determines how bars at the same location coordinate are displayed on the graph. With "stack", the bars are stacked on top of one another With "relative", the bars are stacked on top of one another, with negative values below the axis, positive values above With "group", the bars are plotted next to one another centered around the shared location. With "overlay", the bars are plotted over one another, you might need to an "opacity" to see multiple bars.</param>
@@ -852,6 +854,8 @@ type Chart =
852854
[<Optional; DefaultParameterValue(null)>] ?NewShape: NewShape,
853855
[<Optional; DefaultParameterValue(null)>] ?ActiveShape: ActiveShape,
854856
[<Optional; DefaultParameterValue(null)>] ?HideSources: bool,
857+
[<Optional; DefaultParameterValue(null)>] ?ScatterGap: float,
858+
[<Optional; DefaultParameterValue(null)>] ?ScatterMode: StyleParam.ScatterMode,
855859
[<Optional; DefaultParameterValue(null)>] ?BarGap: float,
856860
[<Optional; DefaultParameterValue(null)>] ?BarGroupGap: float,
857861
[<Optional; DefaultParameterValue(null)>] ?BarMode: StyleParam.BarMode,
@@ -930,6 +934,8 @@ type Chart =
930934
?MinReducedWidth = MinReducedWidth,
931935
?ActiveShape = ActiveShape,
932936
?HideSources = HideSources,
937+
?ScatterGap = ScatterGap,
938+
?ScatterMode = ScatterMode,
933939
?BarGap = BarGap,
934940
?BarGroupGap = BarGroupGap,
935941
?BarMode = BarMode,

0 commit comments

Comments
 (0)