-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend Chart.Stack to work with both 3D and 2D Charts
- Loading branch information
Showing
7 changed files
with
151 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
namespace FSharp.Plotly | ||
|
||
open System | ||
|
||
|
||
/// Dimensions type inherits from dynamic object | ||
type Domain () = | ||
inherit DynamicObj () | ||
|
||
/// Initialized Dimensions object | ||
static member init | ||
( | ||
?X : StyleParam.Range, | ||
?Y : StyleParam.Range, | ||
?Row : int, | ||
?Column : int | ||
) = | ||
Domain () | ||
|> Domain.style | ||
( | ||
?X = X, | ||
?Y = Y, | ||
?Row = Row, | ||
?Column = Column | ||
) | ||
|
||
|
||
// Applies the styles to Dimensions() | ||
static member style | ||
( | ||
?X : StyleParam.Range, | ||
?Y : StyleParam.Range, | ||
?Row : int, | ||
?Column : int | ||
) = | ||
(fun (dom:Domain) -> | ||
X |> DynObj.setValueOptBy dom "x" StyleParam.Range.convert | ||
Y |> DynObj.setValueOptBy dom "y" StyleParam.Range.convert | ||
Row |> DynObj.setValueOpt dom "row" | ||
Column |> DynObj.setValueOpt dom "column" | ||
|
||
// out -> | ||
dom | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
namespace FSharp.Plotly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters