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
Summary:
- add XEncoded and YEncoded support to the scatter-derived Chart2D helper roots Point, Line, Spline, Bubble, Area, SplineArea, and StackedArea
- add XEncoded, YEncoded, UpperEncoded, and LowerEncoded support to Chart.Range where the helper owns all four bound arrays
- keep tuple-based convenience overloads delegating as before while extending only the raw-array helper roots
- add chart-level helper serialization and precedence tests for encoded arrays, including Range upper/lower coverage
- replace the console sample with a focused H1-B encoded Chart.Range demo
- keep the current C# wrapper surface source-compatible by forwarding None through the new F# encoded parameters for now
Verification:
- .\\build.cmd runTestsCore
- 809 tests passed
Notes:
- plans/EncodedArraySupport.md was updated locally before commit and intentionally left uncommitted
/// <summary> Creates a Line chart, which uses a Line plotted between the given datums in a 2D space to visualize typically an evolution of Y depending on X.</summary>
550
556
/// <paramname="x">Sets the x coordinates of the plotted data.</param>
557
+
/// <paramname="XEncoded">Sets the x coordinates of the plotted data as an encoded typed array.</param>
551
558
/// <paramname="y">Sets the y coordinates of the plotted data.</param>
559
+
/// <paramname="YEncoded">Sets the y coordinates of the plotted data as an encoded typed array.</param>
552
560
/// <paramname="ShowMarkers">Whether to show markers for the individual data points</param>
553
561
/// <paramname="Name">Sets the trace name. The trace name appear as the legend item and on hover</param>
554
562
/// <paramname="ShowLegend">Determines whether or not an item corresponding to this trace is shown in the legend.</param>
@@ -584,6 +592,8 @@ module Chart2D =
584
592
(
585
593
x:seq<#IConvertible>,
586
594
y:seq<#IConvertible>,
595
+
?XEncoded:EncodedTypedArray,
596
+
?YEncoded:EncodedTypedArray,
587
597
?ShowMarkers:bool,
588
598
?Name:string,
589
599
?ShowLegend:bool,
@@ -627,9 +637,11 @@ module Chart2D =
627
637
>> StyleParam.ModeUtils.showMarker (isShowMarker)
628
638
629
639
Chart.Scatter(
630
-
x = x,
631
-
y = y,
632
-
mode = changeMode StyleParam.Mode.Lines,
640
+
X = x,
641
+
Y = y,
642
+
?XEncoded = XEncoded,
643
+
?YEncoded = YEncoded,
644
+
Mode = changeMode StyleParam.Mode.Lines,
633
645
?Name = Name,
634
646
?ShowLegend = ShowLegend,
635
647
?Opacity = Opacity,
@@ -673,6 +685,8 @@ module Chart2D =
673
685
/// <paramname="MultiOpacity">Sets the opactity of individual datum markers</param>
674
686
/// <paramname="Text">Sets a text associated with each datum</param>
675
687
/// <paramname="MultiText">Sets individual text for each datum</param>
688
+
/// <paramname="XEncoded">Sets the x coordinates of the plotted data as an encoded typed array.</param>
689
+
/// <paramname="YEncoded">Sets the y coordinates of the plotted data as an encoded typed array.</param>
676
690
/// <paramname="TextPosition">Sets the position of text associated with each datum</param>
677
691
/// <paramname="MultiTextPosition">Sets the position of text associated with individual datum</param>
678
692
/// <paramname="MarkerColor">Sets the color of the marker</param>
@@ -809,6 +823,8 @@ module Chart2D =
809
823
(
810
824
x:seq<#IConvertible>,
811
825
y:seq<#IConvertible>,
826
+
?XEncoded:EncodedTypedArray,
827
+
?YEncoded:EncodedTypedArray,
812
828
?ShowMarkers:bool,
813
829
?Smoothing:float,
814
830
?Name:string,
@@ -883,7 +899,9 @@ module Chart2D =
883
899
letstyle=
884
900
Trace2DStyle.Scatter(
885
901
X = x,
902
+
?XEncoded = XEncoded,
886
903
Y = y,
904
+
?YEncoded = YEncoded,
887
905
Mode = changeMode StyleParam.Mode.Lines,
888
906
Marker = marker,
889
907
Line = line,
@@ -922,6 +940,8 @@ module Chart2D =
922
940
/// <paramname="MultiOpacity">Sets the opactity of individual datum markers</param>
923
941
/// <paramname="Text">Sets a text associated with each datum</param>
924
942
/// <paramname="MultiText">Sets individual text for each datum</param>
943
+
/// <paramname="XEncoded">Sets the x coordinates of the plotted data as an encoded typed array.</param>
944
+
/// <paramname="YEncoded">Sets the y coordinates of the plotted data as an encoded typed array.</param>
925
945
/// <paramname="TextPosition">Sets the position of text associated with each datum</param>
926
946
/// <paramname="MultiTextPosition">Sets the position of text associated with individual datum</param>
927
947
/// <paramname="MarkerColor">Sets the color of the marker</param>
@@ -1057,6 +1077,8 @@ module Chart2D =
1057
1077
x:seq<#IConvertible>,
1058
1078
y:seq<#IConvertible>,
1059
1079
sizes:seq<int>,
1080
+
?XEncoded:EncodedTypedArray,
1081
+
?YEncoded:EncodedTypedArray,
1060
1082
?Name:string,
1061
1083
?ShowLegend:bool,
1062
1084
?Opacity:float,
@@ -1118,7 +1140,9 @@ module Chart2D =
1118
1140
letstyle=
1119
1141
Trace2DStyle.Scatter(
1120
1142
X = x,
1143
+
?XEncoded = XEncoded,
1121
1144
Y = y,
1145
+
?YEncoded = YEncoded,
1122
1146
Mode = changeMode StyleParam.Mode.Markers,
1123
1147
Marker = marker,
1124
1148
Line = line,
@@ -1240,9 +1264,13 @@ module Chart2D =
1240
1264
/// The mid Y value usually resembles some kind of central tendency and the upper/lower Y values some kind of spread.
1241
1265
/// </summary>
1242
1266
/// <paramname="x">Sets the x coordinates of the plotted data.</param>
1267
+
/// <paramname="XEncoded">Sets the x coordinates of the plotted data as an encoded typed array.</param>
1243
1268
/// <paramname="y">Sets the y coordinates of the plotted data for the mid Y value.</param>
1269
+
/// <paramname="YEncoded">Sets the y coordinates of the plotted data for the mid Y value as an encoded typed array.</param>
1244
1270
/// <paramname="upper">Sets the y coordinates of the plotted data for the upper Y value.</param>
1271
+
/// <paramname="UpperEncoded">Sets the y coordinates of the plotted data for the upper Y value as an encoded typed array.</param>
1245
1272
/// <paramname="lower">Sets the y coordinates of the plotted data for the lower Y value.</param>
1273
+
/// <paramname="LowerEncoded">Sets the y coordinates of the plotted data for the lower Y value as an encoded typed array.</param>
1246
1274
/// <paramname="mode">Determines the drawing mode for this scatter trace.</param>
1247
1275
/// <paramname="Name">Sets the trace name of the mid Y values. The trace name appear as the legend item and on hover</param>
1248
1276
/// <paramname="GroupName">Sets the name of the legendgroup for the three traces of this plot.</param>
@@ -1285,6 +1313,10 @@ module Chart2D =
1285
1313
upper:seq<#IConvertible>,
1286
1314
lower:seq<#IConvertible>,
1287
1315
mode:StyleParam.Mode,
1316
+
?XEncoded:EncodedTypedArray,
1317
+
?YEncoded:EncodedTypedArray,
1318
+
?UpperEncoded:EncodedTypedArray,
1319
+
?LowerEncoded:EncodedTypedArray,
1288
1320
?Name:string,
1289
1321
?GroupName:string,
1290
1322
?ShowMarkers:bool,
@@ -1338,9 +1370,11 @@ module Chart2D =
1338
1370
1339
1371
lettrace=
1340
1372
Chart.Scatter(
1341
-
x = x,
1342
-
y = y,
1343
-
mode = changeMode mode,
1373
+
X = x,
1374
+
Y = y,
1375
+
?XEncoded = XEncoded,
1376
+
?YEncoded = YEncoded,
1377
+
Mode = changeMode mode,
1344
1378
?Name = Name,
1345
1379
?ShowLegend = ShowLegend,
1346
1380
?Text = Text,
@@ -1370,7 +1404,9 @@ module Chart2D =
1370
1404
Trace2D.initScatter (
1371
1405
Trace2DStyle.Scatter(
1372
1406
X = x,
1407
+
?XEncoded = XEncoded,
1373
1408
Y = lower,
1409
+
?YEncoded = LowerEncoded,
1374
1410
Mode = changeMode mode,
1375
1411
?FillColor = RangeColor,
1376
1412
?Name = Some lowerName,
@@ -1396,7 +1432,9 @@ module Chart2D =
1396
1432
Trace2D.initScatter (
1397
1433
Trace2DStyle.Scatter(
1398
1434
X = x,
1435
+
?XEncoded = XEncoded,
1399
1436
Y = upper,
1437
+
?YEncoded = UpperEncoded,
1400
1438
Mode = changeMode mode,
1401
1439
Fill = StyleParam.Fill.ToNext_y,
1402
1440
?FillColor = RangeColor,
@@ -1571,6 +1609,8 @@ module Chart2D =
1571
1609
/// <paramname="MarkerOutline">Sets the outline of the marker</param>
1572
1610
/// <paramname="MarkerSymbol">Sets the marker symbol for each datum</param>
1573
1611
/// <paramname="MultiMarkerSymbol">Sets the marker symbol for each individual datum</param>
1612
+
/// <paramname="XEncoded">Sets the x coordinates of the plotted data as an encoded typed array.</param>
1613
+
/// <paramname="YEncoded">Sets the y coordinates of the plotted data as an encoded typed array.</param>
1574
1614
/// <paramname="Marker">Sets the marker (use this for more finegrained control than the other marker-associated arguments)</param>
1575
1615
/// <paramname="LineColor">Sets the color of the line</param>
1576
1616
/// <paramname="LineColorScale">Sets the colorscale of the line</param>
@@ -1592,6 +1632,8 @@ module Chart2D =
1592
1632
(
1593
1633
x:seq<#IConvertible>,
1594
1634
y:seq<#IConvertible>,
1635
+
?XEncoded:EncodedTypedArray,
1636
+
?YEncoded:EncodedTypedArray,
1595
1637
?ShowMarkers:bool,
1596
1638
?Name:string,
1597
1639
?ShowLegend:bool,
@@ -1632,6 +1674,8 @@ module Chart2D =
1632
1674
Chart.Line(
1633
1675
x = x,
1634
1676
y = y,
1677
+
?XEncoded = XEncoded,
1678
+
?YEncoded = YEncoded,
1635
1679
Fill = StyleParam.Fill.ToZero_y,
1636
1680
?ShowMarkers = ShowMarkers,
1637
1681
?Name = Name,
@@ -1682,6 +1726,8 @@ module Chart2D =
1682
1726
/// <paramname="MarkerOutline">Sets the outline of the marker</param>
1683
1727
/// <paramname="MarkerSymbol">Sets the marker symbol for each datum</param>
1684
1728
/// <paramname="MultiMarkerSymbol">Sets the marker symbol for each individual datum</param>
1729
+
/// <paramname="XEncoded">Sets the x coordinates of the plotted data as an encoded typed array.</param>
1730
+
/// <paramname="YEncoded">Sets the y coordinates of the plotted data as an encoded typed array.</param>
1685
1731
/// <paramname="Marker">Sets the marker (use this for more finegrained control than the other marker-associated arguments)</param>
1686
1732
/// <paramname="LineColor">Sets the color of the line</param>
1687
1733
/// <paramname="LineColorScale">Sets the colorscale of the line</param>
@@ -1811,6 +1857,8 @@ module Chart2D =
1811
1857
(
1812
1858
x:seq<#IConvertible>,
1813
1859
y:seq<#IConvertible>,
1860
+
?XEncoded:EncodedTypedArray,
1861
+
?YEncoded:EncodedTypedArray,
1814
1862
?ShowMarkers:bool,
1815
1863
?Smoothing:float,
1816
1864
?Name:string,
@@ -1852,6 +1900,8 @@ module Chart2D =
1852
1900
Chart.Spline(
1853
1901
x = x,
1854
1902
y = y,
1903
+
?XEncoded = XEncoded,
1904
+
?YEncoded = YEncoded,
1855
1905
Fill = StyleParam.Fill.ToZero_y,
1856
1906
?ShowMarkers = ShowMarkers,
1857
1907
?Smoothing = Smoothing,
@@ -1903,6 +1953,8 @@ module Chart2D =
1903
1953
/// <paramname="MarkerOutline">Sets the outline of the marker</param>
1904
1954
/// <paramname="MarkerSymbol">Sets the marker symbol for each datum</param>
1905
1955
/// <paramname="MultiMarkerSymbol">Sets the marker symbol for each individual datum</param>
1956
+
/// <paramname="XEncoded">Sets the x coordinates of the plotted data as an encoded typed array.</param>
1957
+
/// <paramname="YEncoded">Sets the y coordinates of the plotted data as an encoded typed array.</param>
1906
1958
/// <paramname="Marker">Sets the marker (use this for more finegrained control than the other marker-associated arguments)</param>
1907
1959
/// <paramname="LineColor">Sets the color of the line</param>
1908
1960
/// <paramname="LineColorScale">Sets the colorscale of the line</param>
0 commit comments