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 =
136136 Chart.Point(
137137 x, y,
138138 Name= " points" ,
139- Labels = labels,
139+ MultiText = labels,
140140 TextPosition= StyleParam.TextPosition.TopRight
141141 )
142142
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.
3636
3737open Plotly.NET
3838open Plotly.NET .LayoutObjects
39+ open Plotly.NET .TraceObjects
3940
4041/// Similar to numpy.arrange
4142let 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
You can’t perform that action at this time.
0 commit comments