Skip to content

Commit eb9e0d8

Browse files
authored
Merge pull request #501 from plotly/chartapi-full-file-split
Chartapi full file split
2 parents b4988fc + 8efb364 commit eb9e0d8

Some content is hidden

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

45 files changed

+17327
-16638
lines changed

plans/ChartAPIFileSplit.md

Lines changed: 320 additions & 0 deletions
Large diffs are not rendered by default.

src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static GenericChart Scatter<XType,YType,TextType>(
8888
where YType : IConvertible
8989
where TextType : IConvertible
9090
=>
91-
Plotly.NET.Chart2D.Chart.Scatter(
91+
Plotly.NET.Chart2D_Scatter.Chart.Scatter(
9292
x: x,
9393
y: y,
9494
mode: mode,
@@ -178,7 +178,7 @@ public static GenericChart Point<XType, YType, TextType>(
178178
where YType : IConvertible
179179
where TextType : IConvertible
180180
=>
181-
Plotly.NET.Chart2D.Chart.Point(
181+
Plotly.NET.Chart2D_Scatter.Chart.Point(
182182
x: x,
183183
y: y,
184184
Name: Name.ToOption(),
@@ -275,7 +275,7 @@ public static GenericChart Line<XType, YType, TextType>(
275275
where YType : IConvertible
276276
where TextType : IConvertible
277277
=>
278-
Plotly.NET.Chart2D.Chart.Line(
278+
Plotly.NET.Chart2D_Scatter.Chart.Line(
279279
x: x,
280280
y: y,
281281
ShowMarkers: ShowMarkers.ToOption(),
@@ -384,7 +384,7 @@ public static GenericChart Spline<XType, YType, TextType>(
384384
where YType : IConvertible
385385
where TextType : IConvertible
386386
=>
387-
Plotly.NET.Chart2D.Chart.Spline(
387+
Plotly.NET.Chart2D_Scatter.Chart.Spline(
388388
x: x,
389389
y: y,
390390
ShowMarkers: ShowMarkers.ToOption(),
@@ -485,7 +485,7 @@ public static GenericChart Bubble<XType, YType, TextType>(
485485
where YType : IConvertible
486486
where TextType : IConvertible
487487
=>
488-
Plotly.NET.Chart2D.Chart.Bubble<XType, YType, TextType>(
488+
Plotly.NET.Chart2D_Scatter.Chart.Bubble<XType, YType, TextType>(
489489
x: x,
490490
y: y,
491491
sizes: sizes,
@@ -604,7 +604,7 @@ public static GenericChart Range<XType, YType, TextType>(
604604
where YType : IConvertible
605605
where TextType : IConvertible
606606
=>
607-
Plotly.NET.Chart2D.Chart.Range<XType, YType, YType, YType, TextType, TextType, TextType>(
607+
Plotly.NET.Chart2D_Scatter.Chart.Range<XType, YType, YType, YType, TextType, TextType, TextType>(
608608
x: x,
609609
y: y,
610610
upper: upper,
@@ -658,7 +658,7 @@ public static GenericChart Pareto<TLabel>(
658658
)
659659
where TLabel : IConvertible
660660
=>
661-
Chart2D.Chart.Pareto(
661+
Chart2D_Statistical.Chart.Pareto(
662662
keysValues.Select(t => t.ToTuple())
663663
, Name: Name.ToOption()
664664
, Label: Label.ToOption()
@@ -679,7 +679,7 @@ IEnumerable<TLabel> labels
679679
)
680680
where TLabel : IConvertible
681681
=>
682-
Chart2D.Chart.Pareto(
682+
Chart2D_Statistical.Chart.Pareto(
683683
labels
684684
, values
685685
, Name: Name.ToOption()
@@ -758,7 +758,7 @@ public static GenericChart Area<XType, YType, TextType>(
758758
where YType : IConvertible
759759
where TextType : IConvertible
760760
=>
761-
Plotly.NET.Chart2D.Chart.Area<XType, YType, TextType>(
761+
Plotly.NET.Chart2D_Area.Chart.Area<XType, YType, TextType>(
762762
x: x,
763763
y: y,
764764
ShowMarkers: ShowMarkers.ToOption(),
@@ -866,7 +866,7 @@ public static GenericChart SplineArea<XType, YType, TextType>(
866866
where YType : IConvertible
867867
where TextType : IConvertible
868868
=>
869-
Plotly.NET.Chart2D.Chart.SplineArea<XType, YType, TextType>(
869+
Plotly.NET.Chart2D_Area.Chart.SplineArea<XType, YType, TextType>(
870870
x: x,
871871
y: y,
872872
ShowMarkers: ShowMarkers.ToOption(),
@@ -967,7 +967,7 @@ public static GenericChart StackedArea<XType, YType, TextType>(
967967
where YType : IConvertible
968968
where TextType : IConvertible
969969
=>
970-
Plotly.NET.Chart2D.Chart.StackedArea<XType, YType, TextType>(
970+
Plotly.NET.Chart2D_Area.Chart.StackedArea<XType, YType, TextType>(
971971
x: x,
972972
y: y,
973973
ShowMarkers: ShowMarkers.ToOption(),
@@ -1062,7 +1062,7 @@ public static GenericChart Funnel<XType, YType, TextType>(
10621062
where YType : IConvertible
10631063
where TextType : IConvertible
10641064
=>
1065-
Plotly.NET.Chart2D.Chart.Funnel<XType, YType, TextType>(
1065+
Plotly.NET.Chart2D_Funnel.Chart.Funnel<XType, YType, TextType>(
10661066
x: x,
10671067
y: y,
10681068
Name: Name.ToOption(),
@@ -1155,7 +1155,7 @@ public static GenericChart StackedFunnel<XType, YType, TextType>(
11551155
where YType : IConvertible
11561156
where TextType : IConvertible
11571157
=>
1158-
Plotly.NET.Chart2D.Chart.StackedFunnel<XType, YType, TextType>(
1158+
Plotly.NET.Chart2D_Funnel.Chart.StackedFunnel<XType, YType, TextType>(
11591159
x: x,
11601160
y: y,
11611161
Name: Name.ToOption(),
@@ -1245,7 +1245,7 @@ public static GenericChart Waterfall<XType, YType, TextType>(
12451245
where YType : IConvertible
12461246
where TextType : IConvertible
12471247
=>
1248-
Plotly.NET.Chart2D.Chart.Waterfall<XType, YType, TextType>(
1248+
Plotly.NET.Chart2D_Funnel.Chart.Waterfall<XType, YType, TextType>(
12491249
x: x,
12501250
y: y,
12511251
Name: Name.ToOption(),
@@ -1328,7 +1328,7 @@ public static GenericChart Bar<ValuesType, KeysType, TextType>(
13281328
where KeysType : IConvertible
13291329
where TextType: IConvertible
13301330
=>
1331-
Plotly.NET.Chart2D.Chart.Bar<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
1331+
Plotly.NET.Chart2D_Bar.Chart.Bar<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
13321332
values: values,
13331333
Keys: Keys.ToOption(),
13341334
MultiKeys: MultiKeys.ToOption(),
@@ -1409,7 +1409,7 @@ public static GenericChart StackedBar<ValuesType, KeysType, TextType>(
14091409
where KeysType : IConvertible
14101410
where TextType : IConvertible
14111411
=>
1412-
Plotly.NET.Chart2D.Chart.StackedBar<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
1412+
Plotly.NET.Chart2D_Bar.Chart.StackedBar<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
14131413
values: values,
14141414
Keys: Keys.ToOption(),
14151415
MultiKeys: MultiKeys.ToOption(),
@@ -1489,7 +1489,7 @@ public static GenericChart Column<ValuesType, KeysType, TextType>(
14891489
where KeysType : IConvertible
14901490
where TextType : IConvertible
14911491
=>
1492-
Plotly.NET.Chart2D.Chart.Column<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
1492+
Plotly.NET.Chart2D_Bar.Chart.Column<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
14931493
values: values,
14941494
Keys: Keys.ToOption(),
14951495
MultiKeys: MultiKeys.ToOption(),
@@ -1570,7 +1570,7 @@ public static GenericChart StackedColumn<ValuesType, KeysType, TextType>(
15701570
where KeysType : IConvertible
15711571
where TextType : IConvertible
15721572
=>
1573-
Plotly.NET.Chart2D.Chart.StackedColumn<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
1573+
Plotly.NET.Chart2D_Bar.Chart.StackedColumn<ValuesType, KeysType, TextType, ValuesType, ValuesType>(
15741574
values: values,
15751575
Keys: Keys.ToOption(),
15761576
MultiKeys: MultiKeys.ToOption(),
@@ -1675,7 +1675,7 @@ public static GenericChart Histogram<XType, YType, TextType>(
16751675
where YType : IConvertible
16761676
where TextType : IConvertible
16771677
=>
1678-
Plotly.NET.Chart2D.Chart.Histogram<XType, YType, TextType>(
1678+
Plotly.NET.Chart2D_Histogram.Chart.Histogram<XType, YType, TextType>(
16791679
X: X.ToOption(),
16801680
MultiX: MultiX.ToOption(),
16811681
Y: Y.ToOption(),
@@ -1762,7 +1762,7 @@ public static GenericChart Histogram2D<XType, YType, ZType>(
17621762
where YType : IConvertible
17631763
where ZType : IConvertible
17641764
=>
1765-
Plotly.NET.Chart2D.Chart.Histogram2D<XType, YType, IEnumerable<ZType>, ZType>(
1765+
Plotly.NET.Chart2D_Histogram.Chart.Histogram2D<XType, YType, IEnumerable<ZType>, ZType>(
17661766
x: x,
17671767
y: y,
17681768
Z: Z.ToOption(),
@@ -1854,7 +1854,7 @@ public static GenericChart BoxPlot<XType, YType, TextType>(
18541854
where YType : IConvertible
18551855
where TextType : IConvertible
18561856
=>
1857-
Plotly.NET.Chart2D.Chart.BoxPlot<XType, YType, TextType>(
1857+
Plotly.NET.Chart2D_Distribution.Chart.BoxPlot<XType, YType, TextType>(
18581858
X: X.ToOption(),
18591859
MultiX: MultiX.ToOption(),
18601860
Y: Y.ToOption(),
@@ -1966,7 +1966,7 @@ public static GenericChart Violin<XType, YType, TextType>(
19661966
where YType : IConvertible
19671967
where TextType : IConvertible
19681968
=>
1969-
Plotly.NET.Chart2D.Chart.Violin<XType, YType, TextType>(
1969+
Plotly.NET.Chart2D_Distribution.Chart.Violin<XType, YType, TextType>(
19701970
X: X.ToOption(),
19711971
MultiX: MultiX.ToOption(),
19721972
Y: Y.ToOption(),
@@ -2090,7 +2090,7 @@ public static GenericChart Histogram2DContour<XType, YType, ZType>(
20902090
where YType : IConvertible
20912091
where ZType : IConvertible
20922092
=>
2093-
Plotly.NET.Chart2D.Chart.Histogram2DContour<XType, YType, IEnumerable<ZType>, ZType>(
2093+
Plotly.NET.Chart2D_Histogram.Chart.Histogram2DContour<XType, YType, IEnumerable<ZType>, ZType>(
20942094
X: X.ToOption(),
20952095
MultiX: MultiX.ToOption(),
20962096
Y: Y.ToOption(),
@@ -2185,7 +2185,7 @@ public static GenericChart Heatmap<ZType, XType, YType, TextType>(
21852185
where YType : IConvertible
21862186
where TextType : IConvertible
21872187
=>
2188-
Plotly.NET.Chart2D.Chart.Heatmap<IEnumerable<ZType>, ZType, XType, YType, TextType>(
2188+
Plotly.NET.Chart2D_Heatmap.Chart.Heatmap<IEnumerable<ZType>, ZType, XType, YType, TextType>(
21892189
zData: zData,
21902190
X: X.ToOption(),
21912191
MultiX: MultiX.ToOption(),
@@ -2267,7 +2267,7 @@ public static GenericChart AnnotatedHeatmap<ZType, XType, YType, TextType>(
22672267
where YType : IConvertible
22682268
where TextType : IConvertible
22692269
=>
2270-
Plotly.NET.Chart2D.Chart.AnnotatedHeatmap<IEnumerable<ZType>, ZType, IEnumerable<string>, XType, YType, TextType>(
2270+
Plotly.NET.Chart2D_Heatmap.Chart.AnnotatedHeatmap<IEnumerable<ZType>, ZType, IEnumerable<string>, XType, YType, TextType>(
22712271
zData: zData,
22722272
annotationText: annotationText,
22732273
Name: Name.ToOption(),
@@ -2321,7 +2321,7 @@ public static GenericChart Image<IdType>(
23212321
)
23222322
where IdType : IConvertible
23232323
=>
2324-
Plotly.NET.Chart2D.Chart.Image<IEnumerable<IEnumerable<int>>, IEnumerable<int>, IdType>(
2324+
Plotly.NET.Chart2D_Heatmap.Chart.Image<IEnumerable<IEnumerable<int>>, IEnumerable<int>, IdType>(
23252325
Z: Z.ToOption(),
23262326
Source: Source.ToOption(),
23272327
Name: Name.ToOption(),
@@ -2413,7 +2413,7 @@ public static GenericChart Contour<ZType, XType, YType, TextType>(
24132413
where YType : IConvertible
24142414
where TextType : IConvertible
24152415
=>
2416-
Plotly.NET.Chart2D.Chart.Contour<IEnumerable<ZType>, ZType, XType, YType, TextType>(
2416+
Plotly.NET.Chart2D_Heatmap.Chart.Contour<IEnumerable<ZType>, ZType, XType, YType, TextType>(
24172417
zData: zData,
24182418
Name: Name.ToOption(),
24192419
ShowLegend: ShowLegend.ToOption(),
@@ -2498,7 +2498,7 @@ public static GenericChart OHLC<OHLCType, XType, TextType>(
24982498
where XType : IConvertible
24992499
where TextType : IConvertible
25002500
=>
2501-
Plotly.NET.Chart2D.Chart.OHLC<OHLCType, OHLCType, OHLCType, OHLCType, XType, TextType>(
2501+
Plotly.NET.Chart2D_Finance.Chart.OHLC<OHLCType, OHLCType, OHLCType, OHLCType, XType, TextType>(
25022502
open: open,
25032503
high: high,
25042504
low: low,
@@ -2569,7 +2569,7 @@ public static GenericChart Candlestick<OHLCType, XType, TextType>(
25692569
where XType : IConvertible
25702570
where TextType : IConvertible
25712571
=>
2572-
Plotly.NET.Chart2D.Chart.Candlestick<OHLCType, OHLCType, OHLCType, OHLCType, XType, TextType>(
2572+
Plotly.NET.Chart2D_Finance.Chart.Candlestick<OHLCType, OHLCType, OHLCType, OHLCType, XType, TextType>(
25732573
open: open,
25742574
high: high,
25752575
low: low,
@@ -2634,7 +2634,7 @@ public static GenericChart Splom<TextType>(
26342634
)
26352635
where TextType : IConvertible
26362636
=>
2637-
Plotly.NET.Chart2D.Chart.Splom<TextType>(
2637+
Plotly.NET.Chart2D_Splom.Chart.Splom<TextType>(
26382638
dimensions: dimensions,
26392639
Name: Name.ToOption(),
26402640
ShowLegend: ShowLegend.ToOption(),
@@ -2720,7 +2720,7 @@ public static GenericChart PointDensity<XType, YType>(
27202720
where XType : IConvertible
27212721
where YType : IConvertible
27222722
=>
2723-
Plotly.NET.Chart2D.Chart.PointDensity<XType, YType>(
2723+
Plotly.NET.Chart2D_Splom.Chart.PointDensity<XType, YType>(
27242724
x: x,
27252725
y: y,
27262726
PointOpacity: PointOpacity.ToOption(),

src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
@@ -82,7 +82,7 @@ public static GenericChart Scatter3D<XType, YType, ZType, TextType>(
8282
where ZType : IConvertible
8383
where TextType : IConvertible
8484

85-
=> Plotly.NET.Chart3D.Chart.Scatter3D<XType, YType, ZType, TextType>(
85+
=> Plotly.NET.Chart3D_Scatter.Chart.Scatter3D<XType, YType, ZType, TextType>(
8686
x: x,
8787
y: y,
8888
z: z,
@@ -166,7 +166,7 @@ public static GenericChart Point3D<XType, YType, ZType, TextType>(
166166
where ZType : IConvertible
167167
where TextType : IConvertible
168168

169-
=> Plotly.NET.Chart3D.Chart.Point3D<XType, YType, ZType, TextType>(
169+
=> Plotly.NET.Chart3D_Scatter.Chart.Point3D<XType, YType, ZType, TextType>(
170170
x: x,
171171
y: y,
172172
z: z,
@@ -256,7 +256,7 @@ public static GenericChart Line3D<XType, YType, ZType, TextType>(
256256
where ZType : IConvertible
257257
where TextType : IConvertible
258258

259-
=> Plotly.NET.Chart3D.Chart.Line3D<XType, YType, ZType, TextType>(
259+
=> Plotly.NET.Chart3D_Scatter.Chart.Line3D<XType, YType, ZType, TextType>(
260260
x: x,
261261
y: y,
262262
z: z,
@@ -342,7 +342,7 @@ public static GenericChart Bubble3D<XType, YType, ZType, TextType>(
342342
where ZType : IConvertible
343343
where TextType : IConvertible
344344

345-
=> Plotly.NET.Chart3D.Chart.Bubble3D<XType, YType, ZType, TextType>(
345+
=> Plotly.NET.Chart3D_Scatter.Chart.Bubble3D<XType, YType, ZType, TextType>(
346346
x: x,
347347
y: y,
348348
z: z,
@@ -412,7 +412,7 @@ public static GenericChart Surface<ZType, XType, YType, TextType>(
412412
where YType : IConvertible
413413
where TextType : IConvertible
414414
=>
415-
Plotly.NET.Chart3D.Chart.Surface<IEnumerable<ZType>, ZType, XType, YType, TextType>(
415+
Plotly.NET.Chart3D_Surface.Chart.Surface<IEnumerable<ZType>, ZType, XType, YType, TextType>(
416416
zData: zData,
417417
X: X.ToOption(),
418418
Y: Y.ToOption(),
@@ -494,7 +494,7 @@ public static GenericChart Mesh3D<XType, YType, ZType, IType, JType, KType, Text
494494
where KType : IConvertible
495495
where TextType : IConvertible
496496
=>
497-
Plotly.NET.Chart3D.Chart.Mesh3D<XType, YType, ZType, IType, JType, KType, TextType>(
497+
Plotly.NET.Chart3D_Surface.Chart.Mesh3D<XType, YType, ZType, IType, JType, KType, TextType>(
498498
x: x,
499499
y: y,
500500
z: z,
@@ -577,7 +577,7 @@ public static GenericChart Cone<XType, YType, ZType, UType, VType, WType, TextTy
577577
where WType : IConvertible
578578
where TextType : IConvertible
579579
=>
580-
Plotly.NET.Chart3D.Chart.Cone<XType, YType, ZType, UType, VType, WType, TextType>(
580+
Plotly.NET.Chart3D_VectorField.Chart.Cone<XType, YType, ZType, UType, VType, WType, TextType>(
581581
x: x,
582582
y: y,
583583
z: z,
@@ -660,7 +660,7 @@ public static GenericChart StreamTube<XType, YType, ZType, UType, VType, WType,
660660
where WType : IConvertible
661661
where TextType : IConvertible
662662
=>
663-
Plotly.NET.Chart3D.Chart.StreamTube<XType, YType, ZType, UType, VType, WType, TextType>(
663+
Plotly.NET.Chart3D_VectorField.Chart.StreamTube<XType, YType, ZType, UType, VType, WType, TextType>(
664664
x: x,
665665
y: y,
666666
z: z,
@@ -741,7 +741,7 @@ public static GenericChart Volume<XType, YType, ZType, ValueType, TextType, Opac
741741
where TextType : IConvertible
742742
where OpacityScaleType : IConvertible
743743
=>
744-
Plotly.NET.Chart3D.Chart.Volume<XType, YType, ZType, ValueType, TextType, IEnumerable<OpacityScaleType>, OpacityScaleType>(
744+
Plotly.NET.Chart3D_Volume.Chart.Volume<XType, YType, ZType, ValueType, TextType, IEnumerable<OpacityScaleType>, OpacityScaleType>(
745745
x: x,
746746
y: y,
747747
z: z,
@@ -823,7 +823,7 @@ public static GenericChart IsoSurface<XType, YType, ZType, ValueType, TextType>(
823823
where ValueType : IConvertible
824824
where TextType : IConvertible
825825
=>
826-
Plotly.NET.Chart3D.Chart.IsoSurface<XType, YType, ZType, ValueType, TextType>(
826+
Plotly.NET.Chart3D_Volume.Chart.IsoSurface<XType, YType, ZType, ValueType, TextType>(
827827
x: x,
828828
y: y,
829829
z: z,
@@ -847,3 +847,4 @@ public static GenericChart IsoSurface<XType, YType, ZType, ValueType, TextType>(
847847
);
848848
}
849849
}
850+

0 commit comments

Comments
 (0)