Skip to content

Commit fd90b28

Browse files
committed
fix 2D docs
1 parent e4108d2 commit fd90b28

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/02_0_line-scatter-plots.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ let pointsWithLabels =
136136
Chart.Point(
137137
x,y,
138138
Name="points",
139-
Labels=labels,
139+
MultiText=labels,
140140
TextPosition=StyleParam.TextPosition.TopRight
141141
)
142142

docs/02_9_Sliders.fsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The original exapmle is made with python and can be found [here](https://plotly.
3636

3737
open Plotly.NET
3838
open Plotly.NET.LayoutObjects
39+
open Plotly.NET.TraceObjects
3940

4041
/// Similar to numpy.arrange
4142
let nparange (start: double) (stop:double) (step: double) =
@@ -54,13 +55,15 @@ let scattersChart =
5455
// Some plot must be visible here or the chart is empty at the beginning
5556
let chartVisibility = if step = 0. then StyleParam.Visible.True else StyleParam.Visible.False;
5657
let go =
57-
Chart2D.Chart.Scatter
58+
Chart.Scatter
5859
(
5960
x=x, y=y,
6061
mode=StyleParam.Mode.Lines,
6162
Name="v = " + string(step),
62-
Color=Color.fromHex("#00CED1"),
63-
Width=6.
63+
Marker = Marker.init(
64+
Color = Color.fromHex("#00CED1"),
65+
Size = 6
66+
)
6467
)
6568
|> Chart.withTraceName(Visible=chartVisibility)
6669
go

0 commit comments

Comments
 (0)