File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ let pointsWithLabels =
136
136
Chart.Point(
137
137
x, y,
138
138
Name= " points" ,
139
- Labels = labels,
139
+ MultiText = labels,
140
140
TextPosition= StyleParam.TextPosition.TopRight
141
141
)
142
142
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ The original exapmle is made with python and can be found [here](https://plotly.
36
36
37
37
open Plotly.NET
38
38
open Plotly.NET .LayoutObjects
39
+ open Plotly.NET .TraceObjects
39
40
40
41
/// Similar to numpy.arrange
41
42
let nparange ( start : double ) ( stop : double ) ( step : double ) =
@@ -54,13 +55,15 @@ let scattersChart =
54
55
// Some plot must be visible here or the chart is empty at the beginning
55
56
let chartVisibility = if step = 0. then StyleParam.Visible.True else StyleParam.Visible.False;
56
57
let go =
57
- Chart2D. Chart.Scatter
58
+ Chart.Scatter
58
59
(
59
60
x= x, y= y,
60
61
mode= StyleParam.Mode.Lines,
61
62
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
+ )
64
67
)
65
68
|> Chart.withTraceName( Visible= chartVisibility)
66
69
go
You can’t perform that action at this time.
0 commit comments