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
let``ScatterSmith chart HTML codegeneration tests`` =
15
+
testList "HTMLCodegen.ChartSmith"[
16
+
testList "ScatterSmith"[
17
+
testCase "Scatter data"(fun()->
18
+
"""var data = [{"type":"scattersmith","mode":"lines+markers+text","imag":[0.5,1.0,2.0,3.0],"real":[0.5,1.0,2.0,3.0],"text":["Pretty","Cool","Plot","Huh?"],"textposition":"top center","marker":{},"line":{}}];"""
19
+
|> chartGeneratedContains ScatterSmith.``Simple smith scatter chart``
20
+
)
21
+
testCase "Scatter layout"(fun()->
22
+
emptyLayout ScatterSmith.``Simple smith scatter chart``
23
+
)
24
+
]
25
+
]
26
+
27
+
28
+
modulePointSmith =
29
+
[<Tests>]
30
+
let``PointSmith chart HTML codegeneration tests`` =
31
+
testList "HTMLCodegen.ChartSmith"[
32
+
testList "PointSmith"[
33
+
testCase "Point data"(fun()->
34
+
"""var data = [{"type":"scattersmith","mode":"markers","imag":[0.5,1.0,2.0,3.0],"real":[0.5,1.0,2.0,3.0],"marker":{},"line":{}}];"""
35
+
|> chartGeneratedContains PointSmith.``Simple smith point chart``
36
+
)
37
+
testCase "Point layout"(fun()->
38
+
emptyLayout PointSmith.``Simple smith point chart``
39
+
)
40
+
]
41
+
]
42
+
43
+
moduleLineSmith =
44
+
[<Tests>]
45
+
let``LineSmith chart HTML codegeneration tests`` =
46
+
testList "HTMLCodegen.ChartSmith"[
47
+
testList "LineSmith"[
48
+
testCase "Line data"(fun()->
49
+
"""var data = [{"type":"scattersmith","mode":"lines","imag":[0.5,1.0,2.0,3.0],"real":[0.5,1.0,2.0,3.0],"marker":{},"line":{"color":"rgba(128, 0, 128, 1.0)","dash":"dashdot"}}];"""
50
+
|> chartGeneratedContains LineSmith.``Simple smith line chart``
51
+
)
52
+
testCase "Line layout"(fun()->
53
+
emptyLayout LineSmith.``Simple smith line chart``
54
+
)
55
+
]
56
+
]
57
+
58
+
moduleBubbleSmith =
59
+
[<Tests>]
60
+
let``BubbleSmith chart HTML codegeneration tests`` =
61
+
testList "HTMLCodegen.ChartSmith"[
62
+
testList "BubbleSmith"[
63
+
testCase "Bubble data"(fun()->
64
+
"""var data = [{"type":"scattersmith","mode":"markers+text","imag":[0.5,1.0,2.0,3.0],"real":[0.5,1.0,2.0,3.0],"text":["one","two","three","four","five","six","seven"],"textposition":"top center","marker":{"size":[10,20,30,40]},"line":{}}];"""
65
+
|> chartGeneratedContains BubbleSmith.``Simple smith bubble chart``
66
+
)
67
+
testCase "Bubble layout"(fun()->
68
+
emptyLayout BubbleSmith.``Simple smith bubble chart``
0 commit comments