Skip to content

Commit 4e6e7c8

Browse files
committed
Refactor some test charts, remove unnecessary files
1 parent 934c08d commit 4e6e7c8

136 files changed

Lines changed: 125 additions & 2111 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/Common/FSharpTestBase/TestCharts/Chart2DTestCharts.fs

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,102 @@ module Spline =
7777
let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ]
7878
let y = [2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1.]
7979
Chart.Spline(x = x, y = y, Name="spline", UseDefaults = false)
80+
81+
82+
module Bubble = ()
83+
84+
module Range = ()
85+
86+
module Area =
87+
88+
let ``Simple area chart`` =
89+
let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ]
90+
let y = [5.; 2.5; 5.; 7.5; 5.; 2.5; 7.5; 4.5; 5.5; 5.]
91+
Chart.Area(x = x, y = y, UseDefaults = false)
92+
93+
module SplineArea =
94+
95+
let ``Simple spline area chart`` =
96+
let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ]
97+
let y = [5.; 2.5; 5.; 7.5; 5.; 2.5; 7.5; 4.5; 5.5; 5.]
98+
Chart.SplineArea(x = x, y = y, UseDefaults = false)
99+
100+
module StackedArea =
101+
102+
let ``Two stacked areas chart`` =
103+
let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ]
104+
let y = [5.; 2.5; 5.; 7.5; 5.; 2.5; 7.5; 4.5; 5.5; 5.]
105+
[
106+
Chart.StackedArea(x = x, y = y, UseDefaults = false)
107+
Chart.StackedArea(x = x, y = (y |> Seq.rev), UseDefaults = false)
108+
]
109+
|> Chart.combine
110+
111+
112+
module Funnel = ()
113+
114+
module StackedFunnel = ()
115+
116+
module Waterfall = ()
117+
118+
module Bar =
119+
120+
let ``Simple bar chart`` =
121+
let values = [20; 14; 23;]
122+
let keys = ["Product A"; "Product B"; "Product C";]
123+
Chart.Bar(values = values, Keys = keys, UseDefaults = false)
124+
125+
let ``Two stacked bars chart`` =
126+
let values = [20; 14; 23;]
127+
let keys = ["Product A"; "Product B"; "Product C";]
128+
[
129+
Chart.StackedBar(values = values, Keys = keys, Name="old", UseDefaults = false);
130+
Chart.StackedBar(values = [8; 21; 13;], Keys = keys, Name="new", UseDefaults = false)
131+
]
132+
|> Chart.combine
133+
134+
module StackedBar = ()
135+
136+
module Column =
137+
138+
let ``Simple column chart`` =
139+
let values = [20; 14; 23;]
140+
let keys = ["Product A"; "Product B"; "Product C";]
141+
Chart.Column(values = values, Keys = keys, UseDefaults = false)
142+
143+
let ``Two stacked columns chart`` =
144+
let values = [20; 14; 23;]
145+
let keys = ["Product A"; "Product B"; "Product C";]
146+
[
147+
Chart.StackedColumn(values = values, Keys = keys,Name="old", UseDefaults = false);
148+
Chart.StackedColumn(values = [8; 21; 13;], Keys = keys,Name="new", UseDefaults = false)
149+
]
150+
|> Chart.combine
151+
152+
module StackedColumn = ()
153+
154+
module Histogram = ()
155+
156+
module Histogram2D = ()
157+
158+
module BoxPlot = ()
159+
160+
module Violin = ()
161+
162+
module Histogram2DContour = ()
163+
164+
module Heatmap = ()
165+
166+
module AnnotatedHeatmap = ()
167+
168+
module Image = ()
169+
170+
module Contour = ()
171+
172+
module OHLC = ()
173+
174+
module Candlestick = ()
175+
176+
module Splom = ()
177+
178+
module PointDensity = ()

tests/CoreTests/CoreTests/CoreTests.fsproj

Lines changed: 0 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -12,138 +12,8 @@
1212
<EmbeddedResource Include="..\..\..\src\Plotly.NET\plotly-2.19.1.min.js.LICENSE.txt" />
1313
<Compile Include="TestUtils.fs" />
1414
<!--Test charts-->
15-
<Compile Include="TestCharts\Chart2D\Scatter.fs" />
16-
<Compile Include="TestCharts\Chart2D\Bubble.fs" />
17-
<Compile Include="TestCharts\Chart2D\Range.fs" />
18-
<Compile Include="TestCharts\Chart2D\Area.fs" />
19-
<Compile Include="TestCharts\Chart2D\SplineArea.fs" />
20-
<Compile Include="TestCharts\Chart2D\StackedArea.fs" />
21-
<Compile Include="TestCharts\Chart2D\Funnel.fs" />
22-
<Compile Include="TestCharts\Chart2D\StackedFunnel.fs" />
23-
<Compile Include="TestCharts\Chart2D\Waterfall.fs" />
24-
<Compile Include="TestCharts\Chart2D\Bar.fs" />
25-
<Compile Include="TestCharts\Chart2D\StackedBar.fs" />
26-
<Compile Include="TestCharts\Chart2D\Column.fs" />
27-
<Compile Include="TestCharts\Chart2D\StackedColumn.fs" />
28-
<Compile Include="TestCharts\Chart2D\Histogram.fs" />
29-
<Compile Include="TestCharts\Chart2D\Histogram2D.fs" />
30-
<Compile Include="TestCharts\Chart2D\BoxPlot.fs" />
31-
<Compile Include="TestCharts\Chart2D\Violin.fs" />
32-
<Compile Include="TestCharts\Chart2D\Histogram2DContour.fs" />
33-
<Compile Include="TestCharts\Chart2D\Heatmap.fs" />
34-
<Compile Include="TestCharts\Chart2D\AnnotatedHeatmap.fs" />
35-
<Compile Include="TestCharts\Chart2D\Image.fs" />
36-
<Compile Include="TestCharts\Chart2D\Contour.fs" />
37-
<Compile Include="TestCharts\Chart2D\OHLC.fs" />
38-
<Compile Include="TestCharts\Chart2D\Candlestick.fs" />
39-
<Compile Include="TestCharts\Chart2D\Splom.fs" />
40-
<Compile Include="TestCharts\Chart2D\PointDensity.fs" />
41-
<Compile Include="TestCharts\Chart3D\Scatter3D.fs" />
42-
<Compile Include="TestCharts\Chart3D\Point3D.fs" />
43-
<Compile Include="TestCharts\Chart3D\Line3D.fs" />
44-
<Compile Include="TestCharts\Chart3D\Bubble3D.fs" />
45-
<Compile Include="TestCharts\Chart3D\Surface.fs" />
46-
<Compile Include="TestCharts\Chart3D\Mesh3D.fs" />
47-
<Compile Include="TestCharts\Chart3D\Cone.fs" />
48-
<Compile Include="TestCharts\Chart3D\StreamTube.fs" />
49-
<Compile Include="TestCharts\Chart3D\Volume.fs" />
50-
<Compile Include="TestCharts\Chart3D\IsoSurface.fs" />
51-
<Compile Include="TestCharts\ChartPolar\ScatterPolar.fs" />
52-
<Compile Include="TestCharts\ChartPolar\PointPolar.fs" />
53-
<Compile Include="TestCharts\ChartPolar\LinePolar.fs" />
54-
<Compile Include="TestCharts\ChartPolar\SplinePolar.fs" />
55-
<Compile Include="TestCharts\ChartPolar\BubblePolar.fs" />
56-
<Compile Include="TestCharts\ChartPolar\BarPolar.fs" />
57-
<Compile Include="TestCharts\ChartMap\ChoroplethMap.fs" />
58-
<Compile Include="TestCharts\ChartMap\ScatterGeo.fs" />
59-
<Compile Include="TestCharts\ChartMap\PointGeo.fs" />
60-
<Compile Include="TestCharts\ChartMap\LineGeo.fs" />
61-
<Compile Include="TestCharts\ChartMap\BubbleGeo.fs" />
62-
<Compile Include="TestCharts\ChartMap\ScatterMapbox.fs" />
63-
<Compile Include="TestCharts\ChartMap\LineMapbox.fs" />
64-
<Compile Include="TestCharts\ChartMap\BubbleMapbox.fs" />
65-
<Compile Include="TestCharts\ChartMap\ChoroplethMapbox.fs" />
66-
<Compile Include="TestCharts\ChartMap\DensityMapbox.fs" />
67-
<Compile Include="TestCharts\ChartTernary\ScatterTernary.fs" />
68-
<Compile Include="TestCharts\ChartTernary\PointTernary.fs" />
69-
<Compile Include="TestCharts\ChartTernary\LineTernary.fs" />
70-
<Compile Include="TestCharts\ChartTernary\BubbleTernary.fs" />
71-
<Compile Include="TestCharts\ChartCarpet\Carpet.fs" />
72-
<Compile Include="TestCharts\ChartCarpet\ScatterCarpet.fs" />
73-
<Compile Include="TestCharts\ChartCarpet\PointCarpet.fs" />
74-
<Compile Include="TestCharts\ChartCarpet\LineCarpet.fs" />
75-
<Compile Include="TestCharts\ChartCarpet\SplineCarpet.fs" />
76-
<Compile Include="TestCharts\ChartCarpet\BubbleCarpet.fs" />
77-
<Compile Include="TestCharts\ChartCarpet\ContourCarpet.fs" />
78-
<Compile Include="TestCharts\ChartDomain\Pie.fs" />
79-
<Compile Include="TestCharts\ChartDomain\Doughnut.fs" />
80-
<Compile Include="TestCharts\ChartDomain\FunnelArea.fs" />
81-
<Compile Include="TestCharts\ChartDomain\Sunburst.fs" />
82-
<Compile Include="TestCharts\ChartDomain\Treemap.fs" />
83-
<Compile Include="TestCharts\ChartDomain\ParralelCoord.fs" />
84-
<Compile Include="TestCharts\ChartDomain\ParralelCategories.fs" />
85-
<Compile Include="TestCharts\ChartDomain\Sankey.fs" />
86-
<Compile Include="TestCharts\ChartDomain\Table.fs" />
87-
<Compile Include="TestCharts\ChartDomain\Indicator.fs" />
88-
<Compile Include="TestCharts\ChartDomain\Icicle.fs" />
89-
<Compile Include="TestCharts\ChartSmith\ScatterSmith.fs" />
90-
<Compile Include="TestCharts\ChartSmith\PointSmith.fs" />
91-
<Compile Include="TestCharts\ChartSmith\LineSmith.fs" />
92-
<Compile Include="TestCharts\ChartSmith\BubbleSmith.fs" />
9315
<Compile Include="HTMLCodegen\Chart2D.fs" />
9416
<!--HTMLCodegen-->
95-
<Compile Include="HTMLCodegen\Chart3D\Scatter3D.fs" />
96-
<Compile Include="HTMLCodegen\Chart3D\Point3D.fs" />
97-
<Compile Include="HTMLCodegen\Chart3D\Line3D.fs" />
98-
<Compile Include="HTMLCodegen\Chart3D\Bubble3D.fs" />
99-
<Compile Include="HTMLCodegen\Chart3D\Surface.fs" />
100-
<Compile Include="HTMLCodegen\Chart3D\Mesh3D.fs" />
101-
<Compile Include="HTMLCodegen\Chart3D\Cone.fs" />
102-
<Compile Include="HTMLCodegen\Chart3D\StreamTube.fs" />
103-
<Compile Include="HTMLCodegen\Chart3D\Volume.fs" />
104-
<Compile Include="HTMLCodegen\Chart3D\IsoSurface.fs" />
105-
<Compile Include="HTMLCodegen\ChartPolar\ScatterPolar.fs" />
106-
<Compile Include="HTMLCodegen\ChartPolar\PointPolar.fs" />
107-
<Compile Include="HTMLCodegen\ChartPolar\LinePolar.fs" />
108-
<Compile Include="HTMLCodegen\ChartPolar\SplinePolar.fs" />
109-
<Compile Include="HTMLCodegen\ChartPolar\BubblePolar.fs" />
110-
<Compile Include="HTMLCodegen\ChartPolar\BarPolar.fs" />
111-
<Compile Include="HTMLCodegen\ChartMap\ChoroplethMap.fs" />
112-
<Compile Include="HTMLCodegen\ChartMap\ScatterGeo.fs" />
113-
<Compile Include="HTMLCodegen\ChartMap\PointGeo.fs" />
114-
<Compile Include="HTMLCodegen\ChartMap\LineGeo.fs" />
115-
<Compile Include="HTMLCodegen\ChartMap\BubbleGeo.fs" />
116-
<Compile Include="HTMLCodegen\ChartMap\ScatterMapbox.fs" />
117-
<Compile Include="HTMLCodegen\ChartMap\LineMapbox.fs" />
118-
<Compile Include="HTMLCodegen\ChartMap\BubbleMapbox.fs" />
119-
<Compile Include="HTMLCodegen\ChartMap\ChoroplethMapbox.fs" />
120-
<Compile Include="HTMLCodegen\ChartMap\DensityMapbox.fs" />
121-
<Compile Include="HTMLCodegen\ChartTernary\ScatterTernary.fs" />
122-
<Compile Include="HTMLCodegen\ChartTernary\PointTernary.fs" />
123-
<Compile Include="HTMLCodegen\ChartTernary\LineTernary.fs" />
124-
<Compile Include="HTMLCodegen\ChartTernary\BubbleTernary.fs" />
125-
<Compile Include="HTMLCodegen\ChartCarpet\Carpet.fs" />
126-
<Compile Include="HTMLCodegen\ChartCarpet\ScatterCarpet.fs" />
127-
<Compile Include="HTMLCodegen\ChartCarpet\PointCarpet.fs" />
128-
<Compile Include="HTMLCodegen\ChartCarpet\LineCarpet.fs" />
129-
<Compile Include="HTMLCodegen\ChartCarpet\SplineCarpet.fs" />
130-
<Compile Include="HTMLCodegen\ChartCarpet\BubbleCarpet.fs" />
131-
<Compile Include="HTMLCodegen\ChartCarpet\ContourCarpet.fs" />
132-
<Compile Include="HTMLCodegen\ChartDomain\Pie.fs" />
133-
<Compile Include="HTMLCodegen\ChartDomain\Doughnut.fs" />
134-
<Compile Include="HTMLCodegen\ChartDomain\FunnelArea.fs" />
135-
<Compile Include="HTMLCodegen\ChartDomain\Sunburst.fs" />
136-
<Compile Include="HTMLCodegen\ChartDomain\Treemap.fs" />
137-
<Compile Include="HTMLCodegen\ChartDomain\ParralelCoord.fs" />
138-
<Compile Include="HTMLCodegen\ChartDomain\ParralelCategories.fs" />
139-
<Compile Include="HTMLCodegen\ChartDomain\Sankey.fs" />
140-
<Compile Include="HTMLCodegen\ChartDomain\Table.fs" />
141-
<Compile Include="HTMLCodegen\ChartDomain\Indicator.fs" />
142-
<Compile Include="HTMLCodegen\ChartDomain\Icicle.fs" />
143-
<Compile Include="HTMLCodegen\ChartSmith\ScatterSmith.fs" />
144-
<Compile Include="HTMLCodegen\ChartSmith\PointSmith.fs" />
145-
<Compile Include="HTMLCodegen\ChartSmith\LineSmith.fs" />
146-
<Compile Include="HTMLCodegen\ChartSmith\BubbleSmith.fs" />
14717

14818
<Compile Include="ChartAPIs\WithAxis.fs" />
14919
<Compile Include="ChartAPIs\Combine.fs" />

0 commit comments

Comments
 (0)