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
Starting with Plotly.NET 5.0.0, the multiple legends feature from plotl.js v2.22+ is supported.
143
143
144
+
However, plotly.js has a [regression bug starting from 2.24.3](https://github.com/plotly/plotly.js/issues/7023), which causes multiple legends to not display correctly
145
+
146
+
This means that the referenced plotly.js version has to be changed to <2.24.3 to use this feature. Note that features introduced in plotly.js/.NET after this version will not work on a chart using that reference.
147
+
Future versions of plotly.js will hopefully fix this issue.
148
+
144
149
Similarily to how multiple axes are handled, multiple legends are added by providing an additional `Id` argument when using the `Chart.withLegend` function:
145
150
146
151
To select which legend a trace should belong to, use `Chart.withLegendAnchor` with the corresponding `id` argument.
147
152
*)
148
153
154
+
149
155
letmulti_legend_chart=
150
156
[
151
157
Chart.Point(x, y)
@@ -175,12 +181,16 @@ let multi_legend_chart =
175
181
),
176
182
Id =2
177
183
)
184
+
// set lower plotly.js version to avoid regression bug
0 commit comments