Skip to content

Commit c3823a2

Browse files
committed
Various dependency updates
1 parent 5969de8 commit c3823a2

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ public static GenericChart.GenericChart BubbleGeo<LongitudesType, LatitudesType,
436436
/// <param name="LineDash">sets the drawing style of the line</param>
437437
/// <param name="Line">Sets the line (use this for more finegrained control than the other line-associated arguments)</param>
438438
/// <param name="Below">Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".</param>
439+
/// <param name="EnableClustering">Wether or not to enable clustering for points</param>
440+
/// <param name="Cluster">Sets the clustering options (use this for more finegrained control than the other cluster-associated arguments)</param>
439441
/// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param>
440442
public static GenericChart.GenericChart ScatterMapbox<LongitudesType, LatitudesType, TextType>(
441443
IEnumerable<LongitudesType> longitudes,
@@ -461,6 +463,8 @@ public static GenericChart.GenericChart ScatterMapbox<LongitudesType, LatitudesT
461463
Optional<StyleParam.DrawingStyle> LineDash = default,
462464
Optional<Line> Line = default,
463465
Optional<string> Below = default,
466+
Optional<bool> EnableClustering = default,
467+
Optional<MapboxCluster> Cluster = default,
464468
Optional<bool> UseDefaults = default
465469
)
466470
where LongitudesType : IConvertible
@@ -491,6 +495,8 @@ public static GenericChart.GenericChart ScatterMapbox<LongitudesType, LatitudesT
491495
LineDash: LineDash.ToOption(),
492496
Line: Line.ToOption(),
493497
Below: Below.ToOption(),
498+
EnableClustering: EnableClustering.ToOption(),
499+
Cluster: Cluster.ToOption(),
494500
UseDefaults: UseDefaults.ToOption()
495501
);
496502

@@ -518,6 +524,8 @@ public static GenericChart.GenericChart ScatterMapbox<LongitudesType, LatitudesT
518524
/// <param name="MultiMarkerSymbol">Sets the marker symbol for each individual datum</param>
519525
/// <param name="Marker">Sets the marker (use this for more finegrained control than the other marker-associated arguments)</param>
520526
/// <param name="Below">Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".</param>
527+
/// <param name="EnableClustering">Wether or not to enable clustering for points</param>
528+
/// <param name="Cluster">Sets the clustering options (use this for more finegrained control than the other cluster-associated arguments)</param>
521529
/// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param>
522530
public static GenericChart.GenericChart PointMapbox<LongitudesType, LatitudesType, TextType>(
523531
IEnumerable<LongitudesType> longitudes,
@@ -537,6 +545,8 @@ public static GenericChart.GenericChart PointMapbox<LongitudesType, LatitudesTyp
537545
Optional<IEnumerable<StyleParam.MarkerSymbol>> MultiMarkerSymbol = default,
538546
Optional<Marker> Marker = default,
539547
Optional<string> Below = default,
548+
Optional<bool> EnableClustering = default,
549+
Optional<MapboxCluster> Cluster = default,
540550
Optional<bool> UseDefaults = default
541551
)
542552
where LongitudesType : IConvertible
@@ -561,6 +571,8 @@ public static GenericChart.GenericChart PointMapbox<LongitudesType, LatitudesTyp
561571
MultiMarkerSymbol: MultiMarkerSymbol.ToOption(),
562572
Marker: Marker.ToOption(),
563573
Below: Below.ToOption(),
574+
EnableClustering: EnableClustering.ToOption(),
575+
Cluster: Cluster.ToOption(),
564576
UseDefaults: UseDefaults.ToOption()
565577
);
566578

src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<ItemGroup>
3939
<None Include="..\..\docs\img\logo.png" Pack="true" PackagePath="\" />
40-
<PackageReference Include="Plotly.NET" Version="3.0.1" />
40+
<PackageReference Include="Plotly.NET" Version="4.0.0-preview.2" />
4141
</ItemGroup>
4242

4343
</Project>

src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
</ItemGroup>
3636

3737
<ItemGroup>
38-
<PackageReference Include="Plotly.NET" Version="3.*" />
38+
<PackageReference Include="Plotly.NET" Version="4.0.0-preview.2" />
3939
<PackageReference Include="DynamicObj" Version="2.0.0" />
40-
<PackageReference Include="PuppeteerSharp" Version="7.0.0" />
40+
<PackageReference Include="PuppeteerSharp" Version="9.0.2" />
4141
</ItemGroup>
4242

4343
</Project>

src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type PuppeteerSharpRenderer() =
6262
/// adapted from the original C# implementation by @ilyalatt : https://github.com/ilyalatt/Plotly.NET.PuppeteerRenderer
6363
///
6464
/// attempts to render a chart as static image of the given format with the given dimensions from the given html string
65-
let tryRenderAsync (browser: Browser) (width: int) (height: int) (format: StyleParam.ImageFormat) (html: string) =
65+
let tryRenderAsync (browser: IBrowser) (width: int) (height: int) (format: StyleParam.ImageFormat) (html: string) =
6666
task {
6767
let! page = browser.NewPageAsync() |> Async.AwaitTask
6868

src/Plotly.NET.Interactive/Formatters.fs

+1-12
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@ open Plotly.NET.GenericChart
55

66
module Formatters =
77

8-
let interactiveDoc =
9-
"""
10-
<div>
11-
[CHART]
12-
[DESCRIPTION]
13-
</div>
14-
"""
15-
168
/// Converts a GenericChart to it's HTML representation and embeds it in a div element, together with the chart description for display in notebook environments.
179
let toInteractiveHTML gChart =
18-
let chartMarkup = toChartHTML gChart
19-
let displayOpts = getDisplayOptions gChart
20-
21-
interactiveDoc.Replace("[CHART]", chartMarkup) |> DisplayOptions.replaceHtmlPlaceholders displayOpts
10+
toChartHTML gChart

src/Plotly.NET.Interactive/Plotly.NET.Interactive.fsproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
</ItemGroup>
5050

5151
<ItemGroup>
52-
<PackageReference Include="Plotly.NET" Version="3.*" />
53-
<PackageReference Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.22314.1" />
54-
<PackageReference Include="Microsoft.DotNet.Interactive.Formatting" Version="1.0.0-beta.22314.1" />
52+
<PackageReference Include="Plotly.NET" Version="4.0.0-preview.2" />
53+
<PackageReference Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.23102.2" />
54+
<PackageReference Include="Microsoft.DotNet.Interactive.Formatting" Version="1.0.0-beta.23102.2" />
5555
</ItemGroup>
5656

5757
</Project>

tests/Plotly.NET.ImageExport.Tests/Plotly.NET.ImageExport.Tests.fsproj

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<ProjectReference Include="..\..\src\Plotly.NET\Plotly.NET.fsproj" />
2423
<ProjectReference Include="..\..\src\Plotly.NET.ImageExport\Plotly.NET.ImageExport.fsproj" />
2524
</ItemGroup>
2625
</Project>

0 commit comments

Comments
 (0)