Closed
Description
The example "Connect Data Gaps" in https://plotly.com/python/line-charts/#connect-data-gaps requires the assignment of the property "connectgaps" which is missing in the abstraction:
open Plotly.NET
let xs = [1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15]
let chart = Chart.Scatter(xs,
[10.; 20.; nan; 15.; 10.; 5.; 15.;nan; 20.; 10.; 10.; 15.; 25.; 20.; 10.],
StyleParam.Mode.Lines_Markers, Name="<b>No</b> Gaps")
|> GenericChart.mapTrace(fun t ->
t?connectgaps <- true // workaround
t)
[
chart;
Chart.Scatter(xs,
[5.; 15.; nan; 10.; 5.; 0.; 10.; nan; 15.; 5.; 5.; 10.; 20.; 15.; 5.],
StyleParam.Mode.Lines_Markers, Name="Gaps")
] |> Chart.Combine
Metadata
Metadata
Assignees
Labels
No labels