Skip to content

Commit 2b4e4eb

Browse files
committed
Refactor Chart styling functions for subplots
1 parent ed542b1 commit 2b4e4eb

File tree

3 files changed

+562
-182
lines changed

3 files changed

+562
-182
lines changed

src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ module GenericChartExtensions =
380380
// Sets z-Axis of 3d- Charts
381381
[<CompiledName("WithZAxis")>]
382382
[<Extension>]
383-
member this.WithZAxis(zAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId) =
383+
member this.WithZAxis(zAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) =
384384
this |> Chart.withZAxis (zAxis, ?Id = Id)
385385

386386

@@ -621,13 +621,13 @@ module GenericChartExtensions =
621621
/// Sets a map for the given chart (will only work with traces supporting geo, e.g. choropleth, scattergeo)
622622
[<CompiledName("WithMap")>]
623623
[<Extension>]
624-
member this.WithGeo(geo: Geo, [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId) =
624+
member this.WithGeo(geo: Geo, [<Optional; DefaultParameterValue(null)>] ?Id: int) =
625625
this |> Chart.withGeo (geo, ?Id = Id)
626626

627627
/// Sets a mapbox for the given chart (will only work with traces supporting mapboxes, e.g. choroplethmapbox, scattermapbox)
628628
[<CompiledName("WithMapbox")>]
629629
[<Extension>]
630-
member this.withMapbox(mapBox: Mapbox, [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId) =
630+
member this.withMapbox(mapBox: Mapbox, [<Optional; DefaultParameterValue(null)>] ?Id: int) =
631631
this |> Chart.withMapbox (mapBox, ?Id = Id)
632632

633633

0 commit comments

Comments
 (0)