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
Copy file name to clipboardExpand all lines: tests/ConsoleApps/FSharpConsole/Program.fs
+1-17Lines changed: 1 addition & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -11,22 +11,6 @@ open Newtonsoft.Json
11
11
12
12
[<EntryPoint>]
13
13
letmain argv =
14
-
Chart.Point(
15
-
[(0,10);(10,10)],
16
-
UseDefaults =false
17
-
)
18
-
|> Chart.withShape(
19
-
Shape.init(
20
-
X0 =0,
21
-
X1 =10,
22
-
Y0 =10,
23
-
Y1 =10,
24
-
ShapeType = StyleParam.ShapeType.Line,
25
-
Label = ShapeLabel.init(
26
-
TextTemplate ="Here are the values i can access:<br><b>Raw variables (from shape definition):</b><br><br>x0: %{x0}<br>x1: %{x1}<br>y0: %{y0}<br>y1: %{y1}<br><br><b>Calculated variables:</b><br><br>xcenter (calculated as (x0+x1)/2): %{xcenter}<br>ycenter (calculated as (y0+y1)/2): %{ycenter}<br>dx (calculated as x1-x0): %{dx}<br>dy (calculated as y1-y0): %{dy}<br>width (calculated as abs(x1-x0)): %{width}<br>height (calculated as abs(y1-y0)): %{height}<br>length (calculated as sqrt(dx^2+dy^2)) -- for lines only: %{length}<br>slope (calculated as (y1-y0)/(x1-x0)): %{slope}<br>"
0 commit comments