diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index b198419e0..7392ec494 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -6,13 +6,15 @@ "version": "5.2.2", "commands": [ "fantomas" - ] + ], + "rollForward": false }, "fsdocs-tool": { - "version": "19.1.1", + "version": "20.0.1", "commands": [ "fsdocs" - ] + ], + "rollForward": false } } } \ No newline at end of file diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 71631cc51..d7ccaafad 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,11 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x.x + dotnet-version: | + 8.x.x + # 9.x.x - name: make script executable run: chmod u+x build.sh - name: Build and test @@ -29,11 +31,13 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x.x + dotnet-version: | + 8.x.x + # 9.x.x - name: Build and test (includes netfx) working-directory: ./ run: ./build.cmd runtestsall diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..bc8371522 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,43 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at accounts@plot.ly. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/), and may also be found online at . diff --git a/Plotly.NET.sln b/Plotly.NET.sln index c94bc9d3a..ffbb0d4f8 100644 --- a/Plotly.NET.sln +++ b/Plotly.NET.sln @@ -42,14 +42,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{7B09CC0A-F docs\Dockerfile = docs\Dockerfile docs\index.fsx = docs\index.fsx docs\NuGet.config = docs\NuGet.config - docs\_template.html = docs\_template.html + docs\_head.html = docs\_head.html docs\_template.ipynb = docs\_template.ipynb EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "reference", "reference", "{5219BAC7-ACE6-435F-A983-BC63DD7B745E}" - ProjectSection(SolutionItems) = preProject - docs\reference\_template.html = docs\reference\_template.html - EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "content", "content", "{60FB82C0-F472-494E-BCF7-7B3C54212406}" ProjectSection(SolutionItems) = preProject @@ -89,8 +86,6 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "FSharpConsole", "tests\Cons EndProject Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "CoreTests", "tests\CoreTests\CoreTests\CoreTests.fsproj", "{DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSharpInteroperabilityTests", "tests\CoreTests\CSharpInteroperabilityTests\CSharpInteroperabilityTests.csproj", "{C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}" -EndProject Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "StrongNameTests", "tests\CoreTests\StrongNameTests\StrongNameTests.fsproj", "{32E187BB-D1D4-4864-A021-55A7A08E17EC}" EndProject Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ImageExportTests", "tests\ExtensionLibsTests\ImageExportTests\ImageExportTests.fsproj", "{A3693DD1-4D34-4B10-B310-07A4C7433F7D}" @@ -153,6 +148,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "01_chart-layout", "01_chart docs\chart-layout\axis-styling.fsx = docs\chart-layout\axis-styling.fsx docs\chart-layout\errorbars.fsx = docs\chart-layout\errorbars.fsx docs\chart-layout\layout_images.fsx = docs\chart-layout\layout_images.fsx + docs\chart-layout\legends.fsx = docs\chart-layout\legends.fsx docs\chart-layout\multiple-charts.fsx = docs\chart-layout\multiple-charts.fsx docs\chart-layout\shapes.fsx = docs\chart-layout\shapes.fsx docs\chart-layout\sliders.fsx = docs\chart-layout\sliders.fsx @@ -235,6 +231,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "data", "data", "{0D955C86-2 docs\data\volcano.csv = docs\data\volcano.csv EndProjectSection EndProject +Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "InteractiveTests", "tests\ExtensionLibsTests\InteractiveTests\InteractiveTests.fsproj", "{04BC8CE5-B096-46AD-AB1D-674305BAF59A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -290,12 +288,6 @@ Global {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}.Dotnet|Any CPU.Build.0 = Debug|Any CPU {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}.Release|Any CPU.ActiveCfg = Release|Any CPU {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}.Release|Any CPU.Build.0 = Release|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Dotnet|Any CPU.ActiveCfg = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Dotnet|Any CPU.Build.0 = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Release|Any CPU.Build.0 = Release|Any CPU {32E187BB-D1D4-4864-A021-55A7A08E17EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {32E187BB-D1D4-4864-A021-55A7A08E17EC}.Debug|Any CPU.Build.0 = Debug|Any CPU {32E187BB-D1D4-4864-A021-55A7A08E17EC}.Dotnet|Any CPU.ActiveCfg = Debug|Any CPU @@ -326,6 +318,12 @@ Global {18F778B2-3409-4309-8C9B-596109072481}.Dotnet|Any CPU.Build.0 = Debug|Any CPU {18F778B2-3409-4309-8C9B-596109072481}.Release|Any CPU.ActiveCfg = Release|Any CPU {18F778B2-3409-4309-8C9B-596109072481}.Release|Any CPU.Build.0 = Release|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Dotnet|Any CPU.ActiveCfg = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Dotnet|Any CPU.Build.0 = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -346,7 +344,6 @@ Global {029EBCB4-0E8B-40F8-B7AA-61B814FAE5A6} = {E8897848-2EF4-4126-9315-ADE0BA92D951} {598AB47B-EFE7-414A-B6EA-8C96B4AA7A4C} = {E8897848-2EF4-4126-9315-ADE0BA92D951} {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA} = {023425D8-B375-45ED-A29A-A3ED00C0E2BC} - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1} = {023425D8-B375-45ED-A29A-A3ED00C0E2BC} {32E187BB-D1D4-4864-A021-55A7A08E17EC} = {023425D8-B375-45ED-A29A-A3ED00C0E2BC} {A3693DD1-4D34-4B10-B310-07A4C7433F7D} = {02886FBB-DB32-4BBB-A93C-E13EBF453ACC} {1170E3A9-D83E-40B0-8D51-20485C76BE88} = {02886FBB-DB32-4BBB-A93C-E13EBF453ACC} @@ -368,6 +365,7 @@ Global {7432D5ED-0D0D-4F15-A3AC-CC2BFA4F211F} = {A9025690-FABC-4BD3-AC94-F31B60A948B4} {2DF92AB2-7B8C-48D5-B779-26BA1F31BCA1} = {A9025690-FABC-4BD3-AC94-F31B60A948B4} {0D955C86-2E86-4D50-828A-6CF5AD99A119} = {7B09CC0A-F1E1-4094-9DE4-B047581E01F0} + {04BC8CE5-B096-46AD-AB1D-674305BAF59A} = {02886FBB-DB32-4BBB-A93C-E13EBF453ACC} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {7177F1E1-341C-48AB-9864-6B525FFF7633} diff --git a/README.md b/README.md index 93b271a9b..9a70b85e8 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Build and test](https://github.com/plotly/Plotly.NET/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/plotly/Plotly.NET/actions/workflows/build-and-test.yml) [![](https://img.shields.io/nuget/vpre/Plotly.NET)](https://www.nuget.org/packages/Plotly.NET/) +[![](https://img.shields.io/nuget/dt/Plotly.NET)](https://www.nuget.org/packages/Plotly.NET/) [![Discord](https://img.shields.io/discord/836161044501889064?color=purple&label=Join%20our%20Discord%21&logo=discord&logoColor=white)](https://discord.gg/k3kUtFY8DB) ![](https://img.shields.io/badge/supported%20plotly.js%20version-2.27.1-blue) [![DOI](https://img.shields.io/badge/DOI-10.12688%2Ff1000research.123971.1-brightgreen)](https://doi.org/10.12688/f1000research.123971.1) diff --git a/build/ProjectInfo.fs b/build/ProjectInfo.fs index 089644062..4aa18309a 100644 --- a/build/ProjectInfo.fs +++ b/build/ProjectInfo.fs @@ -73,12 +73,10 @@ let testBaseProjects = [ // test projects (.NET) let CoreTestProject = ProjectInfo.create("CoreTests", "tests/CoreTests/CoreTests/CoreTests.fsproj") -let CSharpInteroperabilityTestProject = ProjectInfo.create("CSharpInteroperabilityTests", "tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj") /// contains project info about the core test projects let testProjectsCore = [ CoreTestProject - CSharpInteroperabilityTestProject ] let ImageExportTestProject = ProjectInfo.create("ImageExportTests", "tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj") diff --git a/docs/_head.html b/docs/_head.html new file mode 100644 index 000000000..70ba3ddc6 --- /dev/null +++ b/docs/_head.html @@ -0,0 +1,25 @@ + +{{fsdocs-page-title}} + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/_template.html b/docs/_template.html deleted file mode 100644 index bf223296e..000000000 --- a/docs/_template.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - {{fsdocs-page-title}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{fsdocs-watch-script}} - - - -
-
- -
-
-
-
- {{fsdocs-content}} -
-
-
- {{fsdocs-tooltips}} -
- - - - - - - - - - - diff --git a/docs/chart-layout/annotations.fsx b/docs/chart-layout/annotations.fsx index 7699cd6e8..bb8305574 100644 --- a/docs/chart-layout/annotations.fsx +++ b/docs/chart-layout/annotations.fsx @@ -71,3 +71,101 @@ annotations (***hide***) annotations |> GenericChart.toChartHTML (***include-it-raw***) + + +(** +## Annotations with logged axes + +When using log axes, the values for `X` or `Y` given in `Annotation.init` must be transformed as well even if the axis shows the expected value range. +*) + +let y_highrange = [ 2.; 15_000.; 1_600.; 1.5; 3.; 25_000; 25_000.; 15_000; 350; 1. ] + +// The default log axis is base 10 +let a_log = Annotation.init (X = 5., Y = log10 2_500., Text = "I'm at position
x=5, y=2500") + +let annotations_log = + Chart.Line(x = x, y = y_highrange, Name = "log_line") + |> Chart.withYAxis(LinearAxis.init(AxisType = StyleParam.AxisType.Log)) + |> Chart.withAnnotation a_log + +(*** condition: ipynb ***) +#if IPYNB +annotations_log +#endif // IPYNB + +(***hide***) +annotations_log |> GenericChart.toChartHTML +(***include-it-raw***) + + + +(** +## Multicharts + +Annotations can also be placed using coordinates proportional to the chart canvas, by setting the `XRef` and `YRef` to `"paper"`. +In multi-chart layouts, the reference can be set to the respective x, and y axis-component (e.g. `XRef = x3, YRef = y3` for the third chart within the chart grid). +*) + +// setting no reference, the annotation will be placed at the given x and y values in the first chart +let a_multichart1 = Annotation.init (X = 8, Y = 5.0, Text = "no ref defined") + +// setting the reference to specific x and y components, the annotation will be placed at the given x and y values in the chart defined by the ref-coordinates +let a_multichart2 = Annotation.init (X = 7, Y = 3.5, XRef = "x1", YRef = "y1", Text = "ref: x1 and y1") +let a_multichart3 = Annotation.init (X = 7, Y = 3.5, XRef = "x2", YRef = "y2", Text = "ref: x2 and y2") +let a_multichart4 = Annotation.init (X = 7, Y = 3.5, XRef = "x3", YRef = "y3", Text = "ref: x3 and y3") +let a_multichart5 = Annotation.init (X = 7, Y = 3.5, XRef = "x4", YRef = "y4", Text = "ref: x4 and y4") + +// setting the x and y reference to "paper", the annotation will be placed proportional to the chart canvas +let a_multichart6 = Annotation.init (X = 1.1, Y = 1.1, XRef = "paper", YRef = "paper", Text = "ref: paper@1.1") +let a_multichart7 = Annotation.init (X = 0.5, Y = 0.4, XRef = "paper", YRef = "paper", Text = "ref: paper@0.5") + + +let annotations_multi = + [ + Chart.Line(x = x, y = y, Name = "chart 1") + Chart.Line(x = x, y = y, Name = "chart 2") + Chart.Line(x = x, y = y, Name = "chart 3") + Chart.Line(x = x, y = y, Name = "chart 4") + ] + |> Chart.Grid(2, 2) + |> Chart.withAnnotations ([a_multichart1; a_multichart2; a_multichart3; a_multichart4; a_multichart5; a_multichart6; a_multichart7]) + +(*** condition: ipynb ***) +#if IPYNB +annotations_multi +#endif // IPYNB + +(***hide***) +annotations_multi |> GenericChart.toChartHTML +(***include-it-raw***) + +(** +In multi-chart layouts *with coupled axis*, the reference can be set to the respective coupled x, and y axis-component (e.g. `XRef = x1, YRef = y2` for the leftmost chart in the second row). +*) + +// setting the reference to specific x and y components with coupled axes, the annotation will be placed at the given x and y values in the chart defined by the ref-coordinates +let a_multichart_coupled_1 = Annotation.init (X = 7, Y = 3.5, XRef = "x1", YRef = "y1", Text = "ref: x1 and y1") +let a_multichart_coupled_2 = Annotation.init (X = 7, Y = 3.5, XRef = "x2", YRef = "y1", Text = "ref: x2 and y1") +let a_multichart_coupled_3 = Annotation.init (X = 7, Y = 3.5, XRef = "x2", YRef = "y2", Text = "ref: x2 and y2") +let a_multichart_coupled_4 = Annotation.init (X = 7, Y = 3.5, XRef = "x1", YRef = "y2", Text = "ref: x1 and y2") + + +let annotations_paper_coupled = + [ + Chart.Line(x = x, y = y, Name = "chart 1") + Chart.Line(x = x, y = y, Name = "chart 2") + Chart.Line(x = x, y = y, Name = "chart 3") + Chart.Line(x = x, y = y, Name = "chart 4") + ] + |> Chart.Grid(2, 2, Pattern = StyleParam.LayoutGridPattern.Coupled) + |> Chart.withAnnotations ([a_multichart_coupled_1; a_multichart_coupled_2; a_multichart_coupled_3; a_multichart_coupled_4]) + +(*** condition: ipynb ***) +#if IPYNB +annotations_paper_coupled +#endif // IPYNB + +(***hide***) +annotations_paper_coupled |> GenericChart.toChartHTML +(***include-it-raw***) diff --git a/docs/chart-layout/legends.fsx b/docs/chart-layout/legends.fsx new file mode 100644 index 000000000..a88d6ef5e --- /dev/null +++ b/docs/chart-layout/legends.fsx @@ -0,0 +1,196 @@ +(** +--- +title: Legends +category: Chart Layout +categoryindex: 2 +index: 9 +--- +*) + +(*** hide ***) + +(*** condition: prepare ***) +#r "nuget: Newtonsoft.JSON, 13.0.1" +#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" +#r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" + +Plotly.NET.Defaults.DefaultDisplayOptions <- + Plotly.NET.DisplayOptions.init (PlotlyJSReference = Plotly.NET.PlotlyJSReference.NoReference) + +(*** condition: ipynb ***) +#if IPYNB +#r "nuget: Plotly.NET, {{fsdocs-package-version}}" +#r "nuget: Plotly.NET.Interactive, {{fsdocs-package-version}}" +#endif // IPYNB + +(** +# Legends + +[![Binder]({{root}}img/badge-binder.svg)](https://mybinder.org/v2/gh/plotly/plotly.net/gh-pages?urlpath=/tree/home/jovyan/{{fsdocs-source-basename}}.ipynb)  +[![Notebook]({{root}}img/badge-notebook.svg)]({{root}}{{fsdocs-source-basename}}.ipynb) + +*Summary:* This example shows how to create Legends and add them to the Charts in F#. + +Let's first create some data for the purpose of creating example charts: + +*) + +open Plotly.NET + +let x = [ 1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10. ] +let y = [ 2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1. ] + +// note that legends are not shown on charts with only one trace, +// which is why we need to set the trace to visible manually on this chart +let simple_chart = Chart.Point(x, y, ShowLegend = true, Name = "test_chart") + +(** +## Creating a legend + +Legends are `LayoutObjects` that can be added to a chart's `Layout`. The `LayoutLegend.init` function is used to create a legend object, which can then be added to a chart using the `Chart.withLegend` function: +*) +open Plotly.NET.LayoutObjects + +let my_legend = + Legend.init ( + Title = Title.init("my first legend!"), + BorderColor = Color.fromString "black", + BorderWidth = 1 + ) + +let first_legend_chart = + simple_chart + |> Chart.withLegend my_legend + +(*** condition: ipynb ***) +#if IPYNB +first_legend_chart +#endif // IPYNB + +(***hide***) +first_legend_chart |> GenericChart.toChartHTML +(***include-it-raw***) + +(** +## Styling existing legends + +The `Chart.withLegendStyle` function can be used to update the style of an existing legend. +The following code will move the existing legend to the center bottom of the chart: +*) + +let styled_legend_chart = + first_legend_chart + |> Chart.withLegendStyle( + Orientation = StyleParam.Orientation.Horizontal, + X = 0.5, + XAnchor = StyleParam.XAnchorPosition.Center + ) + +(*** condition: ipynb ***) +#if IPYNB +styled_legend_chart +#endif // IPYNB + +(***hide***) +styled_legend_chart |> GenericChart.toChartHTML +(***include-it-raw***) + +(** +## Grouping legend items + +You can group multiple traces as a single legend item by setting the `LegendGroup` property of the individual traces to the same value: +*) + +let grouped_legend_chart = + [ + Chart.Point(x, y) + |> GenericChart.mapTrace ( + Trace2DStyle.Scatter( + LegendGroup = "Group A", + LegendGroupTitle = (Title.init (Text = "Group A")) + ) + ) + Chart.Point(y, x) + |> GenericChart.mapTrace ( + Trace2DStyle.Scatter( + LegendGroup = "Group A" + ) + ) + Chart.Point(y, y) + |> GenericChart.mapTrace ( + Trace2DStyle.Scatter( + LegendGroup = "Group B", + LegendGroupTitle = (Title.init (Text = "Group B")) + ) + ) + ] + |> Chart.combine + +(*** condition: ipynb ***) +#if IPYNB +grouped_legend_chart +#endif // IPYNB + +(***hide***) +grouped_legend_chart |> GenericChart.toChartHTML +(***include-it-raw***) + +(** +## Multiple legends + +Starting with Plotly.NET 5.0.0, the multiple legends feature from plotl.js v2.22+ is supported. + +However, plotly.js has a [regression bug starting from 2.24.3](https://github.com/plotly/plotly.js/issues/7023), which causes multiple legends to not display correctly + +This means that the referenced plotly.js version has to be changed to <2.24.3 to use this feature. Note that features introduced in plotly.js/.NET after this version will not work on a chart using that reference. +Future versions of plotly.js will hopefully fix this issue. + +Similarily to how multiple axes are handled, multiple legends are added by providing an additional `Id` argument when using the `Chart.withLegend` function: + +To select which legend a trace should belong to, use `Chart.withLegendAnchor` with the corresponding `id` argument. +*) + + +let multi_legend_chart = + [ + Chart.Point(x, y) + |> Chart.withLegendAnchor 1 + Chart.Point(y, x) + |> Chart.withLegendAnchor 2 + ] + |> Chart.combine + |> Chart.withLegend( + Legend.init( + BorderColor = Color.fromKeyword Blue, + BorderWidth = 2, + Title = Title.init( + Text = "Legend 1" + ) + ) + ) + |> Chart.withLegend( + Legend.init( + X = 0.75, + Y = 0.75, + BorderColor = Color.fromKeyword Red, + BorderWidth = 2, + Title = Title.init( + Text = "Legend 2" + ) + ), + Id = 2 + ) + // set lower plotly.js version to avoid regression bug + |> Chart.withDisplayOptionsStyle( + PlotlyJSReference = Plotly.NET.PlotlyJSReference.CDN "https://cdn.plot.ly/plotly-2.23.0.min.js" + ) + +(*** condition: ipynb ***) +#if IPYNB +multi_legend_chart +#endif // IPYNB + +(***hide***) +multi_legend_chart |> GenericChart.toEmbeddedHTML +(***include-it-raw***) \ No newline at end of file diff --git a/docs/chart-layout/multiple-charts.fsx b/docs/chart-layout/multiple-charts.fsx index b112742c1..ad6c17531 100644 --- a/docs/chart-layout/multiple-charts.fsx +++ b/docs/chart-layout/multiple-charts.fsx @@ -164,6 +164,9 @@ grid3 |> GenericChart.toChartHTML (***include-it-raw***) (** + +#### Coupled axes + Use `Pattern=StyleParam.LayoutGridPatter.Coupled` to use one shared x axis per column and one shared y axis per row. (Try zooming in the single subplots below) *) @@ -192,6 +195,37 @@ grid4 grid4 |> GenericChart.toChartHTML (***include-it-raw***) +(** + +#### Individual subplot titles + +You can set individual subplot titles by using the `SubPlotTitles` argument of the `Chart.Grid` function: +*) + +let grid5 = + [ Chart.Point(x = x, y = y, Name = "1,1") + |> Chart.withXAxisStyle "x1" + |> Chart.withYAxisStyle "y1" + Chart.Line(x = x, y = y, Name = "1,2") + |> Chart.withXAxisStyle "x2" + |> Chart.withYAxisStyle "y2" + Chart.Spline(x = x, y = y, Name = "2,1") + |> Chart.withXAxisStyle "x3" + |> Chart.withYAxisStyle "y3" + Chart.Point(x = x, y = y, Name = "2,2") + |> Chart.withXAxisStyle "x4" + |> Chart.withYAxisStyle "y4" ] + |> Chart.Grid(2, 2, SubPlotTitles = [ "First"; "Second"; "Third"; "Fourth" ]) + +(*** condition: ipynb ***) +#if IPYNB +grid5 +#endif // IPYNB + +(***hide***) +grid5 |> GenericChart.toChartHTML +(***include-it-raw***) + (** ### Chart.SingleStack @@ -311,8 +345,23 @@ let multipleTraceTypesGrid = Chart.BoxPlot(X = "y", Y = y, Name = "Combined 1", Jitter = 0.1, BoxPoints = StyleParam.BoxPoints.All) Chart.BoxPlot(X = "y'", Y = y, Name = "Combined 2", Jitter = 0.1, BoxPoints = StyleParam.BoxPoints.All) ] |> Chart.combine ] - |> Chart.Grid(nRows = 4, nCols = 3) - |> Chart.withSize (Width = 1000, Height = 1000) + |> Chart.Grid( + nRows = 4, + nCols = 3, + SubPlotTitles = [ + "2D Cartesian" + "3D Cartesian" + "Polar" + "Geo" + "MapBox" + "Ternary" + "Carpet" + "Pie" + "BubbleSmith" + "Combined 1" + ] + ) + |> Chart.withSize (Width = 1000, Height = 1500) (*** condition: ipynb ***) #if IPYNB @@ -327,7 +376,7 @@ multipleTraceTypesGrid |> GenericChart.toChartHTML If you are not sure if trace types are compatible, look at the `TraceIDs`: *) -let pointType = Chart.Point(xy = [ 1, 2 ]) |> GenericChart.getTraceID +Chart.Point(xy = [ 1, 2 ]) |> GenericChart.getTraceID (***include-it***) [ Chart.Point(xy = [ 1, 2 ]); Chart.PointTernary(abc = [ 1, 2, 3 ]) ] diff --git a/docs/chart-layout/update_menus.fsx b/docs/chart-layout/update_menus.fsx index 9ed6389f8..cd4986684 100644 --- a/docs/chart-layout/update_menus.fsx +++ b/docs/chart-layout/update_menus.fsx @@ -45,17 +45,26 @@ let data = let updateMenu = UpdateMenu.init ( - Buttons = - [ UpdateMenuButton.init ( - Args = [ "type"; "surface" ], - Label = "Surface", - Method = StyleParam.UpdateMethod.Restyle + Buttons = [ + UpdateMenuButton.init ( + Args = [ + let args = DynamicObj.DynamicObj() + args?("type") <- "surface" + args + ], + Label = "Surface", + Method = StyleParam.UpdateMethod.Restyle + ) + UpdateMenuButton.init ( + Args = [ + let args = DynamicObj.DynamicObj() + args?("type") <- "heatmap" + args + ], + Label = "Heatmap", + Method = StyleParam.UpdateMethod.Restyle ) - UpdateMenuButton.init ( - Args = [ "type"; "heatmap" ], - Label = "Heatmap", - Method = StyleParam.UpdateMethod.Restyle - ) ], + ], Direction = StyleParam.UpdateMenuDirection.Down, Pad = Padding.init (R = 10, T = 10), ShowActive = true, diff --git a/docs/content/fsdocs-custom.css b/docs/content/fsdocs-custom.css deleted file mode 100644 index 14a9d8f05..000000000 --- a/docs/content/fsdocs-custom.css +++ /dev/null @@ -1,13645 +0,0 @@ -@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:400,700"); -/*! bulma.io v0.9.2 | MIT License | github.com/jgthms/bulma */ -/* Bulma Utilities */ -.pagination-previous, -.pagination-next, -.pagination-link, -.pagination-ellipsis, .file-cta, -.file-name, .select select, .textarea, .input, .button { - -moz-appearance: none; - -webkit-appearance: none; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - border: 1px solid transparent; - border-radius: 4px; - -webkit-box-shadow: none; - box-shadow: none; - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - font-size: 1rem; - height: 2.5em; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - line-height: 1.5; - padding-bottom: calc(0.5em - 1px); - padding-left: calc(0.75em - 1px); - padding-right: calc(0.75em - 1px); - padding-top: calc(0.5em - 1px); - position: relative; - vertical-align: top; -} - - .pagination-previous:focus, - .pagination-next:focus, - .pagination-link:focus, - .pagination-ellipsis:focus, .file-cta:focus, - .file-name:focus, .select select:focus, .textarea:focus, .input:focus, .button:focus, .is-focused.pagination-previous, - .is-focused.pagination-next, - .is-focused.pagination-link, - .is-focused.pagination-ellipsis, .is-focused.file-cta, - .is-focused.file-name, .select select.is-focused, .is-focused.textarea, .is-focused.input, .is-focused.button, .pagination-previous:active, - .pagination-next:active, - .pagination-link:active, - .pagination-ellipsis:active, .file-cta:active, - .file-name:active, .select select:active, .textarea:active, .input:active, .button:active, .is-active.pagination-previous, .pagination-previous.active, - .is-active.pagination-next, - .pagination-next.active, - .is-active.pagination-link, - .pagination-link.active, - .is-active.pagination-ellipsis, - .pagination-ellipsis.active, .is-active.file-cta, .file-cta.active, - .is-active.file-name, - .file-name.active, .select select.is-active, .select select.active, .is-active.textarea, .textarea.active, .is-active.input, .input.active, .is-active.button, .button.active { - outline: none; - } - - [disabled].pagination-previous, - [disabled].pagination-next, - [disabled].pagination-link, - [disabled].pagination-ellipsis, [disabled].file-cta, - [disabled].file-name, .select select[disabled], [disabled].textarea, [disabled].input, [disabled].button, fieldset[disabled] .pagination-previous, - fieldset[disabled] .pagination-next, - fieldset[disabled] .pagination-link, - fieldset[disabled] .pagination-ellipsis, fieldset[disabled] .file-cta, - fieldset[disabled] .file-name, fieldset[disabled] .select select, .select fieldset[disabled] select, fieldset[disabled] .textarea, fieldset[disabled] .input, fieldset[disabled] .button { - cursor: not-allowed; - } - -.is-unselectable, .tabs, .pagination-previous, -.pagination-next, -.pagination-link, -.pagination-ellipsis, .breadcrumb, .file, .button { - -webkit-touch-callout: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.navbar-link:not(.is-arrowless)::after, .select:not(.is-multiple):not(.is-loading)::after { - border: 3px solid transparent; - border-radius: 2px; - border-right: 0; - border-top: 0; - content: " "; - display: block; - height: 0.625em; - margin-top: -0.4375em; - pointer-events: none; - position: absolute; - top: 50%; - -webkit-transform: rotate(-45deg); - -ms-transform: rotate(-45deg); - transform: rotate(-45deg); - -webkit-transform-origin: center; - -ms-transform-origin: center; - transform-origin: center; - width: 0.625em; -} - -.tabs:not(:last-child), .pagination:not(:last-child), .message:not(:last-child), .level:not(:last-child), .breadcrumb:not(:last-child), .highlight:not(:last-child), .block:not(:last-child), .title:not(:last-child), -.subtitle:not(:last-child), .table-container:not(:last-child), .table:not(:last-child), table:not(:last-child), .progress:not(:last-child), .notification:not(:last-child), .content:not(:last-child), .box:not(:last-child) { - margin-bottom: 1.5rem; -} - -.modal-close, .delete { - -webkit-touch-callout: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - -moz-appearance: none; - -webkit-appearance: none; - background-color: rgba(10, 10, 10, 0.2); - border: none; - border-radius: 290486px; - cursor: pointer; - pointer-events: auto; - display: inline-block; - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - font-size: 0; - height: 20px; - max-height: 20px; - max-width: 20px; - min-height: 20px; - min-width: 20px; - outline: none; - position: relative; - vertical-align: top; - width: 20px; -} - - .modal-close::before, .delete::before, .modal-close::after, .delete::after { - background-color: white; - content: ""; - display: block; - left: 50%; - position: absolute; - top: 50%; - -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg); - -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg); - transform: translateX(-50%) translateY(-50%) rotate(45deg); - -webkit-transform-origin: center center; - -ms-transform-origin: center center; - transform-origin: center center; - } - - .modal-close::before, .delete::before { - height: 2px; - width: 50%; - } - - .modal-close::after, .delete::after { - height: 50%; - width: 2px; - } - - .modal-close:hover, .delete:hover, .modal-close:focus, .delete:focus { - background-color: rgba(10, 10, 10, 0.3); - } - - .modal-close:active, .delete:active { - background-color: rgba(10, 10, 10, 0.4); - } - -.is-small.modal-close, .is-small.delete { - height: 16px; - max-height: 16px; - max-width: 16px; - min-height: 16px; - min-width: 16px; - width: 16px; -} - -.is-medium.modal-close, .is-medium.delete { - height: 24px; - max-height: 24px; - max-width: 24px; - min-height: 24px; - min-width: 24px; - width: 24px; -} - -.is-large.modal-close, .is-large.delete { - height: 32px; - max-height: 32px; - max-width: 32px; - min-height: 32px; - min-width: 32px; - width: 32px; -} - -.control.is-loading::after, .select.is-loading::after, .loader, .button.is-loading::after { - -webkit-animation: spinAround 500ms infinite linear; - animation: spinAround 500ms infinite linear; - border: 2px solid #dbdbdb; - border-radius: 290486px; - border-right-color: transparent; - border-top-color: transparent; - content: ""; - display: block; - height: 1em; - position: relative; - width: 1em; -} - -.hero-video, .is-overlay, .modal-background, .modal, .image.is-square img, -.image.is-square .has-ratio, .image.is-1by1 img, -.image.is-1by1 .has-ratio, .image.is-5by4 img, -.image.is-5by4 .has-ratio, .image.is-4by3 img, -.image.is-4by3 .has-ratio, .image.is-3by2 img, -.image.is-3by2 .has-ratio, .image.is-5by3 img, -.image.is-5by3 .has-ratio, .image.is-16by9 img, -.image.is-16by9 .has-ratio, .image.is-2by1 img, -.image.is-2by1 .has-ratio, .image.is-3by1 img, -.image.is-3by1 .has-ratio, .image.is-4by5 img, -.image.is-4by5 .has-ratio, .image.is-3by4 img, -.image.is-3by4 .has-ratio, .image.is-2by3 img, -.image.is-2by3 .has-ratio, .image.is-3by5 img, -.image.is-3by5 .has-ratio, .image.is-9by16 img, -.image.is-9by16 .has-ratio, .image.is-1by2 img, -.image.is-1by2 .has-ratio, .image.is-1by3 img, -.image.is-1by3 .has-ratio { - bottom: 0; - left: 0; - position: absolute; - right: 0; - top: 0; -} - -/* Bulma Base */ -/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */ -html, -body, -p, -ol, -ul, -li, -dl, -dt, -dd, -blockquote, -figure, -fieldset, -legend, -textarea, -pre, -iframe, -hr, -h1, -h2, -h3, -h4, -h5, -h6 { - margin: 0; - padding: 0; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - font-size: 100%; - font-weight: normal; -} - -ul { - list-style: none; -} - -button, -input, -select, -textarea { - margin: 0; -} - -html { - -webkit-box-sizing: border-box; - box-sizing: border-box; -} - -*, *::before, *::after { - -webkit-box-sizing: inherit; - box-sizing: inherit; -} - -img, -video { - height: auto; - max-width: 100%; -} - -iframe { - border: 0; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -td, -th { - padding: 0; -} - - td:not([align]), - th:not([align]) { - text-align: inherit; - } - -html { - background-color: white; - font-size: 16px; - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - min-width: 300px; - overflow-x: hidden; - overflow-y: scroll; - text-rendering: optimizeLegibility; - -webkit-text-size-adjust: 100%; - -moz-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - text-size-adjust: 100%; -} - -article, -aside, -figure, -footer, -header, -hgroup, -section { - display: block; -} - -body, -button, -input, -optgroup, -select, -textarea { - font-family: "Nunito", sans-serif; -} - -code, -pre { - -moz-osx-font-smoothing: auto; - -webkit-font-smoothing: auto; - font-family: monospace; -} - -body { - color: #4a4a4a; - font-size: 1em; - font-weight: 400; - line-height: 1.5; -} - -a { - color: #378BBA; - cursor: pointer; - text-decoration: none; -} - - a strong { - color: currentColor; - } - - a:hover { - color: #A00975; - } - -code { - background-color: whitesmoke; - color: #da1039; - font-size: 0.875em; - font-weight: normal; - padding: 0.25em 0.5em 0.25em; -} - -p code { - background-color: whitesmoke !important; - color: #a00975 !important; - font-size: 0.875em; - font-weight: normal; - padding: 0.25em 0.25em 0.25em 0.25em !important; - border-radius: 0.25em; -} - -hr { - background-color: whitesmoke; - border: none; - display: block; - height: 2px; - margin: 1.5rem 0; -} - -img { - height: auto; - max-width: 100%; -} - -input[type="checkbox"], -input[type="radio"] { - vertical-align: baseline; -} - -small { - font-size: 0.875em; -} - -span { - font-style: inherit; - font-weight: inherit; -} - -strong { - color: #363636; - font-weight: 700; -} - -fieldset { - border: none; -} - -pre { - -webkit-overflow-scrolling: touch; - background-color: whitesmoke; - color: #4a4a4a; - font-size: 0.875em; - overflow-x: auto; - padding: 1.25rem 1.5rem; - white-space: pre; - word-wrap: normal; -} - - pre code { - background-color: transparent; - color: currentColor; - font-size: 1em; - padding: 0; - } - -table td, -table th { - vertical-align: top; -} - - table td:not([align]), - table th:not([align]) { - text-align: inherit; - } - -table th { - color: #363636; -} - -@-webkit-keyframes spinAround { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - - to { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} - -@keyframes spinAround { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - - to { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} - -/* Bulma Elements */ -.box { - background-color: white; - border-radius: 6px; - -webkit-box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - color: #4a4a4a; - display: block; - padding: 1.25rem; -} - -a.box:hover, a.box:focus { - -webkit-box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px #378BBA; - box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px #378BBA; -} - -a.box:active { - -webkit-box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #378BBA; - box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #378BBA; -} - -.button { - background-color: white; - border-color: #dbdbdb; - border-width: 1px; - color: #363636; - cursor: pointer; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - padding-bottom: calc(0.5em - 1px); - padding-left: 1em; - padding-right: 1em; - padding-top: calc(0.5em - 1px); - text-align: center; - white-space: nowrap; -} - - .button strong { - color: inherit; - } - - .button .icon, .button .icon.is-small, .button .icon.is-medium, .button .icon.is-large { - height: 1.5em; - width: 1.5em; - } - - .button .icon:first-child:not(:last-child) { - margin-left: calc(-0.5em - 1px); - margin-right: 0.25em; - } - - .button .icon:last-child:not(:first-child) { - margin-left: 0.25em; - margin-right: calc(-0.5em - 1px); - } - - .button .icon:first-child:last-child { - margin-left: calc(-0.5em - 1px); - margin-right: calc(-0.5em - 1px); - } - - .button:hover, .button.is-hovered { - border-color: #b5b5b5; - color: #A00975; - } - - .button:focus, .button.is-focused { - border-color: #3273dc; - color: #363636; - } - - .button:focus:not(:active), .button.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - } - - .button:active, .button.is-active, .button.active { - border-color: #4a4a4a; - color: #363636; - } - - .button.is-text { - background-color: transparent; - border-color: transparent; - color: #4a4a4a; - text-decoration: underline; - } - - .button.is-text:hover, .button.is-text.is-hovered, .button.is-text:focus, .button.is-text.is-focused { - background-color: whitesmoke; - color: #363636; - } - - .button.is-text:active, .button.is-text.is-active, .is-text.active { - background-color: #e8e8e8; - color: #363636; - } - - .button.is-text[disabled], fieldset[disabled] .button.is-text { - background-color: transparent; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-ghost { - background: none; - border-color: transparent; - color: #378BBA; - text-decoration: none; - } - - .button.is-ghost:hover, .button.is-ghost.is-hovered { - color: #378BBA; - text-decoration: underline; - } - - .button.is-white { - background-color: white; - border-color: transparent; - color: #0a0a0a; - } - - .button.is-white:hover, .button.is-white.is-hovered { - background-color: #f9f9f9; - border-color: transparent; - color: #0a0a0a; - } - - .button.is-white:focus, .button.is-white.is-focused { - border-color: transparent; - color: #0a0a0a; - } - - .button.is-white:focus:not(:active), .button.is-white.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); - box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); - } - - .button.is-white:active, .button.is-white.is-active, .is-white.active { - background-color: #f2f2f2; - border-color: transparent; - color: #0a0a0a; - } - - .button.is-white[disabled], fieldset[disabled] .button.is-white { - background-color: white; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-white.is-inverted { - background-color: #0a0a0a; - color: white; - } - - .button.is-white.is-inverted:hover, .button.is-white.is-inverted.is-hovered { - background-color: black; - } - - .button.is-white.is-inverted[disabled], fieldset[disabled] .button.is-white.is-inverted { - background-color: #0a0a0a; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: white; - } - - .button.is-white.is-loading::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; - } - - .button.is-white.is-outlined { - background-color: transparent; - border-color: white; - color: white; - } - - .button.is-white.is-outlined:hover, .button.is-white.is-outlined.is-hovered, .button.is-white.is-outlined:focus, .button.is-white.is-outlined.is-focused { - background-color: white; - border-color: white; - color: #0a0a0a; - } - - .button.is-white.is-outlined.is-loading::after { - border-color: transparent transparent white white !important; - } - - .button.is-white.is-outlined.is-loading:hover::after, .button.is-white.is-outlined.is-loading.is-hovered::after, .button.is-white.is-outlined.is-loading:focus::after, .button.is-white.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; - } - - .button.is-white.is-outlined[disabled], fieldset[disabled] .button.is-white.is-outlined { - background-color: transparent; - border-color: white; - -webkit-box-shadow: none; - box-shadow: none; - color: white; - } - - .button.is-white.is-inverted.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - color: #0a0a0a; - } - - .button.is-white.is-inverted.is-outlined:hover, .button.is-white.is-inverted.is-outlined.is-hovered, .button.is-white.is-inverted.is-outlined:focus, .button.is-white.is-inverted.is-outlined.is-focused { - background-color: #0a0a0a; - color: white; - } - - .button.is-white.is-inverted.is-outlined.is-loading:hover::after, .button.is-white.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-white.is-inverted.is-outlined.is-loading:focus::after, .button.is-white.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent white white !important; - } - - .button.is-white.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-white.is-inverted.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - -webkit-box-shadow: none; - box-shadow: none; - color: #0a0a0a; - } - - .button.is-black { - background-color: #0a0a0a; - border-color: transparent; - color: white; - } - - .button.is-black:hover, .button.is-black.is-hovered { - background-color: #040404; - border-color: transparent; - color: white; - } - - .button.is-black:focus, .button.is-black.is-focused { - border-color: transparent; - color: white; - } - - .button.is-black:focus:not(:active), .button.is-black.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); - box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); - } - - .button.is-black:active, .button.is-black.is-active, .is-black.active { - background-color: black; - border-color: transparent; - color: white; - } - - .button.is-black[disabled], fieldset[disabled] .button.is-black { - background-color: #0a0a0a; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-black.is-inverted { - background-color: white; - color: #0a0a0a; - } - - .button.is-black.is-inverted:hover, .button.is-black.is-inverted.is-hovered { - background-color: #f2f2f2; - } - - .button.is-black.is-inverted[disabled], fieldset[disabled] .button.is-black.is-inverted { - background-color: white; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #0a0a0a; - } - - .button.is-black.is-loading::after { - border-color: transparent transparent white white !important; - } - - .button.is-black.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - color: #0a0a0a; - } - - .button.is-black.is-outlined:hover, .button.is-black.is-outlined.is-hovered, .button.is-black.is-outlined:focus, .button.is-black.is-outlined.is-focused { - background-color: #0a0a0a; - border-color: #0a0a0a; - color: white; - } - - .button.is-black.is-outlined.is-loading::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; - } - - .button.is-black.is-outlined.is-loading:hover::after, .button.is-black.is-outlined.is-loading.is-hovered::after, .button.is-black.is-outlined.is-loading:focus::after, .button.is-black.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent white white !important; - } - - .button.is-black.is-outlined[disabled], fieldset[disabled] .button.is-black.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - -webkit-box-shadow: none; - box-shadow: none; - color: #0a0a0a; - } - - .button.is-black.is-inverted.is-outlined { - background-color: transparent; - border-color: white; - color: white; - } - - .button.is-black.is-inverted.is-outlined:hover, .button.is-black.is-inverted.is-outlined.is-hovered, .button.is-black.is-inverted.is-outlined:focus, .button.is-black.is-inverted.is-outlined.is-focused { - background-color: white; - color: #0a0a0a; - } - - .button.is-black.is-inverted.is-outlined.is-loading:hover::after, .button.is-black.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-black.is-inverted.is-outlined.is-loading:focus::after, .button.is-black.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; - } - - .button.is-black.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-black.is-inverted.is-outlined { - background-color: transparent; - border-color: white; - -webkit-box-shadow: none; - box-shadow: none; - color: white; - } - - .button.is-light { - background-color: whitesmoke; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-light:hover, .button.is-light.is-hovered { - background-color: #eeeeee; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-light:focus, .button.is-light.is-focused { - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-light:focus:not(:active), .button.is-light.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); - box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); - } - - .button.is-light:active, .button.is-light.is-active, .is-light.active { - background-color: #e8e8e8; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-light[disabled], fieldset[disabled] .button.is-light { - background-color: whitesmoke; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-light.is-inverted { - background-color: rgba(0, 0, 0, 0.7); - color: whitesmoke; - } - - .button.is-light.is-inverted:hover, .button.is-light.is-inverted.is-hovered { - background-color: rgba(0, 0, 0, 0.7); - } - - .button.is-light.is-inverted[disabled], fieldset[disabled] .button.is-light.is-inverted { - background-color: rgba(0, 0, 0, 0.7); - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: whitesmoke; - } - - .button.is-light.is-loading::after { - border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; - } - - .button.is-light.is-outlined { - background-color: transparent; - border-color: whitesmoke; - color: whitesmoke; - } - - .button.is-light.is-outlined:hover, .button.is-light.is-outlined.is-hovered, .button.is-light.is-outlined:focus, .button.is-light.is-outlined.is-focused { - background-color: whitesmoke; - border-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-light.is-outlined.is-loading::after { - border-color: transparent transparent whitesmoke whitesmoke !important; - } - - .button.is-light.is-outlined.is-loading:hover::after, .button.is-light.is-outlined.is-loading.is-hovered::after, .button.is-light.is-outlined.is-loading:focus::after, .button.is-light.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; - } - - .button.is-light.is-outlined[disabled], fieldset[disabled] .button.is-light.is-outlined { - background-color: transparent; - border-color: whitesmoke; - -webkit-box-shadow: none; - box-shadow: none; - color: whitesmoke; - } - - .button.is-light.is-inverted.is-outlined { - background-color: transparent; - border-color: rgba(0, 0, 0, 0.7); - color: rgba(0, 0, 0, 0.7); - } - - .button.is-light.is-inverted.is-outlined:hover, .button.is-light.is-inverted.is-outlined.is-hovered, .button.is-light.is-inverted.is-outlined:focus, .button.is-light.is-inverted.is-outlined.is-focused { - background-color: rgba(0, 0, 0, 0.7); - color: whitesmoke; - } - - .button.is-light.is-inverted.is-outlined.is-loading:hover::after, .button.is-light.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-light.is-inverted.is-outlined.is-loading:focus::after, .button.is-light.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent whitesmoke whitesmoke !important; - } - - .button.is-light.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-light.is-inverted.is-outlined { - background-color: transparent; - border-color: rgba(0, 0, 0, 0.7); - -webkit-box-shadow: none; - box-shadow: none; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-dark { - background-color: #200117; - border-color: transparent; - color: #fff; - } - - .button.is-dark:hover, .button.is-dark.is-hovered { - background-color: #14010e; - border-color: transparent; - color: #fff; - } - - .button.is-dark:focus, .button.is-dark.is-focused { - border-color: transparent; - color: #fff; - } - - .button.is-dark:focus:not(:active), .button.is-dark.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(32, 1, 23, 0.25); - box-shadow: 0 0 0 0.125em rgba(32, 1, 23, 0.25); - } - - .button.is-dark:active, .button.is-dark.is-active, .is-dark.active { - background-color: #070005; - border-color: transparent; - color: #fff; - } - - .button.is-dark[disabled], fieldset[disabled] .button.is-dark { - background-color: #200117; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-dark.is-inverted { - background-color: #fff; - color: #200117; - } - - .button.is-dark.is-inverted:hover, .button.is-dark.is-inverted.is-hovered { - background-color: #f2f2f2; - } - - .button.is-dark.is-inverted[disabled], fieldset[disabled] .button.is-dark.is-inverted { - background-color: #fff; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #200117; - } - - .button.is-dark.is-loading::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-dark.is-outlined { - background-color: transparent; - border-color: #200117; - color: #200117; - } - - .button.is-dark.is-outlined:hover, .button.is-dark.is-outlined.is-hovered, .button.is-dark.is-outlined:focus, .button.is-dark.is-outlined.is-focused { - background-color: #200117; - border-color: #200117; - color: #fff; - } - - .button.is-dark.is-outlined.is-loading::after { - border-color: transparent transparent #200117 #200117 !important; - } - - .button.is-dark.is-outlined.is-loading:hover::after, .button.is-dark.is-outlined.is-loading.is-hovered::after, .button.is-dark.is-outlined.is-loading:focus::after, .button.is-dark.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-dark.is-outlined[disabled], fieldset[disabled] .button.is-dark.is-outlined { - background-color: transparent; - border-color: #200117; - -webkit-box-shadow: none; - box-shadow: none; - color: #200117; - } - - .button.is-dark.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; - } - - .button.is-dark.is-inverted.is-outlined:hover, .button.is-dark.is-inverted.is-outlined.is-hovered, .button.is-dark.is-inverted.is-outlined:focus, .button.is-dark.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #200117; - } - - .button.is-dark.is-inverted.is-outlined.is-loading:hover::after, .button.is-dark.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-dark.is-inverted.is-outlined.is-loading:focus::after, .button.is-dark.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #200117 #200117 !important; - } - - .button.is-dark.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-dark.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - } - - .button.is-primary { - background-color: #A00975; - border-color: transparent; - color: #fff; - } - - .button.is-primary:hover, .button.is-primary.is-hovered { - background-color: #94086c; - border-color: transparent; - color: #fff; - } - - .button.is-primary:focus, .button.is-primary.is-focused { - border-color: transparent; - color: #fff; - } - - .button.is-primary:focus:not(:active), .button.is-primary.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(160, 9, 117, 0.25); - box-shadow: 0 0 0 0.125em rgba(160, 9, 117, 0.25); - } - - .button.is-primary:active, .button.is-primary.is-active, .is-primary.active { - background-color: #880863; - border-color: transparent; - color: #fff; - } - - .button.is-primary[disabled], fieldset[disabled] .button.is-primary { - background-color: #A00975; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-primary.is-inverted { - background-color: #fff; - color: #A00975; - } - - .button.is-primary.is-inverted:hover, .button.is-primary.is-inverted.is-hovered { - background-color: #f2f2f2; - } - - .button.is-primary.is-inverted[disabled], fieldset[disabled] .button.is-primary.is-inverted { - background-color: #fff; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #A00975; - } - - .button.is-primary.is-loading::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-primary.is-outlined { - background-color: transparent; - border-color: #A00975; - color: #A00975; - } - - .button.is-primary.is-outlined:hover, .button.is-primary.is-outlined.is-hovered, .button.is-primary.is-outlined:focus, .button.is-primary.is-outlined.is-focused { - background-color: #A00975; - border-color: #A00975; - color: #fff; - } - - .button.is-primary.is-outlined.is-loading::after { - border-color: transparent transparent #A00975 #A00975 !important; - } - - .button.is-primary.is-outlined.is-loading:hover::after, .button.is-primary.is-outlined.is-loading.is-hovered::after, .button.is-primary.is-outlined.is-loading:focus::after, .button.is-primary.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-primary.is-outlined[disabled], fieldset[disabled] .button.is-primary.is-outlined { - background-color: transparent; - border-color: #A00975; - -webkit-box-shadow: none; - box-shadow: none; - color: #A00975; - } - - .button.is-primary.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; - } - - .button.is-primary.is-inverted.is-outlined:hover, .button.is-primary.is-inverted.is-outlined.is-hovered, .button.is-primary.is-inverted.is-outlined:focus, .button.is-primary.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #A00975; - } - - .button.is-primary.is-inverted.is-outlined.is-loading:hover::after, .button.is-primary.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-primary.is-inverted.is-outlined.is-loading:focus::after, .button.is-primary.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #A00975 #A00975 !important; - } - - .button.is-primary.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-primary.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - } - - .button.is-primary.is-light { - background-color: #feecf9; - color: #f212b2; - } - - .button.is-primary.is-light:hover, .button.is-primary.is-light.is-hovered { - background-color: #fde0f5; - border-color: transparent; - color: #f212b2; - } - - .button.is-primary.is-light:active, .button.is-primary.is-light.is-active, .is-light.active { - background-color: #fdd4f1; - border-color: transparent; - color: #f212b2; - } - - .button.is-link { - background-color: #378BBA; - border-color: transparent; - color: #fff; - } - - .button.is-link:hover, .button.is-link.is-hovered { - background-color: #3484b0; - border-color: transparent; - color: #fff; - } - - .button.is-link:focus, .button.is-link.is-focused { - border-color: transparent; - color: #fff; - } - - .button.is-link:focus:not(:active), .button.is-link.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - } - - .button.is-link:active, .button.is-link.is-active, .is-link.active { - background-color: #317ca6; - border-color: transparent; - color: #fff; - } - - .button.is-link[disabled], fieldset[disabled] .button.is-link { - background-color: #378BBA; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-link.is-inverted { - background-color: #fff; - color: #378BBA; - } - - .button.is-link.is-inverted:hover, .button.is-link.is-inverted.is-hovered { - background-color: #f2f2f2; - } - - .button.is-link.is-inverted[disabled], fieldset[disabled] .button.is-link.is-inverted { - background-color: #fff; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #378BBA; - } - - .button.is-link.is-loading::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-link.is-outlined { - background-color: transparent; - border-color: #378BBA; - color: #378BBA; - } - - .button.is-link.is-outlined:hover, .button.is-link.is-outlined.is-hovered, .button.is-link.is-outlined:focus, .button.is-link.is-outlined.is-focused { - background-color: #378BBA; - border-color: #378BBA; - color: #fff; - } - - .button.is-link.is-outlined.is-loading::after { - border-color: transparent transparent #378BBA #378BBA !important; - } - - .button.is-link.is-outlined.is-loading:hover::after, .button.is-link.is-outlined.is-loading.is-hovered::after, .button.is-link.is-outlined.is-loading:focus::after, .button.is-link.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-link.is-outlined[disabled], fieldset[disabled] .button.is-link.is-outlined { - background-color: transparent; - border-color: #378BBA; - -webkit-box-shadow: none; - box-shadow: none; - color: #378BBA; - } - - .button.is-link.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; - } - - .button.is-link.is-inverted.is-outlined:hover, .button.is-link.is-inverted.is-outlined.is-hovered, .button.is-link.is-inverted.is-outlined:focus, .button.is-link.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #378BBA; - } - - .button.is-link.is-inverted.is-outlined.is-loading:hover::after, .button.is-link.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-link.is-inverted.is-outlined.is-loading:focus::after, .button.is-link.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #378BBA #378BBA !important; - } - - .button.is-link.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-link.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - } - - .button.is-link.is-light { - background-color: #eff6fa; - color: #317ca5; - } - - .button.is-link.is-light:hover, .button.is-link.is-light.is-hovered { - background-color: #e5f1f7; - border-color: transparent; - color: #317ca5; - } - - .button.is-link.is-light:active, .button.is-link.is-light.is-active, .is-light.active { - background-color: #dcecf5; - border-color: transparent; - color: #317ca5; - } - - .button.is-info { - background-color: #3298dc; - border-color: transparent; - color: #fff; - } - - .button.is-info:hover, .button.is-info.is-hovered { - background-color: #2793da; - border-color: transparent; - color: #fff; - } - - .button.is-info:focus, .button.is-info.is-focused { - border-color: transparent; - color: #fff; - } - - .button.is-info:focus:not(:active), .button.is-info.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(50, 152, 220, 0.25); - box-shadow: 0 0 0 0.125em rgba(50, 152, 220, 0.25); - } - - .button.is-info:active, .button.is-info.is-active, .is-info.active { - background-color: #238cd1; - border-color: transparent; - color: #fff; - } - - .button.is-info[disabled], fieldset[disabled] .button.is-info { - background-color: #3298dc; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-info.is-inverted { - background-color: #fff; - color: #3298dc; - } - - .button.is-info.is-inverted:hover, .button.is-info.is-inverted.is-hovered { - background-color: #f2f2f2; - } - - .button.is-info.is-inverted[disabled], fieldset[disabled] .button.is-info.is-inverted { - background-color: #fff; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #3298dc; - } - - .button.is-info.is-loading::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-info.is-outlined { - background-color: transparent; - border-color: #3298dc; - color: #3298dc; - } - - .button.is-info.is-outlined:hover, .button.is-info.is-outlined.is-hovered, .button.is-info.is-outlined:focus, .button.is-info.is-outlined.is-focused { - background-color: #3298dc; - border-color: #3298dc; - color: #fff; - } - - .button.is-info.is-outlined.is-loading::after { - border-color: transparent transparent #3298dc #3298dc !important; - } - - .button.is-info.is-outlined.is-loading:hover::after, .button.is-info.is-outlined.is-loading.is-hovered::after, .button.is-info.is-outlined.is-loading:focus::after, .button.is-info.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-info.is-outlined[disabled], fieldset[disabled] .button.is-info.is-outlined { - background-color: transparent; - border-color: #3298dc; - -webkit-box-shadow: none; - box-shadow: none; - color: #3298dc; - } - - .button.is-info.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; - } - - .button.is-info.is-inverted.is-outlined:hover, .button.is-info.is-inverted.is-outlined.is-hovered, .button.is-info.is-inverted.is-outlined:focus, .button.is-info.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #3298dc; - } - - .button.is-info.is-inverted.is-outlined.is-loading:hover::after, .button.is-info.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-info.is-inverted.is-outlined.is-loading:focus::after, .button.is-info.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #3298dc #3298dc !important; - } - - .button.is-info.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-info.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - } - - .button.is-info.is-light { - background-color: #eef6fc; - color: #1d72aa; - } - - .button.is-info.is-light:hover, .button.is-info.is-light.is-hovered { - background-color: #e3f1fa; - border-color: transparent; - color: #1d72aa; - } - - .button.is-info.is-light:active, .button.is-info.is-light.is-active, .is-light.active { - background-color: #d8ebf8; - border-color: transparent; - color: #1d72aa; - } - - .button.is-success { - background-color: #48c774; - border-color: transparent; - color: #fff; - } - - .button.is-success:hover, .button.is-success.is-hovered { - background-color: #3ec46d; - border-color: transparent; - color: #fff; - } - - .button.is-success:focus, .button.is-success.is-focused { - border-color: transparent; - color: #fff; - } - - .button.is-success:focus:not(:active), .button.is-success.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(72, 199, 116, 0.25); - box-shadow: 0 0 0 0.125em rgba(72, 199, 116, 0.25); - } - - .button.is-success:active, .button.is-success.is-active, .is-success.active { - background-color: #3abb67; - border-color: transparent; - color: #fff; - } - - .button.is-success[disabled], fieldset[disabled] .button.is-success { - background-color: #48c774; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-success.is-inverted { - background-color: #fff; - color: #48c774; - } - - .button.is-success.is-inverted:hover, .button.is-success.is-inverted.is-hovered { - background-color: #f2f2f2; - } - - .button.is-success.is-inverted[disabled], fieldset[disabled] .button.is-success.is-inverted { - background-color: #fff; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #48c774; - } - - .button.is-success.is-loading::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-success.is-outlined { - background-color: transparent; - border-color: #48c774; - color: #48c774; - } - - .button.is-success.is-outlined:hover, .button.is-success.is-outlined.is-hovered, .button.is-success.is-outlined:focus, .button.is-success.is-outlined.is-focused { - background-color: #48c774; - border-color: #48c774; - color: #fff; - } - - .button.is-success.is-outlined.is-loading::after { - border-color: transparent transparent #48c774 #48c774 !important; - } - - .button.is-success.is-outlined.is-loading:hover::after, .button.is-success.is-outlined.is-loading.is-hovered::after, .button.is-success.is-outlined.is-loading:focus::after, .button.is-success.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-success.is-outlined[disabled], fieldset[disabled] .button.is-success.is-outlined { - background-color: transparent; - border-color: #48c774; - -webkit-box-shadow: none; - box-shadow: none; - color: #48c774; - } - - .button.is-success.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; - } - - .button.is-success.is-inverted.is-outlined:hover, .button.is-success.is-inverted.is-outlined.is-hovered, .button.is-success.is-inverted.is-outlined:focus, .button.is-success.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #48c774; - } - - .button.is-success.is-inverted.is-outlined.is-loading:hover::after, .button.is-success.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-success.is-inverted.is-outlined.is-loading:focus::after, .button.is-success.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #48c774 #48c774 !important; - } - - .button.is-success.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-success.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - } - - .button.is-success.is-light { - background-color: #effaf3; - color: #257942; - } - - .button.is-success.is-light:hover, .button.is-success.is-light.is-hovered { - background-color: #e6f7ec; - border-color: transparent; - color: #257942; - } - - .button.is-success.is-light:active, .button.is-success.is-light.is-active, .is-light.active { - background-color: #dcf4e4; - border-color: transparent; - color: #257942; - } - - .button.is-warning { - background-color: #ffdd57; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning:hover, .button.is-warning.is-hovered { - background-color: #ffdb4a; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning:focus, .button.is-warning.is-focused { - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning:focus:not(:active), .button.is-warning.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); - box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); - } - - .button.is-warning:active, .button.is-warning.is-active, .is-warning.active { - background-color: #ffd83d; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning[disabled], fieldset[disabled] .button.is-warning { - background-color: #ffdd57; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-warning.is-inverted { - background-color: rgba(0, 0, 0, 0.7); - color: #ffdd57; - } - - .button.is-warning.is-inverted:hover, .button.is-warning.is-inverted.is-hovered { - background-color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning.is-inverted[disabled], fieldset[disabled] .button.is-warning.is-inverted { - background-color: rgba(0, 0, 0, 0.7); - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #ffdd57; - } - - .button.is-warning.is-loading::after { - border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; - } - - .button.is-warning.is-outlined { - background-color: transparent; - border-color: #ffdd57; - color: #ffdd57; - } - - .button.is-warning.is-outlined:hover, .button.is-warning.is-outlined.is-hovered, .button.is-warning.is-outlined:focus, .button.is-warning.is-outlined.is-focused { - background-color: #ffdd57; - border-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning.is-outlined.is-loading::after { - border-color: transparent transparent #ffdd57 #ffdd57 !important; - } - - .button.is-warning.is-outlined.is-loading:hover::after, .button.is-warning.is-outlined.is-loading.is-hovered::after, .button.is-warning.is-outlined.is-loading:focus::after, .button.is-warning.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; - } - - .button.is-warning.is-outlined[disabled], fieldset[disabled] .button.is-warning.is-outlined { - background-color: transparent; - border-color: #ffdd57; - -webkit-box-shadow: none; - box-shadow: none; - color: #ffdd57; - } - - .button.is-warning.is-inverted.is-outlined { - background-color: transparent; - border-color: rgba(0, 0, 0, 0.7); - color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning.is-inverted.is-outlined:hover, .button.is-warning.is-inverted.is-outlined.is-hovered, .button.is-warning.is-inverted.is-outlined:focus, .button.is-warning.is-inverted.is-outlined.is-focused { - background-color: rgba(0, 0, 0, 0.7); - color: #ffdd57; - } - - .button.is-warning.is-inverted.is-outlined.is-loading:hover::after, .button.is-warning.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-warning.is-inverted.is-outlined.is-loading:focus::after, .button.is-warning.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #ffdd57 #ffdd57 !important; - } - - .button.is-warning.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-warning.is-inverted.is-outlined { - background-color: transparent; - border-color: rgba(0, 0, 0, 0.7); - -webkit-box-shadow: none; - box-shadow: none; - color: rgba(0, 0, 0, 0.7); - } - - .button.is-warning.is-light { - background-color: #fffbeb; - color: #947600; - } - - .button.is-warning.is-light:hover, .button.is-warning.is-light.is-hovered { - background-color: #fff8de; - border-color: transparent; - color: #947600; - } - - .button.is-warning.is-light:active, .button.is-warning.is-light.is-active, .is-light.active { - background-color: #fff6d1; - border-color: transparent; - color: #947600; - } - - .button.is-danger { - background-color: #f14668; - border-color: transparent; - color: #fff; - } - - .button.is-danger:hover, .button.is-danger.is-hovered { - background-color: #f03a5f; - border-color: transparent; - color: #fff; - } - - .button.is-danger:focus, .button.is-danger.is-focused { - border-color: transparent; - color: #fff; - } - - .button.is-danger:focus:not(:active), .button.is-danger.is-focused:not(:active) { - -webkit-box-shadow: 0 0 0 0.125em rgba(241, 70, 104, 0.25); - box-shadow: 0 0 0 0.125em rgba(241, 70, 104, 0.25); - } - - .button.is-danger:active, .button.is-danger.is-active, .is-danger.active { - background-color: #ef2e55; - border-color: transparent; - color: #fff; - } - - .button.is-danger[disabled], fieldset[disabled] .button.is-danger { - background-color: #f14668; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - } - - .button.is-danger.is-inverted { - background-color: #fff; - color: #f14668; - } - - .button.is-danger.is-inverted:hover, .button.is-danger.is-inverted.is-hovered { - background-color: #f2f2f2; - } - - .button.is-danger.is-inverted[disabled], fieldset[disabled] .button.is-danger.is-inverted { - background-color: #fff; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - color: #f14668; - } - - .button.is-danger.is-loading::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-danger.is-outlined { - background-color: transparent; - border-color: #f14668; - color: #f14668; - } - - .button.is-danger.is-outlined:hover, .button.is-danger.is-outlined.is-hovered, .button.is-danger.is-outlined:focus, .button.is-danger.is-outlined.is-focused { - background-color: #f14668; - border-color: #f14668; - color: #fff; - } - - .button.is-danger.is-outlined.is-loading::after { - border-color: transparent transparent #f14668 #f14668 !important; - } - - .button.is-danger.is-outlined.is-loading:hover::after, .button.is-danger.is-outlined.is-loading.is-hovered::after, .button.is-danger.is-outlined.is-loading:focus::after, .button.is-danger.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; - } - - .button.is-danger.is-outlined[disabled], fieldset[disabled] .button.is-danger.is-outlined { - background-color: transparent; - border-color: #f14668; - -webkit-box-shadow: none; - box-shadow: none; - color: #f14668; - } - - .button.is-danger.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; - } - - .button.is-danger.is-inverted.is-outlined:hover, .button.is-danger.is-inverted.is-outlined.is-hovered, .button.is-danger.is-inverted.is-outlined:focus, .button.is-danger.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #f14668; - } - - .button.is-danger.is-inverted.is-outlined.is-loading:hover::after, .button.is-danger.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-danger.is-inverted.is-outlined.is-loading:focus::after, .button.is-danger.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #f14668 #f14668 !important; - } - - .button.is-danger.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-danger.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - } - - .button.is-danger.is-light { - background-color: #feecf0; - color: #cc0f35; - } - - .button.is-danger.is-light:hover, .button.is-danger.is-light.is-hovered { - background-color: #fde0e6; - border-color: transparent; - color: #cc0f35; - } - - .button.is-danger.is-light:active, .button.is-danger.is-light.is-active, .is-light.active { - background-color: #fcd4dc; - border-color: transparent; - color: #cc0f35; - } - - .button.is-small { - font-size: 0.75rem; - } - - .button.is-small:not(.is-rounded) { - border-radius: 2px; - } - - .button.is-normal { - font-size: 1rem; - } - - .button.is-medium { - font-size: 1.25rem; - } - - .button.is-large { - font-size: 1.5rem; - } - - .button[disabled], fieldset[disabled] .button { - background-color: white; - border-color: #dbdbdb; - -webkit-box-shadow: none; - box-shadow: none; - opacity: 0.5; - } - - .button.is-fullwidth { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - width: 100%; - } - - .button.is-loading { - color: transparent !important; - pointer-events: none; - } - - .button.is-loading::after { - position: absolute; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); - position: absolute !important; - } - - .button.is-static { - background-color: whitesmoke; - border-color: #dbdbdb; - color: #7a7a7a; - -webkit-box-shadow: none; - box-shadow: none; - pointer-events: none; - } - - .button.is-rounded { - border-radius: 290486px; - padding-left: calc(1em + 0.25em); - padding-right: calc(1em + 0.25em); - } - -.buttons { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; -} - - .buttons .button { - margin-bottom: 0.5rem; - } - - .buttons .button:not(:last-child):not(.is-fullwidth) { - margin-right: 0.5rem; - } - - .buttons:last-child { - margin-bottom: -0.5rem; - } - - .buttons:not(:last-child) { - margin-bottom: 1rem; - } - - .buttons.are-small .button:not(.is-normal):not(.is-medium):not(.is-large) { - font-size: 0.75rem; - } - - .buttons.are-small .button:not(.is-normal):not(.is-medium):not(.is-large):not(.is-rounded) { - border-radius: 2px; - } - - .buttons.are-medium .button:not(.is-small):not(.is-normal):not(.is-large) { - font-size: 1.25rem; - } - - .buttons.are-large .button:not(.is-small):not(.is-normal):not(.is-medium) { - font-size: 1.5rem; - } - - .buttons.has-addons .button:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - - .buttons.has-addons .button:not(:last-child) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - margin-right: -1px; - } - - .buttons.has-addons .button:last-child { - margin-right: 0; - } - - .buttons.has-addons .button:hover, .buttons.has-addons .button.is-hovered { - z-index: 2; - } - - .buttons.has-addons .button:focus, .buttons.has-addons .button.is-focused, .buttons.has-addons .button:active, .buttons.has-addons .button.is-active, .buttons.has-addons .button.active, .buttons.has-addons .button.is-selected { - z-index: 3; - } - - .buttons.has-addons .button:focus:hover, .buttons.has-addons .button.is-focused:hover, .buttons.has-addons .button:active:hover, .buttons.has-addons .button.is-active:hover, .buttons.has-addons .button.active:hover, .buttons.has-addons .button.is-selected:hover { - z-index: 4; - } - - .buttons.has-addons .button.is-expanded { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - } - - .buttons.is-centered { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .buttons.is-centered:not(.has-addons) .button:not(.is-fullwidth) { - margin-left: 0.25rem; - margin-right: 0.25rem; - } - - .buttons.is-right { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - } - - .buttons.is-right:not(.has-addons) .button:not(.is-fullwidth) { - margin-left: 0.25rem; - margin-right: 0.25rem; - } - -.container { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - margin: 0 auto; - position: relative; - width: auto; -} - - .container.is-fluid { - max-width: none !important; - padding-left: 32px; - padding-right: 32px; - width: 100%; - } - -@media screen and (min-width: 1024px) { - .container { - max-width: 960px; - } -} - -@media screen and (max-width: 1215px) { - .container.is-widescreen:not(.is-max-desktop) { - max-width: 1152px; - } -} - -@media screen and (max-width: 1407px) { - .container.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen) { - max-width: 1344px; - } -} - -@media screen and (min-width: 1216px) { - .container:not(.is-max-desktop) { - max-width: 1152px; - } -} - -@media screen and (min-width: 1408px) { - .container:not(.is-max-desktop):not(.is-max-widescreen) { - max-width: 1344px; - } -} - -.content li + li { - margin-top: 0.25em; -} - -.content p:not(:last-child), -.content dl:not(:last-child), -.content ol:not(:last-child), -.content ul:not(:last-child), -.content blockquote:not(:last-child), -.content pre:not(:last-child), -.content table:not(:last-child) { - margin-bottom: 1em; -} - -.content h1, -.content h2, -.content h3, -.content h4, -.content h5, -.content h6 { - color: #363636; - font-weight: 600; - line-height: 1.125; -} - -.content h1 { - font-size: 2em; - margin-bottom: 0.5em; -} - - .content h1:not(:first-child) { - margin-top: 1em; - } - -.content h2 { - font-size: 1.75em; - margin-bottom: 0.5714em; -} - - .content h2:not(:first-child) { - margin-top: 1.1428em; - } - -.content h3 { - font-size: 1.5em; - margin-bottom: 0.6666em; -} - - .content h3:not(:first-child) { - margin-top: 1.3333em; - } - -.content h4 { - font-size: 1.25em; - margin-bottom: 0.8em; -} - -.content h5 { - font-size: 1.125em; - margin-bottom: 0.8888em; -} - -.content h6 { - font-size: 1em; - margin-bottom: 1em; -} - -.content blockquote { - background-color: whitesmoke; - border-left: 5px solid #dbdbdb; - padding: 1.25em 1.5em; -} - -.content ol { - list-style-position: outside; - margin-left: 2em; - margin-top: 1em; -} - - .content ol:not([type]) { - list-style-type: decimal; - } - - .content ol:not([type]).is-lower-alpha { - list-style-type: lower-alpha; - } - - .content ol:not([type]).is-lower-roman { - list-style-type: lower-roman; - } - - .content ol:not([type]).is-upper-alpha { - list-style-type: upper-alpha; - } - - .content ol:not([type]).is-upper-roman { - list-style-type: upper-roman; - } - -.content ul { - list-style: disc outside; - margin-left: 2em; - margin-top: 1em; -} - - .content ul ul { - list-style-type: circle; - margin-top: 0.5em; - } - - .content ul ul ul { - list-style-type: square; - } - -.content dd { - margin-left: 2em; -} - -.content figure { - margin-left: 2em; - margin-right: 2em; - text-align: center; -} - - .content figure:not(:first-child) { - margin-top: 2em; - } - - .content figure:not(:last-child) { - margin-bottom: 2em; - } - - .content figure img { - display: inline-block; - } - - .content figure figcaption { - font-style: italic; - } - -.content pre { - -webkit-overflow-scrolling: touch; - overflow-x: auto; - padding: 1.25em 1.5em; - white-space: pre; - word-wrap: normal; -} - -.content sup, -.content sub { - font-size: 75%; -} - -.content table { - width: 100%; -} - - .content table td, - .content table th { - border: 1px solid #dbdbdb; - border-width: 0 0 1px; - padding: 0.5em 0.75em; - vertical-align: top; - } - - .content table th { - color: #363636; - } - - .content table th:not([align]) { - text-align: inherit; - } - - .content table thead td, - .content table thead th { - border-width: 0 0 2px; - color: #363636; - } - - .content table tfoot td, - .content table tfoot th { - border-width: 2px 0 0; - color: #363636; - } - - .content table tbody tr:last-child td, - .content table tbody tr:last-child th { - border-bottom-width: 0; - } - -.content .tabs li + li { - margin-top: 0; -} - -.content.is-small { - font-size: 0.75rem; -} - -.content.is-medium { - font-size: 1.25rem; -} - -.content.is-large { - font-size: 1.5rem; -} - -.icon { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - height: 1.5rem; - width: 1.5rem; -} - - .icon.is-small { - height: 1rem; - width: 1rem; - } - - .icon.is-medium { - height: 2rem; - width: 2rem; - } - - .icon.is-large { - height: 3rem; - width: 3rem; - } - -.icon-text { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - color: inherit; - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - line-height: 1.5rem; - vertical-align: top; -} - - .icon-text .icon { - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - } - - .icon-text .icon:not(:last-child) { - margin-right: 0.25em; - } - - .icon-text .icon:not(:first-child) { - margin-left: 0.25em; - } - -div.icon-text { - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} - -.image { - display: block; - position: relative; -} - - .image img { - display: block; - height: auto; - width: 100%; - } - - .image img.is-rounded { - border-radius: 290486px; - } - - .image.is-fullwidth { - width: 100%; - } - - .image.is-square img, - .image.is-square .has-ratio, .image.is-1by1 img, - .image.is-1by1 .has-ratio, .image.is-5by4 img, - .image.is-5by4 .has-ratio, .image.is-4by3 img, - .image.is-4by3 .has-ratio, .image.is-3by2 img, - .image.is-3by2 .has-ratio, .image.is-5by3 img, - .image.is-5by3 .has-ratio, .image.is-16by9 img, - .image.is-16by9 .has-ratio, .image.is-2by1 img, - .image.is-2by1 .has-ratio, .image.is-3by1 img, - .image.is-3by1 .has-ratio, .image.is-4by5 img, - .image.is-4by5 .has-ratio, .image.is-3by4 img, - .image.is-3by4 .has-ratio, .image.is-2by3 img, - .image.is-2by3 .has-ratio, .image.is-3by5 img, - .image.is-3by5 .has-ratio, .image.is-9by16 img, - .image.is-9by16 .has-ratio, .image.is-1by2 img, - .image.is-1by2 .has-ratio, .image.is-1by3 img, - .image.is-1by3 .has-ratio { - height: 100%; - width: 100%; - } - - .image.is-square, .image.is-1by1 { - padding-top: 100%; - } - - .image.is-5by4 { - padding-top: 80%; - } - - .image.is-4by3 { - padding-top: 75%; - } - - .image.is-3by2 { - padding-top: 66.6666%; - } - - .image.is-5by3 { - padding-top: 60%; - } - - .image.is-16by9 { - padding-top: 56.25%; - } - - .image.is-2by1 { - padding-top: 50%; - } - - .image.is-3by1 { - padding-top: 33.3333%; - } - - .image.is-4by5 { - padding-top: 125%; - } - - .image.is-3by4 { - padding-top: 133.3333%; - } - - .image.is-2by3 { - padding-top: 150%; - } - - .image.is-3by5 { - padding-top: 166.6666%; - } - - .image.is-9by16 { - padding-top: 177.7777%; - } - - .image.is-1by2 { - padding-top: 200%; - } - - .image.is-1by3 { - padding-top: 300%; - } - - .image.is-16x16 { - height: 16px; - width: 16px; - } - - .image.is-24x24 { - height: 24px; - width: 24px; - } - - .image.is-32x32 { - height: 32px; - width: 32px; - } - - .image.is-48x48 { - height: 48px; - width: 48px; - } - - .image.is-64x64 { - height: 64px; - width: 64px; - } - - .image.is-96x96 { - height: 96px; - width: 96px; - } - - .image.is-128x128 { - height: 128px; - width: 128px; - } - -.notification { - background-color: whitesmoke; - border-radius: 4px; - position: relative; - padding: 1.25rem 2.5rem 1.25rem 1.5rem; -} - - .notification a:not(.button):not(.dropdown-item) { - color: currentColor; - text-decoration: underline; - } - - .notification strong { - color: currentColor; - } - - .notification code, - .notification pre { - background: white; - } - - .notification pre code { - background: transparent; - } - - .notification > .delete { - right: 0.5rem; - position: absolute; - top: 0.5rem; - } - - .notification .title, - .notification .subtitle, - .notification .content { - color: currentColor; - } - - .notification.is-white { - background-color: white; - color: #0a0a0a; - } - - .notification.is-black { - background-color: #0a0a0a; - color: white; - } - - .notification.is-light { - background-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); - } - - .notification.is-dark { - background-color: #200117; - color: #fff; - } - - .notification.is-primary { - background-color: #A00975; - color: #fff; - } - - .notification.is-primary.is-light { - background-color: #feecf9; - color: #f212b2; - } - - .notification.is-link { - background-color: #378BBA; - color: #fff; - } - - .notification.is-link.is-light { - background-color: #eff6fa; - color: #317ca5; - } - - .notification.is-info { - background-color: #3298dc; - color: #fff; - } - - .notification.is-info.is-light { - background-color: #eef6fc; - color: #1d72aa; - } - - .notification.is-success { - background-color: #48c774; - color: #fff; - } - - .notification.is-success.is-light { - background-color: #effaf3; - color: #257942; - } - - .notification.is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } - - .notification.is-warning.is-light { - background-color: #fffbeb; - color: #947600; - } - - .notification.is-danger { - background-color: #f14668; - color: #fff; - } - - .notification.is-danger.is-light { - background-color: #feecf0; - color: #cc0f35; - } - -.progress { - -moz-appearance: none; - -webkit-appearance: none; - border: none; - border-radius: 290486px; - display: block; - height: 1rem; - overflow: hidden; - padding: 0; - width: 100%; -} - - .progress::-webkit-progress-bar { - background-color: #ededed; - } - - .progress::-webkit-progress-value { - background-color: #4a4a4a; - } - - .progress::-moz-progress-bar { - background-color: #4a4a4a; - } - - .progress::-ms-fill { - background-color: #4a4a4a; - border: none; - } - - .progress.is-white::-webkit-progress-value { - background-color: white; - } - - .progress.is-white::-moz-progress-bar { - background-color: white; - } - - .progress.is-white::-ms-fill { - background-color: white; - } - - .progress.is-white:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, white), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, white 30%, #ededed 30%); - background-image: linear-gradient(to right, white 30%, #ededed 30%); - } - - .progress.is-black::-webkit-progress-value { - background-color: #0a0a0a; - } - - .progress.is-black::-moz-progress-bar { - background-color: #0a0a0a; - } - - .progress.is-black::-ms-fill { - background-color: #0a0a0a; - } - - .progress.is-black:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #0a0a0a), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #0a0a0a 30%, #ededed 30%); - background-image: linear-gradient(to right, #0a0a0a 30%, #ededed 30%); - } - - .progress.is-light::-webkit-progress-value { - background-color: whitesmoke; - } - - .progress.is-light::-moz-progress-bar { - background-color: whitesmoke; - } - - .progress.is-light::-ms-fill { - background-color: whitesmoke; - } - - .progress.is-light:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, whitesmoke), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, whitesmoke 30%, #ededed 30%); - background-image: linear-gradient(to right, whitesmoke 30%, #ededed 30%); - } - - .progress.is-dark::-webkit-progress-value { - background-color: #200117; - } - - .progress.is-dark::-moz-progress-bar { - background-color: #200117; - } - - .progress.is-dark::-ms-fill { - background-color: #200117; - } - - .progress.is-dark:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #200117), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #200117 30%, #ededed 30%); - background-image: linear-gradient(to right, #200117 30%, #ededed 30%); - } - - .progress.is-primary::-webkit-progress-value { - background-color: #A00975; - } - - .progress.is-primary::-moz-progress-bar { - background-color: #A00975; - } - - .progress.is-primary::-ms-fill { - background-color: #A00975; - } - - .progress.is-primary:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #A00975), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #A00975 30%, #ededed 30%); - background-image: linear-gradient(to right, #A00975 30%, #ededed 30%); - } - - .progress.is-link::-webkit-progress-value { - background-color: #378BBA; - } - - .progress.is-link::-moz-progress-bar { - background-color: #378BBA; - } - - .progress.is-link::-ms-fill { - background-color: #378BBA; - } - - .progress.is-link:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #378BBA), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #378BBA 30%, #ededed 30%); - background-image: linear-gradient(to right, #378BBA 30%, #ededed 30%); - } - - .progress.is-info::-webkit-progress-value { - background-color: #3298dc; - } - - .progress.is-info::-moz-progress-bar { - background-color: #3298dc; - } - - .progress.is-info::-ms-fill { - background-color: #3298dc; - } - - .progress.is-info:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #3298dc), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #3298dc 30%, #ededed 30%); - background-image: linear-gradient(to right, #3298dc 30%, #ededed 30%); - } - - .progress.is-success::-webkit-progress-value { - background-color: #48c774; - } - - .progress.is-success::-moz-progress-bar { - background-color: #48c774; - } - - .progress.is-success::-ms-fill { - background-color: #48c774; - } - - .progress.is-success:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #48c774), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #48c774 30%, #ededed 30%); - background-image: linear-gradient(to right, #48c774 30%, #ededed 30%); - } - - .progress.is-warning::-webkit-progress-value { - background-color: #ffdd57; - } - - .progress.is-warning::-moz-progress-bar { - background-color: #ffdd57; - } - - .progress.is-warning::-ms-fill { - background-color: #ffdd57; - } - - .progress.is-warning:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #ffdd57), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #ffdd57 30%, #ededed 30%); - background-image: linear-gradient(to right, #ffdd57 30%, #ededed 30%); - } - - .progress.is-danger::-webkit-progress-value { - background-color: #f14668; - } - - .progress.is-danger::-moz-progress-bar { - background-color: #f14668; - } - - .progress.is-danger::-ms-fill { - background-color: #f14668; - } - - .progress.is-danger:indeterminate { - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #f14668), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #f14668 30%, #ededed 30%); - background-image: linear-gradient(to right, #f14668 30%, #ededed 30%); - } - - .progress:indeterminate { - -webkit-animation-duration: 1.5s; - animation-duration: 1.5s; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - -webkit-animation-name: moveIndeterminate; - animation-name: moveIndeterminate; - -webkit-animation-timing-function: linear; - animation-timing-function: linear; - background-color: #ededed; - background-image: -webkit-gradient(linear, left top, right top, color-stop(30%, #4a4a4a), color-stop(30%, #ededed)); - background-image: -o-linear-gradient(left, #4a4a4a 30%, #ededed 30%); - background-image: linear-gradient(to right, #4a4a4a 30%, #ededed 30%); - background-position: top left; - background-repeat: no-repeat; - background-size: 150% 150%; - } - - .progress:indeterminate::-webkit-progress-bar { - background-color: transparent; - } - - .progress:indeterminate::-moz-progress-bar { - background-color: transparent; - } - - .progress:indeterminate::-ms-fill { - animation-name: none; - } - - .progress.is-small { - height: 0.75rem; - } - - .progress.is-medium { - height: 1.25rem; - } - - .progress.is-large { - height: 1.5rem; - } - -@-webkit-keyframes moveIndeterminate { - from { - background-position: 200% 0; - } - - to { - background-position: -200% 0; - } -} - -@keyframes moveIndeterminate { - from { - background-position: 200% 0; - } - - to { - background-position: -200% 0; - } -} - -.table, table { - background-color: white; - color: #363636; -} - - .table td, table td, - .table th, - table th { - border: 1px solid #200117; - border-width: 0 0 1px; - padding: 0.5em 0.75em; - vertical-align: top; - } - - .table td.is-white, table td.is-white, - .table th.is-white, - table th.is-white { - background-color: white; - border-color: white; - color: #0a0a0a; - } - - .table td.is-black, table td.is-black, - .table th.is-black, - table th.is-black { - background-color: #0a0a0a; - border-color: #0a0a0a; - color: white; - } - - .table td.is-light, table td.is-light, - .table th.is-light, - table th.is-light { - background-color: whitesmoke; - border-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); - } - - .table td.is-dark, table td.is-dark, - .table th.is-dark, - table th.is-dark { - background-color: #200117; - border-color: #200117; - color: #fff; - } - - .table td.is-primary, table td.is-primary, - .table th.is-primary, - table th.is-primary { - background-color: #A00975; - border-color: #A00975; - color: #fff; - } - - .table td.is-link, table td.is-link, - .table th.is-link, - table th.is-link { - background-color: #378BBA; - border-color: #378BBA; - color: #fff; - } - - .table td.is-info, table td.is-info, - .table th.is-info, - table th.is-info { - background-color: #3298dc; - border-color: #3298dc; - color: #fff; - } - - .table td.is-success, table td.is-success, - .table th.is-success, - table th.is-success { - background-color: #48c774; - border-color: #48c774; - color: #fff; - } - - .table td.is-warning, table td.is-warning, - .table th.is-warning, - table th.is-warning { - background-color: #ffdd57; - border-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } - - .table td.is-danger, table td.is-danger, - .table th.is-danger, - table th.is-danger { - background-color: #f14668; - border-color: #f14668; - color: #fff; - } - - .table td.is-narrow, table td.is-narrow, - .table th.is-narrow, - table th.is-narrow { - white-space: nowrap; - width: 1%; - } - - .table td.is-selected, table td.is-selected, - .table th.is-selected, - table th.is-selected { - background-color: #A00975; - color: #fff; - } - - .table td.is-selected a, table td.is-selected a, - .table td.is-selected strong, - table td.is-selected strong, - .table th.is-selected a, - table th.is-selected a, - .table th.is-selected strong, - table th.is-selected strong { - color: currentColor; - } - - .table td.is-vcentered, table td.is-vcentered, - .table th.is-vcentered, - table th.is-vcentered { - vertical-align: middle; - } - - .table th, table th { - color: #A00975; - } - - .table th:not([align]), table th:not([align]) { - text-align: inherit; - } - - .table tr.is-selected, table tr.is-selected { - background-color: #A00975; - color: #fff; - } - - .table tr.is-selected a, table tr.is-selected a, - .table tr.is-selected strong, - table tr.is-selected strong { - color: currentColor; - } - - .table tr.is-selected td, table tr.is-selected td, - .table tr.is-selected th, - table tr.is-selected th { - border-color: #fff; - color: currentColor; - } - - .table thead, table thead { - background-color: transparent; - } - - .table thead td, table thead td, - .table thead th, - table thead th { - border-width: 0 0 2px; - color: #A00975; - } - - .table tfoot, table tfoot { - background-color: transparent; - } - - .table tfoot td, table tfoot td, - .table tfoot th, - table tfoot th { - border-width: 2px 0 0; - color: #363636; - } - - .table tbody, table tbody { - background-color: transparent; - } - - .table tbody tr:last-child td, table tbody tr:last-child td, - .table tbody tr:last-child th, - table tbody tr:last-child th { - border-bottom-width: 0; - } - - .table.is-bordered td, table.is-bordered td, - .table.is-bordered th, - table.is-bordered th { - border-width: 1px; - } - - .table.is-bordered tr:last-child td, table.is-bordered tr:last-child td, - .table.is-bordered tr:last-child th, - table.is-bordered tr:last-child th { - border-bottom-width: 1px; - } - - .table.is-fullwidth, table.is-fullwidth { - width: 100%; - } - - .table.is-hoverable tbody tr:not(.is-selected):hover, table.is-hoverable tbody tr:not(.is-selected):hover { - background-color: #fafafa; - } - - .table.is-hoverable.is-striped tbody tr:not(.is-selected):hover, table.is-hoverable tbody tr:not(.is-selected):hover { - background-color: #fafafa; - } - - .table.is-hoverable.is-striped tbody tr:not(.is-selected):hover:nth-child(even), table.is-hoverable tbody tr:not(.is-selected):hover:nth-child(even) { - background-color: whitesmoke; - } - - .table.is-narrow td, table.is-narrow td, - .table.is-narrow th, - table.is-narrow th { - padding: 0.25em 0.5em; - } - - .table.is-striped tbody tr:not(.is-selected):nth-child(even), table tbody tr:not(.is-selected):nth-child(even) { - background-color: #fafafa; - } - -.table-container { - -webkit-overflow-scrolling: touch; - overflow: auto; - overflow-y: hidden; - max-width: 100%; -} - -.tags { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; -} - - .tags .tag { - margin-bottom: 0.5rem; - } - - .tags .tag:not(:last-child) { - margin-right: 0.5rem; - } - - .tags:last-child { - margin-bottom: -0.5rem; - } - - .tags:not(:last-child) { - margin-bottom: 1rem; - } - - .tags.are-medium .tag:not(.is-normal):not(.is-large) { - font-size: 1rem; - } - - .tags.are-large .tag:not(.is-normal):not(.is-medium) { - font-size: 1.25rem; - } - - .tags.is-centered { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .tags.is-centered .tag { - margin-right: 0.25rem; - margin-left: 0.25rem; - } - - .tags.is-right { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - } - - .tags.is-right .tag:not(:first-child) { - margin-left: 0.5rem; - } - - .tags.is-right .tag:not(:last-child) { - margin-right: 0; - } - - .tags.has-addons .tag { - margin-right: 0; - } - - .tags.has-addons .tag:not(:first-child) { - margin-left: 0; - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - - .tags.has-addons .tag:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; - } - -.tag:not(body) { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - background-color: whitesmoke; - border-radius: 4px; - color: #4a4a4a; - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - font-size: 0.75rem; - height: 2em; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - line-height: 1.5; - padding-left: 0.75em; - padding-right: 0.75em; - white-space: nowrap; -} - - .tag:not(body) .delete { - margin-left: 0.25rem; - margin-right: -0.375rem; - } - - .tag:not(body).is-white { - background-color: white; - color: #0a0a0a; - } - - .tag:not(body).is-black { - background-color: #0a0a0a; - color: white; - } - - .tag:not(body).is-light { - background-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); - } - - .tag:not(body).is-dark { - background-color: #200117; - color: #fff; - } - - .tag:not(body).is-primary { - background-color: #A00975; - color: #fff; - } - - .tag:not(body).is-primary.is-light { - background-color: #feecf9; - color: #f212b2; - } - - .tag:not(body).is-link { - background-color: #378BBA; - color: #fff; - } - - .tag:not(body).is-link.is-light { - background-color: #eff6fa; - color: #317ca5; - } - - .tag:not(body).is-info { - background-color: #3298dc; - color: #fff; - } - - .tag:not(body).is-info.is-light { - background-color: #eef6fc; - color: #1d72aa; - } - - .tag:not(body).is-success { - background-color: #48c774; - color: #fff; - } - - .tag:not(body).is-success.is-light { - background-color: #effaf3; - color: #257942; - } - - .tag:not(body).is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } - - .tag:not(body).is-warning.is-light { - background-color: #fffbeb; - color: #947600; - } - - .tag:not(body).is-danger { - background-color: #f14668; - color: #fff; - } - - .tag:not(body).is-danger.is-light { - background-color: #feecf0; - color: #cc0f35; - } - - .tag:not(body).is-normal { - font-size: 0.75rem; - } - - .tag:not(body).is-medium { - font-size: 1rem; - } - - .tag:not(body).is-large { - font-size: 1.25rem; - } - - .tag:not(body) .icon:first-child:not(:last-child) { - margin-left: -0.375em; - margin-right: 0.1875em; - } - - .tag:not(body) .icon:last-child:not(:first-child) { - margin-left: 0.1875em; - margin-right: -0.375em; - } - - .tag:not(body) .icon:first-child:last-child { - margin-left: -0.375em; - margin-right: -0.375em; - } - - .tag:not(body).is-delete { - margin-left: 1px; - padding: 0; - position: relative; - width: 2em; - } - - .tag:not(body).is-delete::before, .tag:not(body).is-delete::after { - background-color: currentColor; - content: ""; - display: block; - left: 50%; - position: absolute; - top: 50%; - -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg); - -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg); - transform: translateX(-50%) translateY(-50%) rotate(45deg); - -webkit-transform-origin: center center; - -ms-transform-origin: center center; - transform-origin: center center; - } - - .tag:not(body).is-delete::before { - height: 1px; - width: 50%; - } - - .tag:not(body).is-delete::after { - height: 50%; - width: 1px; - } - - .tag:not(body).is-delete:hover, .tag:not(body).is-delete:focus { - background-color: #e8e8e8; - } - - .tag:not(body).is-delete:active { - background-color: #dbdbdb; - } - - .tag:not(body).is-rounded { - border-radius: 290486px; - } - -a.tag:hover { - text-decoration: underline; -} - -.title, -.subtitle { - word-break: break-word; -} - - .title em, - .title span, - .subtitle em, - .subtitle span { - font-weight: inherit; - } - - .title sub, - .subtitle sub { - font-size: 0.75em; - } - - .title sup, - .subtitle sup { - font-size: 0.75em; - } - - .title .tag, - .subtitle .tag { - vertical-align: middle; - } - -.title { - color: #363636; - font-size: 2rem; - font-weight: 600; - line-height: 1.125; -} - - .title strong { - color: inherit; - font-weight: inherit; - } - - .title + .highlight { - margin-top: -0.75rem; - } - - .title:not(.is-spaced) + .subtitle { - margin-top: -1.25rem; - } - - .title.is-1 { - font-size: 3rem; - } - - .title.is-2 { - font-size: 2.5rem; - } - - .title.is-3 { - font-size: 2rem; - } - - .title.is-4 { - font-size: 1.5rem; - } - - .title.is-5 { - font-size: 1.25rem; - } - - .title.is-6 { - font-size: 1rem; - } - - .title.is-7 { - font-size: 0.75rem; - } - -.subtitle { - color: #4a4a4a; - font-size: 1.25rem; - font-weight: 400; - line-height: 1.25; -} - - .subtitle strong { - color: #363636; - font-weight: 600; - } - - .subtitle:not(.is-spaced) + .title { - margin-top: -1.25rem; - } - - .subtitle.is-1 { - font-size: 3rem; - } - - .subtitle.is-2 { - font-size: 2.5rem; - } - - .subtitle.is-3 { - font-size: 2rem; - } - - .subtitle.is-4 { - font-size: 1.5rem; - } - - .subtitle.is-5 { - font-size: 1.25rem; - } - - .subtitle.is-6 { - font-size: 1rem; - } - - .subtitle.is-7 { - font-size: 0.75rem; - } - -.heading { - display: block; - font-size: 11px; - letter-spacing: 1px; - margin-bottom: 5px; - text-transform: uppercase; -} - -.highlight { - font-weight: 400; - max-width: 100%; - overflow: hidden; - padding: 0; -} - - .highlight pre { - overflow: auto; - max-width: 100%; - } - -.number { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - background-color: whitesmoke; - border-radius: 290486px; - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - font-size: 1.25rem; - height: 2em; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - margin-right: 1.5rem; - min-width: 2.5em; - padding: 0.25rem 0.5rem; - text-align: center; - vertical-align: top; -} - -/* Bulma Form */ -.select select, .textarea, .input { - background-color: white; - border-color: #dbdbdb; - border-radius: 4px; - color: #363636; -} - - .select select::-moz-placeholder, .textarea::-moz-placeholder, .input::-moz-placeholder { - color: rgba(54, 54, 54, 0.3); - } - - .select select::-webkit-input-placeholder, .textarea::-webkit-input-placeholder, .input::-webkit-input-placeholder { - color: rgba(54, 54, 54, 0.3); - } - - .select select:-moz-placeholder, .textarea:-moz-placeholder, .input:-moz-placeholder { - color: rgba(54, 54, 54, 0.3); - } - - .select select:-ms-input-placeholder, .textarea:-ms-input-placeholder, .input:-ms-input-placeholder { - color: rgba(54, 54, 54, 0.3); - } - - .select select:hover, .textarea:hover, .input:hover, .select select.is-hovered, .is-hovered.textarea, .is-hovered.input { - border-color: #b5b5b5; - } - - .select select:focus, .textarea:focus, .input:focus, .select select.is-focused, .is-focused.textarea, .is-focused.input, .select select:active, .textarea:active, .input:active, .select select.is-active, .select select.active, .is-active.textarea, .textarea.active, .is-active.input, .input.active { - border-color: #378BBA; - -webkit-box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - } - - .select select[disabled], [disabled].textarea, [disabled].input, fieldset[disabled] .select select, .select fieldset[disabled] select, fieldset[disabled] .textarea, fieldset[disabled] .input { - background-color: whitesmoke; - border-color: whitesmoke; - -webkit-box-shadow: none; - box-shadow: none; - color: #7a7a7a; - } - - .select select[disabled]::-moz-placeholder, [disabled].textarea::-moz-placeholder, [disabled].input::-moz-placeholder, fieldset[disabled] .select select::-moz-placeholder, .select fieldset[disabled] select::-moz-placeholder, fieldset[disabled] .textarea::-moz-placeholder, fieldset[disabled] .input::-moz-placeholder { - color: rgba(122, 122, 122, 0.3); - } - - .select select[disabled]::-webkit-input-placeholder, [disabled].textarea::-webkit-input-placeholder, [disabled].input::-webkit-input-placeholder, fieldset[disabled] .select select::-webkit-input-placeholder, .select fieldset[disabled] select::-webkit-input-placeholder, fieldset[disabled] .textarea::-webkit-input-placeholder, fieldset[disabled] .input::-webkit-input-placeholder { - color: rgba(122, 122, 122, 0.3); - } - - .select select[disabled]:-moz-placeholder, [disabled].textarea:-moz-placeholder, [disabled].input:-moz-placeholder, fieldset[disabled] .select select:-moz-placeholder, .select fieldset[disabled] select:-moz-placeholder, fieldset[disabled] .textarea:-moz-placeholder, fieldset[disabled] .input:-moz-placeholder { - color: rgba(122, 122, 122, 0.3); - } - - .select select[disabled]:-ms-input-placeholder, [disabled].textarea:-ms-input-placeholder, [disabled].input:-ms-input-placeholder, fieldset[disabled] .select select:-ms-input-placeholder, .select fieldset[disabled] select:-ms-input-placeholder, fieldset[disabled] .textarea:-ms-input-placeholder, fieldset[disabled] .input:-ms-input-placeholder { - color: rgba(122, 122, 122, 0.3); - } - -.textarea, .input { - -webkit-box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, 0.05); - box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, 0.05); - max-width: 100%; - width: 100%; -} - -[readonly].textarea, [readonly].input { - -webkit-box-shadow: none; - box-shadow: none; -} - -.is-white.textarea, .is-white.input { - border-color: white; -} - - .is-white.textarea:focus, .is-white.input:focus, .is-white.is-focused.textarea, .is-white.is-focused.input, .is-white.textarea:active, .is-white.input:active, .is-white.active, .is-white.is-active.textarea, .is-white.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); - box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); - } - -.is-black.textarea, .is-black.input { - border-color: #0a0a0a; -} - - .is-black.textarea:focus, .is-black.input:focus, .is-black.is-focused.textarea, .is-black.is-focused.input, .is-black.textarea:active, .is-black.input:active, .is-black.active, .is-black.is-active.textarea, .is-black.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); - box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); - } - -.is-light.textarea, .is-light.input { - border-color: whitesmoke; -} - - .is-light.textarea:focus, .is-light.input:focus, .is-light.is-focused.textarea, .is-light.is-focused.input, .is-light.textarea:active, .is-light.input:active, .is-light.active, .is-light.is-active.textarea, .is-light.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); - box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); - } - -.is-dark.textarea, .is-dark.input { - border-color: #200117; -} - - .is-dark.textarea:focus, .is-dark.input:focus, .is-dark.is-focused.textarea, .is-dark.is-focused.input, .is-dark.textarea:active, .is-dark.input:active, .is-dark.active, .is-dark.is-active.textarea, .is-dark.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(32, 1, 23, 0.25); - box-shadow: 0 0 0 0.125em rgba(32, 1, 23, 0.25); - } - -.is-primary.textarea, .is-primary.input { - border-color: #A00975; -} - - .is-primary.textarea:focus, .is-primary.input:focus, .is-primary.is-focused.textarea, .is-primary.is-focused.input, .is-primary.textarea:active, .is-primary.input:active, .is-primary.active, .is-primary.is-active.textarea, .is-primary.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(160, 9, 117, 0.25); - box-shadow: 0 0 0 0.125em rgba(160, 9, 117, 0.25); - } - -.is-link.textarea, .is-link.input { - border-color: #378BBA; -} - - .is-link.textarea:focus, .is-link.input:focus, .is-link.is-focused.textarea, .is-link.is-focused.input, .is-link.textarea:active, .is-link.input:active, .is-link.active, .is-link.is-active.textarea, .is-link.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - } - -.is-info.textarea, .is-info.input { - border-color: #3298dc; -} - - .is-info.textarea:focus, .is-info.input:focus, .is-info.is-focused.textarea, .is-info.is-focused.input, .is-info.textarea:active, .is-info.input:active, .is-info.active, .is-info.is-active.textarea, .is-info.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(50, 152, 220, 0.25); - box-shadow: 0 0 0 0.125em rgba(50, 152, 220, 0.25); - } - -.is-success.textarea, .is-success.input { - border-color: #48c774; -} - - .is-success.textarea:focus, .is-success.input:focus, .is-success.is-focused.textarea, .is-success.is-focused.input, .is-success.textarea:active, .is-success.input:active, .is-success.active, .is-success.is-active.textarea, .is-success.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(72, 199, 116, 0.25); - box-shadow: 0 0 0 0.125em rgba(72, 199, 116, 0.25); - } - -.is-warning.textarea, .is-warning.input { - border-color: #ffdd57; -} - - .is-warning.textarea:focus, .is-warning.input:focus, .is-warning.is-focused.textarea, .is-warning.is-focused.input, .is-warning.textarea:active, .is-warning.input:active, .is-warning.active, .is-warning.is-active.textarea, .is-warning.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); - box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); - } - -.is-danger.textarea, .is-danger.input { - border-color: #f14668; -} - - .is-danger.textarea:focus, .is-danger.input:focus, .is-danger.is-focused.textarea, .is-danger.is-focused.input, .is-danger.textarea:active, .is-danger.input:active, .is-danger.active, .is-danger.is-active.textarea, .is-danger.is-active.input { - -webkit-box-shadow: 0 0 0 0.125em rgba(241, 70, 104, 0.25); - box-shadow: 0 0 0 0.125em rgba(241, 70, 104, 0.25); - } - -.is-small.textarea, .is-small.input { - border-radius: 2px; - font-size: 0.75rem; -} - -.is-medium.textarea, .is-medium.input { - font-size: 1.25rem; -} - -.is-large.textarea, .is-large.input { - font-size: 1.5rem; -} - -.is-fullwidth.textarea, .is-fullwidth.input { - display: block; - width: 100%; -} - -.is-inline.textarea, .is-inline.input { - display: inline; - width: auto; -} - -.input.is-rounded { - border-radius: 290486px; - padding-left: calc(calc(0.75em - 1px) + 0.375em); - padding-right: calc(calc(0.75em - 1px) + 0.375em); -} - -.input.is-static { - background-color: transparent; - border-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; - padding-left: 0; - padding-right: 0; -} - -.textarea { - display: block; - max-width: 100%; - min-width: 100%; - padding: calc(0.75em - 1px); - resize: vertical; -} - - .textarea:not([rows]) { - max-height: 40em; - min-height: 8em; - } - - .textarea[rows] { - height: initial; - } - - .textarea.has-fixed-size { - resize: none; - } - -.radio, .checkbox { - cursor: pointer; - display: inline-block; - line-height: 1.25; - position: relative; -} - - .radio input, .checkbox input { - cursor: pointer; - } - - .radio:hover, .checkbox:hover { - color: #363636; - } - - [disabled].radio, [disabled].checkbox, fieldset[disabled] .radio, fieldset[disabled] .checkbox, - .radio input[disabled], - .checkbox input[disabled] { - color: #7a7a7a; - cursor: not-allowed; - } - - .radio + .radio { - margin-left: 0.5em; - } - -.select { - display: inline-block; - max-width: 100%; - position: relative; - vertical-align: top; -} - - .select:not(.is-multiple) { - height: 2.5em; - } - - .select:not(.is-multiple):not(.is-loading)::after { - border-color: #378BBA; - right: 1.125em; - z-index: 4; - } - - .select.is-rounded select { - border-radius: 290486px; - padding-left: 1em; - } - - .select select { - cursor: pointer; - display: block; - font-size: 1em; - max-width: 100%; - outline: none; - } - - .select select::-ms-expand { - display: none; - } - - .select select[disabled]:hover, fieldset[disabled] .select select:hover { - border-color: whitesmoke; - } - - .select select:not([multiple]) { - padding-right: 2.5em; - } - - .select select[multiple] { - height: auto; - padding: 0; - } - - .select select[multiple] option { - padding: 0.5em 1em; - } - - .select:not(.is-multiple):not(.is-loading):hover::after { - border-color: #363636; - } - - .select.is-white:not(:hover)::after { - border-color: white; - } - - .select.is-white select { - border-color: white; - } - - .select.is-white select:hover, .select.is-white select.is-hovered { - border-color: #f2f2f2; - } - - .select.is-white select:focus, .select.is-white select.is-focused, .select.is-white select:active, .select.is-white select.is-active, .select.is-white select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); - box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); - } - - .select.is-black:not(:hover)::after { - border-color: #0a0a0a; - } - - .select.is-black select { - border-color: #0a0a0a; - } - - .select.is-black select:hover, .select.is-black select.is-hovered { - border-color: black; - } - - .select.is-black select:focus, .select.is-black select.is-focused, .select.is-black select:active, .select.is-black select.is-active, .select.is-black select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); - box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); - } - - .select.is-light:not(:hover)::after { - border-color: whitesmoke; - } - - .select.is-light select { - border-color: whitesmoke; - } - - .select.is-light select:hover, .select.is-light select.is-hovered { - border-color: #e8e8e8; - } - - .select.is-light select:focus, .select.is-light select.is-focused, .select.is-light select:active, .select.is-light select.is-active, .select.is-light select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); - box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); - } - - .select.is-dark:not(:hover)::after { - border-color: #200117; - } - - .select.is-dark select { - border-color: #200117; - } - - .select.is-dark select:hover, .select.is-dark select.is-hovered { - border-color: #070005; - } - - .select.is-dark select:focus, .select.is-dark select.is-focused, .select.is-dark select:active, .select.is-dark select.is-active, .select.is-dark select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(32, 1, 23, 0.25); - box-shadow: 0 0 0 0.125em rgba(32, 1, 23, 0.25); - } - - .select.is-primary:not(:hover)::after { - border-color: #A00975; - } - - .select.is-primary select { - border-color: #A00975; - } - - .select.is-primary select:hover, .select.is-primary select.is-hovered { - border-color: #880863; - } - - .select.is-primary select:focus, .select.is-primary select.is-focused, .select.is-primary select:active, .select.is-primary select.is-active, .select.is-primary select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(160, 9, 117, 0.25); - box-shadow: 0 0 0 0.125em rgba(160, 9, 117, 0.25); - } - - .select.is-link:not(:hover)::after { - border-color: #378BBA; - } - - .select.is-link select { - border-color: #378BBA; - } - - .select.is-link select:hover, .select.is-link select.is-hovered { - border-color: #317ca6; - } - - .select.is-link select:focus, .select.is-link select.is-focused, .select.is-link select:active, .select.is-link select.is-active, .select.is-link select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - box-shadow: 0 0 0 0.125em rgba(55, 139, 186, 0.25); - } - - .select.is-info:not(:hover)::after { - border-color: #3298dc; - } - - .select.is-info select { - border-color: #3298dc; - } - - .select.is-info select:hover, .select.is-info select.is-hovered { - border-color: #238cd1; - } - - .select.is-info select:focus, .select.is-info select.is-focused, .select.is-info select:active, .select.is-info select.is-active, .select.is-info select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(50, 152, 220, 0.25); - box-shadow: 0 0 0 0.125em rgba(50, 152, 220, 0.25); - } - - .select.is-success:not(:hover)::after { - border-color: #48c774; - } - - .select.is-success select { - border-color: #48c774; - } - - .select.is-success select:hover, .select.is-success select.is-hovered { - border-color: #3abb67; - } - - .select.is-success select:focus, .select.is-success select.is-focused, .select.is-success select:active, .select.is-success select.is-active, .select.is-success select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(72, 199, 116, 0.25); - box-shadow: 0 0 0 0.125em rgba(72, 199, 116, 0.25); - } - - .select.is-warning:not(:hover)::after { - border-color: #ffdd57; - } - - .select.is-warning select { - border-color: #ffdd57; - } - - .select.is-warning select:hover, .select.is-warning select.is-hovered { - border-color: #ffd83d; - } - - .select.is-warning select:focus, .select.is-warning select.is-focused, .select.is-warning select:active, .select.is-warning select.is-active, .select.is-warning select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); - box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); - } - - .select.is-danger:not(:hover)::after { - border-color: #f14668; - } - - .select.is-danger select { - border-color: #f14668; - } - - .select.is-danger select:hover, .select.is-danger select.is-hovered { - border-color: #ef2e55; - } - - .select.is-danger select:focus, .select.is-danger select.is-focused, .select.is-danger select:active, .select.is-danger select.is-active, .select.is-danger select.active { - -webkit-box-shadow: 0 0 0 0.125em rgba(241, 70, 104, 0.25); - box-shadow: 0 0 0 0.125em rgba(241, 70, 104, 0.25); - } - - .select.is-small { - border-radius: 2px; - font-size: 0.75rem; - } - - .select.is-medium { - font-size: 1.25rem; - } - - .select.is-large { - font-size: 1.5rem; - } - - .select.is-disabled::after { - border-color: #7a7a7a; - } - - .select.is-fullwidth { - width: 100%; - } - - .select.is-fullwidth select { - width: 100%; - } - - .select.is-loading::after { - margin-top: 0; - position: absolute; - right: 0.625em; - top: 0.625em; - -webkit-transform: none; - -ms-transform: none; - transform: none; - } - - .select.is-loading.is-small:after { - font-size: 0.75rem; - } - - .select.is-loading.is-medium:after { - font-size: 1.25rem; - } - - .select.is-loading.is-large:after { - font-size: 1.5rem; - } - -.file { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - position: relative; -} - - .file.is-white .file-cta { - background-color: white; - border-color: transparent; - color: #0a0a0a; - } - - .file.is-white:hover .file-cta, .file.is-white.is-hovered .file-cta { - background-color: #f9f9f9; - border-color: transparent; - color: #0a0a0a; - } - - .file.is-white:focus .file-cta, .file.is-white.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(255, 255, 255, 0.25); - box-shadow: 0 0 0.5em rgba(255, 255, 255, 0.25); - color: #0a0a0a; - } - - .file.is-white:active .file-cta, .file.is-white.is-active .file-cta, .is-white.active .file-cta { - background-color: #f2f2f2; - border-color: transparent; - color: #0a0a0a; - } - - .file.is-black .file-cta { - background-color: #0a0a0a; - border-color: transparent; - color: white; - } - - .file.is-black:hover .file-cta, .file.is-black.is-hovered .file-cta { - background-color: #040404; - border-color: transparent; - color: white; - } - - .file.is-black:focus .file-cta, .file.is-black.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(10, 10, 10, 0.25); - box-shadow: 0 0 0.5em rgba(10, 10, 10, 0.25); - color: white; - } - - .file.is-black:active .file-cta, .file.is-black.is-active .file-cta, .is-black.active .file-cta { - background-color: black; - border-color: transparent; - color: white; - } - - .file.is-light .file-cta { - background-color: whitesmoke; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .file.is-light:hover .file-cta, .file.is-light.is-hovered .file-cta { - background-color: #eeeeee; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .file.is-light:focus .file-cta, .file.is-light.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(245, 245, 245, 0.25); - box-shadow: 0 0 0.5em rgba(245, 245, 245, 0.25); - color: rgba(0, 0, 0, 0.7); - } - - .file.is-light:active .file-cta, .file.is-light.is-active .file-cta, .is-light.active .file-cta { - background-color: #e8e8e8; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .file.is-dark .file-cta { - background-color: #200117; - border-color: transparent; - color: #fff; - } - - .file.is-dark:hover .file-cta, .file.is-dark.is-hovered .file-cta { - background-color: #14010e; - border-color: transparent; - color: #fff; - } - - .file.is-dark:focus .file-cta, .file.is-dark.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(32, 1, 23, 0.25); - box-shadow: 0 0 0.5em rgba(32, 1, 23, 0.25); - color: #fff; - } - - .file.is-dark:active .file-cta, .file.is-dark.is-active .file-cta, .is-dark.active .file-cta { - background-color: #070005; - border-color: transparent; - color: #fff; - } - - .file.is-primary .file-cta { - background-color: #A00975; - border-color: transparent; - color: #fff; - } - - .file.is-primary:hover .file-cta, .file.is-primary.is-hovered .file-cta { - background-color: #94086c; - border-color: transparent; - color: #fff; - } - - .file.is-primary:focus .file-cta, .file.is-primary.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(160, 9, 117, 0.25); - box-shadow: 0 0 0.5em rgba(160, 9, 117, 0.25); - color: #fff; - } - - .file.is-primary:active .file-cta, .file.is-primary.is-active .file-cta, .is-primary.active .file-cta { - background-color: #880863; - border-color: transparent; - color: #fff; - } - - .file.is-link .file-cta { - background-color: #378BBA; - border-color: transparent; - color: #fff; - } - - .file.is-link:hover .file-cta, .file.is-link.is-hovered .file-cta { - background-color: #3484b0; - border-color: transparent; - color: #fff; - } - - .file.is-link:focus .file-cta, .file.is-link.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(55, 139, 186, 0.25); - box-shadow: 0 0 0.5em rgba(55, 139, 186, 0.25); - color: #fff; - } - - .file.is-link:active .file-cta, .file.is-link.is-active .file-cta, .is-link.active .file-cta { - background-color: #317ca6; - border-color: transparent; - color: #fff; - } - - .file.is-info .file-cta { - background-color: #3298dc; - border-color: transparent; - color: #fff; - } - - .file.is-info:hover .file-cta, .file.is-info.is-hovered .file-cta { - background-color: #2793da; - border-color: transparent; - color: #fff; - } - - .file.is-info:focus .file-cta, .file.is-info.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(50, 152, 220, 0.25); - box-shadow: 0 0 0.5em rgba(50, 152, 220, 0.25); - color: #fff; - } - - .file.is-info:active .file-cta, .file.is-info.is-active .file-cta, .is-info.active .file-cta { - background-color: #238cd1; - border-color: transparent; - color: #fff; - } - - .file.is-success .file-cta { - background-color: #48c774; - border-color: transparent; - color: #fff; - } - - .file.is-success:hover .file-cta, .file.is-success.is-hovered .file-cta { - background-color: #3ec46d; - border-color: transparent; - color: #fff; - } - - .file.is-success:focus .file-cta, .file.is-success.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(72, 199, 116, 0.25); - box-shadow: 0 0 0.5em rgba(72, 199, 116, 0.25); - color: #fff; - } - - .file.is-success:active .file-cta, .file.is-success.is-active .file-cta, .is-success.active .file-cta { - background-color: #3abb67; - border-color: transparent; - color: #fff; - } - - .file.is-warning .file-cta { - background-color: #ffdd57; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .file.is-warning:hover .file-cta, .file.is-warning.is-hovered .file-cta { - background-color: #ffdb4a; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .file.is-warning:focus .file-cta, .file.is-warning.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(255, 221, 87, 0.25); - box-shadow: 0 0 0.5em rgba(255, 221, 87, 0.25); - color: rgba(0, 0, 0, 0.7); - } - - .file.is-warning:active .file-cta, .file.is-warning.is-active .file-cta, .is-warning.active .file-cta { - background-color: #ffd83d; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); - } - - .file.is-danger .file-cta { - background-color: #f14668; - border-color: transparent; - color: #fff; - } - - .file.is-danger:hover .file-cta, .file.is-danger.is-hovered .file-cta { - background-color: #f03a5f; - border-color: transparent; - color: #fff; - } - - .file.is-danger:focus .file-cta, .file.is-danger.is-focused .file-cta { - border-color: transparent; - -webkit-box-shadow: 0 0 0.5em rgba(241, 70, 104, 0.25); - box-shadow: 0 0 0.5em rgba(241, 70, 104, 0.25); - color: #fff; - } - - .file.is-danger:active .file-cta, .file.is-danger.is-active .file-cta, .is-danger.active .file-cta { - background-color: #ef2e55; - border-color: transparent; - color: #fff; - } - - .file.is-small { - font-size: 0.75rem; - } - - .file.is-medium { - font-size: 1.25rem; - } - - .file.is-medium .file-icon .fa { - font-size: 21px; - } - - .file.is-large { - font-size: 1.5rem; - } - - .file.is-large .file-icon .fa { - font-size: 28px; - } - - .file.has-name .file-cta { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - - .file.has-name .file-name { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - - .file.has-name.is-empty .file-cta { - border-radius: 4px; - } - - .file.has-name.is-empty .file-name { - display: none; - } - - .file.is-boxed .file-label { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - } - - .file.is-boxed .file-cta { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - height: auto; - padding: 1em 3em; - } - - .file.is-boxed .file-name { - border-width: 0 1px 1px; - } - - .file.is-boxed .file-icon { - height: 1.5em; - width: 1.5em; - } - - .file.is-boxed .file-icon .fa { - font-size: 21px; - } - - .file.is-boxed.is-small .file-icon .fa { - font-size: 14px; - } - - .file.is-boxed.is-medium .file-icon .fa { - font-size: 28px; - } - - .file.is-boxed.is-large .file-icon .fa { - font-size: 35px; - } - - .file.is-boxed.has-name .file-cta { - border-radius: 4px 4px 0 0; - } - - .file.is-boxed.has-name .file-name { - border-radius: 0 0 4px 4px; - border-width: 0 1px 1px; - } - - .file.is-centered { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .file.is-fullwidth .file-label { - width: 100%; - } - - .file.is-fullwidth .file-name { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: none; - } - - .file.is-right { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - } - - .file.is-right .file-cta { - border-radius: 0 4px 4px 0; - } - - .file.is-right .file-name { - border-radius: 4px 0 0 4px; - border-width: 1px 0 1px 1px; - -webkit-box-ordinal-group: 0; - -ms-flex-order: -1; - order: -1; - } - -.file-label { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - cursor: pointer; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - overflow: hidden; - position: relative; -} - - .file-label:hover .file-cta { - background-color: #eeeeee; - color: #363636; - } - - .file-label:hover .file-name { - border-color: #d5d5d5; - } - - .file-label:active .file-cta { - background-color: #e8e8e8; - color: #363636; - } - - .file-label:active .file-name { - border-color: #cfcfcf; - } - -.file-input { - height: 100%; - left: 0; - opacity: 0; - outline: none; - position: absolute; - top: 0; - width: 100%; -} - -.file-cta, -.file-name { - border-color: #dbdbdb; - border-radius: 4px; - font-size: 1em; - padding-left: 1em; - padding-right: 1em; - white-space: nowrap; -} - -.file-cta { - background-color: whitesmoke; - color: #4a4a4a; -} - -.file-name { - border-color: #dbdbdb; - border-style: solid; - border-width: 1px 1px 1px 0; - display: block; - max-width: 16em; - overflow: hidden; - text-align: inherit; - -o-text-overflow: ellipsis; - text-overflow: ellipsis; -} - -.file-icon { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - height: 1em; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - margin-right: 0.5em; - width: 1em; -} - - .file-icon .fa { - font-size: 14px; - } - -.label { - color: #363636; - display: block; - font-size: 1rem; - font-weight: 700; -} - - .label:not(:last-child) { - margin-bottom: 0.5em; - } - - .label.is-small { - font-size: 0.75rem; - } - - .label.is-medium { - font-size: 1.25rem; - } - - .label.is-large { - font-size: 1.5rem; - } - -.help { - display: block; - font-size: 0.75rem; - margin-top: 0.25rem; -} - - .help.is-white { - color: white; - } - - .help.is-black { - color: #0a0a0a; - } - - .help.is-light { - color: whitesmoke; - } - - .help.is-dark { - color: #200117; - } - - .help.is-primary { - color: #A00975; - } - - .help.is-link { - color: #378BBA; - } - - .help.is-info { - color: #3298dc; - } - - .help.is-success { - color: #48c774; - } - - .help.is-warning { - color: #ffdd57; - } - - .help.is-danger { - color: #f14668; - } - -.field:not(:last-child) { - margin-bottom: 0.75rem; -} - -.field.has-addons { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; -} - - .field.has-addons .control:not(:last-child) { - margin-right: -1px; - } - - .field.has-addons .control:not(:first-child):not(:last-child) .button, - .field.has-addons .control:not(:first-child):not(:last-child) .input, - .field.has-addons .control:not(:first-child):not(:last-child) .select select { - border-radius: 0; - } - - .field.has-addons .control:first-child:not(:only-child) .button, - .field.has-addons .control:first-child:not(:only-child) .input, - .field.has-addons .control:first-child:not(:only-child) .select select { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - } - - .field.has-addons .control:last-child:not(:only-child) .button, - .field.has-addons .control:last-child:not(:only-child) .input, - .field.has-addons .control:last-child:not(:only-child) .select select { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - } - - .field.has-addons .control .button:not([disabled]):hover, .field.has-addons .control .button:not([disabled]).is-hovered, - .field.has-addons .control .input:not([disabled]):hover, - .field.has-addons .control .input:not([disabled]).is-hovered, - .field.has-addons .control .select select:not([disabled]):hover, - .field.has-addons .control .select select:not([disabled]).is-hovered { - z-index: 2; - } - - .field.has-addons .control .button:not([disabled]):focus, .field.has-addons .control .button:not([disabled]).is-focused, .field.has-addons .control .button:not([disabled]):active, .field.has-addons .control .button:not([disabled]).is-active, .field.has-addons .control .active:not([disabled]), - .field.has-addons .control .input:not([disabled]):focus, - .field.has-addons .control .input:not([disabled]).is-focused, - .field.has-addons .control .input:not([disabled]):active, - .field.has-addons .control .input:not([disabled]).is-active, - .field.has-addons .control .select select:not([disabled]):focus, - .field.has-addons .control .select select:not([disabled]).is-focused, - .field.has-addons .control .select select:not([disabled]):active, - .field.has-addons .control .select select:not([disabled]).is-active { - z-index: 3; - } - - .field.has-addons .control .button:not([disabled]):focus:hover, .field.has-addons .control .button:not([disabled]).is-focused:hover, .field.has-addons .control .button:not([disabled]):active:hover, .field.has-addons .control .button:not([disabled]).is-active:hover, .field.has-addons .control .active:not([disabled]):hover, - .field.has-addons .control .input:not([disabled]):focus:hover, - .field.has-addons .control .input:not([disabled]).is-focused:hover, - .field.has-addons .control .input:not([disabled]):active:hover, - .field.has-addons .control .input:not([disabled]).is-active:hover, - .field.has-addons .control .select select:not([disabled]):focus:hover, - .field.has-addons .control .select select:not([disabled]).is-focused:hover, - .field.has-addons .control .select select:not([disabled]):active:hover, - .field.has-addons .control .select select:not([disabled]).is-active:hover { - z-index: 4; - } - - .field.has-addons .control.is-expanded { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - } - - .field.has-addons.has-addons-centered { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .field.has-addons.has-addons-right { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - } - - .field.has-addons.has-addons-fullwidth .control { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - } - -.field.is-grouped { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; -} - - .field.is-grouped > .control { - -ms-flex-negative: 0; - flex-shrink: 0; - } - - .field.is-grouped > .control:not(:last-child) { - margin-bottom: 0; - margin-right: 0.75rem; - } - - .field.is-grouped > .control.is-expanded { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - } - - .field.is-grouped.is-grouped-centered { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .field.is-grouped.is-grouped-right { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - } - - .field.is-grouped.is-grouped-multiline { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - } - - .field.is-grouped.is-grouped-multiline > .control:last-child, .field.is-grouped.is-grouped-multiline > .control:not(:last-child) { - margin-bottom: 0.75rem; - } - - .field.is-grouped.is-grouped-multiline:last-child { - margin-bottom: -0.75rem; - } - - .field.is-grouped.is-grouped-multiline:not(:last-child) { - margin-bottom: 0; - } - -@media screen and (min-width: 769px), print { - .field.is-horizontal { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } -} - -.field-label .label { - font-size: inherit; -} - -@media screen and (max-width: 768px) { - .field-label { - margin-bottom: 0.5rem; - } -} - -@media screen and (min-width: 769px), print { - .field-label { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - margin-right: 1.5rem; - text-align: right; - } - - .field-label.is-small { - font-size: 0.75rem; - padding-top: 0.375em; - } - - .field-label.is-normal { - padding-top: 0.375em; - } - - .field-label.is-medium { - font-size: 1.25rem; - padding-top: 0.375em; - } - - .field-label.is-large { - font-size: 1.5rem; - padding-top: 0.375em; - } -} - -.field-body .field .field { - margin-bottom: 0; -} - -@media screen and (min-width: 769px), print { - .field-body { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-preferred-size: 0; - flex-basis: 0; - -webkit-box-flex: 5; - -ms-flex-positive: 5; - flex-grow: 5; - -ms-flex-negative: 1; - flex-shrink: 1; - } - - .field-body .field { - margin-bottom: 0; - } - - .field-body > .field { - -ms-flex-negative: 1; - flex-shrink: 1; - } - - .field-body > .field:not(.is-narrow) { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - } - - .field-body > .field:not(:last-child) { - margin-right: 0.75rem; - } -} - -.control { - -webkit-box-sizing: border-box; - box-sizing: border-box; - clear: both; - font-size: 1rem; - position: relative; - text-align: inherit; -} - - .control.has-icons-left .input:focus ~ .icon, - .control.has-icons-left .select:focus ~ .icon, .control.has-icons-right .input:focus ~ .icon, - .control.has-icons-right .select:focus ~ .icon { - color: #4a4a4a; - } - - .control.has-icons-left .input.is-small ~ .icon, - .control.has-icons-left .select.is-small ~ .icon, .control.has-icons-right .input.is-small ~ .icon, - .control.has-icons-right .select.is-small ~ .icon { - font-size: 0.75rem; - } - - .control.has-icons-left .input.is-medium ~ .icon, - .control.has-icons-left .select.is-medium ~ .icon, .control.has-icons-right .input.is-medium ~ .icon, - .control.has-icons-right .select.is-medium ~ .icon { - font-size: 1.25rem; - } - - .control.has-icons-left .input.is-large ~ .icon, - .control.has-icons-left .select.is-large ~ .icon, .control.has-icons-right .input.is-large ~ .icon, - .control.has-icons-right .select.is-large ~ .icon { - font-size: 1.5rem; - } - - .control.has-icons-left .icon, .control.has-icons-right .icon { - color: #dbdbdb; - height: 2.5em; - pointer-events: none; - position: absolute; - top: 0; - width: 2.5em; - z-index: 4; - } - - .control.has-icons-left .input, - .control.has-icons-left .select select { - padding-left: 2.5em; - } - - .control.has-icons-left .icon.is-left { - left: 0; - } - - .control.has-icons-right .input, - .control.has-icons-right .select select { - padding-right: 2.5em; - } - - .control.has-icons-right .icon.is-right { - right: 0; - } - - .control.is-loading::after { - position: absolute !important; - right: 0.625em; - top: 0.625em; - z-index: 4; - } - - .control.is-loading.is-small:after { - font-size: 0.75rem; - } - - .control.is-loading.is-medium:after { - font-size: 1.25rem; - } - - .control.is-loading.is-large:after { - font-size: 1.5rem; - } - -/* Bulma Components */ -.breadcrumb { - font-size: 1rem; - white-space: nowrap; -} - - .breadcrumb a { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: #378BBA; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - padding: 0 0.75em; - } - - .breadcrumb a:hover { - color: #A00975; - } - - .breadcrumb li { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .breadcrumb li:first-child a { - padding-left: 0; - } - - .breadcrumb li.is-active a, .breadcrumb li.active a { - color: #363636; - cursor: default; - pointer-events: none; - } - - .breadcrumb li + li::before { - color: #b5b5b5; - content: "\0002f"; - } - - .breadcrumb ul, - .breadcrumb ol { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - } - - .breadcrumb .icon:first-child { - margin-right: 0.5em; - } - - .breadcrumb .icon:last-child { - margin-left: 0.5em; - } - - .breadcrumb.is-centered ol, - .breadcrumb.is-centered ul { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .breadcrumb.is-right ol, - .breadcrumb.is-right ul { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - } - - .breadcrumb.is-small { - font-size: 0.75rem; - } - - .breadcrumb.is-medium { - font-size: 1.25rem; - } - - .breadcrumb.is-large { - font-size: 1.5rem; - } - - .breadcrumb.has-arrow-separator li + li::before { - content: "\02192"; - } - - .breadcrumb.has-bullet-separator li + li::before { - content: "\02022"; - } - - .breadcrumb.has-dot-separator li + li::before { - content: "\000b7"; - } - - .breadcrumb.has-succeeds-separator li + li::before { - content: "\0227B"; - } - -.card { - background-color: white; - border-radius: 0.25rem; - -webkit-box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - color: #4a4a4a; - max-width: 100%; - position: relative; -} - -.card-footer:first-child, .card-content:first-child, .card-header:first-child { - border-top-left-radius: 0.25rem; - border-top-right-radius: 0.25rem; -} - -.card-footer:last-child, .card-content:last-child, .card-header:last-child { - border-bottom-left-radius: 0.25rem; - border-bottom-right-radius: 0.25rem; -} - -.card-header { - background-color: transparent; - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - -webkit-box-shadow: 0 0.125em 0.25em rgba(10, 10, 10, 0.1); - box-shadow: 0 0.125em 0.25em rgba(10, 10, 10, 0.1); - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} - -.card-header-title { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: #363636; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - font-weight: 700; - padding: 0.75rem 1rem; -} - - .card-header-title.is-centered { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - -.card-header-icon { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - cursor: pointer; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - padding: 0.75rem 1rem; -} - -.card-image { - display: block; - position: relative; -} - - .card-image:first-child img { - border-top-left-radius: 0.25rem; - border-top-right-radius: 0.25rem; - } - - .card-image:last-child img { - border-bottom-left-radius: 0.25rem; - border-bottom-right-radius: 0.25rem; - } - -.card-content { - background-color: transparent; - padding: 1.5rem; -} - -.card-footer { - background-color: transparent; - border-top: 1px solid #ededed; - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} - -.card-footer-item { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-preferred-size: 0; - flex-basis: 0; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - padding: 0.75rem; -} - - .card-footer-item:not(:last-child) { - border-right: 1px solid #ededed; - } - -.card .media:not(:last-child) { - margin-bottom: 1.5rem; -} - -.dropdown { - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - position: relative; - vertical-align: top; -} - - .dropdown.is-active .dropdown-menu, .dropdown.active .dropdown-menu, .dropdown.is-hoverable:hover .dropdown-menu { - display: block; - } - - .dropdown.is-right .dropdown-menu { - left: auto; - right: 0; - } - - .dropdown.is-up .dropdown-menu { - bottom: 100%; - padding-bottom: 4px; - padding-top: initial; - top: auto; - } - -.dropdown-menu { - display: none; - left: 0; - min-width: 12rem; - padding-top: 4px; - position: absolute; - top: 100%; - z-index: 20; -} - -.dropdown-content { - background-color: white; - border-radius: 4px; - -webkit-box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - padding-bottom: 0.5rem; - padding-top: 0.5rem; -} - -.dropdown-item { - color: #4a4a4a; - display: block; - font-size: 0.875rem; - line-height: 1.5; - padding: 0.375rem 1rem; - position: relative; -} - -a.dropdown-item, -button.dropdown-item { - padding-right: 3rem; - text-align: inherit; - white-space: nowrap; - width: 100%; -} - - a.dropdown-item:hover, - button.dropdown-item:hover { - background-color: whitesmoke; - color: #0a0a0a; - } - - a.dropdown-item.is-active, .dropdown-item.active, - button.dropdown-item.is-active { - background-color: #378BBA; - color: #fff; - } - -.dropdown-divider { - background-color: #ededed; - border: none; - display: block; - height: 1px; - margin: 0.5rem 0; -} - -.level { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; -} - - .level code { - border-radius: 4px; - } - - .level img { - display: inline-block; - vertical-align: top; - } - - .level.is-mobile { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .level.is-mobile .level-left, - .level.is-mobile .level-right { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .level.is-mobile .level-left + .level-right { - margin-top: 0; - } - - .level.is-mobile .level-item:not(:last-child) { - margin-bottom: 0; - margin-right: 0.75rem; - } - - .level.is-mobile .level-item:not(.is-narrow) { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - } - -@media screen and (min-width: 769px), print { - .level { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .level > .level-item:not(.is-narrow) { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - } -} - -.level-item { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; -} - - .level-item .title, - .level-item .subtitle { - margin-bottom: 0; - } - -@media screen and (max-width: 768px) { - .level-item:not(:last-child) { - margin-bottom: 0.75rem; - } -} - -.level-left, -.level-right { - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - - .level-left .level-item.is-flexible, - .level-right .level-item.is-flexible { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - } - -@media screen and (min-width: 769px), print { - .level-left .level-item:not(:last-child), - .level-right .level-item:not(:last-child) { - margin-right: 0.75rem; - } -} - -.level-left { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; -} - -@media screen and (max-width: 768px) { - .level-left + .level-right { - margin-top: 1.5rem; - } -} - -@media screen and (min-width: 769px), print { - .level-left { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } -} - -.level-right { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; -} - -@media screen and (min-width: 769px), print { - .level-right { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } -} - -.media { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - text-align: inherit; -} - - .media .content:not(:last-child) { - margin-bottom: 0.75rem; - } - - .media .media { - border-top: 1px solid rgba(219, 219, 219, 0.5); - display: -webkit-box; - display: -ms-flexbox; - display: flex; - padding-top: 0.75rem; - } - - .media .media .content:not(:last-child), - .media .media .control:not(:last-child) { - margin-bottom: 0.5rem; - } - - .media .media .media { - padding-top: 0.5rem; - } - - .media .media .media + .media { - margin-top: 0.5rem; - } - - .media + .media { - border-top: 1px solid rgba(219, 219, 219, 0.5); - margin-top: 1rem; - padding-top: 1rem; - } - - .media.is-large + .media { - margin-top: 1.5rem; - padding-top: 1.5rem; - } - -.media-left, -.media-right { - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.media-left { - margin-right: 1rem; -} - -.media-right { - margin-left: 1rem; -} - -.media-content { - -ms-flex-preferred-size: auto; - flex-basis: auto; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - text-align: inherit; -} - -@media screen and (max-width: 768px) { - .media-content { - overflow-x: auto; - } -} - -.menu { - font-size: 1rem; -} - - .menu.is-small { - font-size: 0.75rem; - } - - .menu.is-medium { - font-size: 1.25rem; - } - - .menu.is-large { - font-size: 1.5rem; - } - -.menu-list, .navbar-nav { - line-height: 1.25; -} - - .menu-list a, .navbar-nav a { - border-radius: 2px; - color: #4a4a4a; - display: block; - padding: 0.5em 0.75em; - } - - .menu-list a:hover, .navbar-nav a:hover { - background-color: whitesmoke; - color: #363636; - } - - .menu-list a.is-active, .menu-list a.active, .navbar-nav a.is-active, .navbar-nav a.active { - background-color: #378BBA; - color: #fff; - } - - .menu-list li ul, .navbar-nav li ul { - border-left: 1px solid #dbdbdb; - margin: 0.75em; - padding-left: 0.75em; - } - -.menu-label, .nav-header { - color: #7a7a7a; - font-size: 0.75em; - letter-spacing: 0.1em; - text-transform: uppercase; -} - - .menu-label:not(:first-child), .nav-header:not(:first-child) { - margin-top: 1em; - } - - .menu-label:not(:last-child), .nav-header:not(:last-child) { - margin-bottom: 1em; - } - -.message { - background-color: whitesmoke; - border-radius: 4px; - font-size: 1rem; -} - - .message strong { - color: currentColor; - } - - .message a:not(.button):not(.tag):not(.dropdown-item) { - color: currentColor; - text-decoration: underline; - } - - .message.is-small { - font-size: 0.75rem; - } - - .message.is-medium { - font-size: 1.25rem; - } - - .message.is-large { - font-size: 1.5rem; - } - - .message.is-white { - background-color: white; - } - - .message.is-white .message-header { - background-color: white; - color: #0a0a0a; - } - - .message.is-white .message-body { - border-color: white; - } - - .message.is-black { - background-color: #fafafa; - } - - .message.is-black .message-header { - background-color: #0a0a0a; - color: white; - } - - .message.is-black .message-body { - border-color: #0a0a0a; - } - - .message.is-light { - background-color: #fafafa; - } - - .message.is-light .message-header { - background-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); - } - - .message.is-light .message-body { - border-color: whitesmoke; - } - - .message.is-dark { - background-color: #fff5fc; - } - - .message.is-dark .message-header { - background-color: #200117; - color: #fff; - } - - .message.is-dark .message-body { - border-color: #200117; - } - - .message.is-primary { - background-color: #feecf9; - } - - .message.is-primary .message-header { - background-color: #A00975; - color: #fff; - } - - .message.is-primary .message-body { - border-color: #A00975; - color: #f212b2; - } - - .message.is-link { - background-color: #eff6fa; - } - - .message.is-link .message-header { - background-color: #378BBA; - color: #fff; - } - - .message.is-link .message-body { - border-color: #378BBA; - color: #317ca5; - } - - .message.is-info { - background-color: #eef6fc; - } - - .message.is-info .message-header { - background-color: #3298dc; - color: #fff; - } - - .message.is-info .message-body { - border-color: #3298dc; - color: #1d72aa; - } - - .message.is-success { - background-color: #effaf3; - } - - .message.is-success .message-header { - background-color: #48c774; - color: #fff; - } - - .message.is-success .message-body { - border-color: #48c774; - color: #257942; - } - - .message.is-warning { - background-color: #fffbeb; - } - - .message.is-warning .message-header { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } - - .message.is-warning .message-body { - border-color: #ffdd57; - color: #947600; - } - - .message.is-danger { - background-color: #feecf0; - } - - .message.is-danger .message-header { - background-color: #f14668; - color: #fff; - } - - .message.is-danger .message-body { - border-color: #f14668; - color: #cc0f35; - } - -.message-header { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - background-color: #4a4a4a; - border-radius: 4px 4px 0 0; - color: #fff; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - font-weight: 700; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - line-height: 1.25; - padding: 0.75em 1em; - position: relative; -} - - .message-header .delete { - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - margin-left: 0.75em; - } - - .message-header + .message-body { - border-width: 0; - border-top-left-radius: 0; - border-top-right-radius: 0; - } - -.message-body { - border-color: #dbdbdb; - border-radius: 4px; - border-style: solid; - border-width: 0 0 0 4px; - color: #4a4a4a; - padding: 1.25em 1.5em; -} - - .message-body code, - .message-body pre { - background-color: white; - } - - .message-body pre code { - background-color: transparent; - } - -.modal { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: none; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - overflow: hidden; - position: fixed; - z-index: 40; -} - - .modal.is-active, .modal.active { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - -.modal-background { - background-color: rgba(10, 10, 10, 0.86); -} - -.modal-content, -.modal-card { - margin: 0 20px; - max-height: calc(100vh - 160px); - overflow: auto; - position: relative; - width: 100%; -} - -@media screen and (min-width: 769px) { - .modal-content, - .modal-card { - margin: 0 auto; - max-height: calc(100vh - 40px); - width: 640px; - } -} - -.modal-close { - background: none; - height: 40px; - position: fixed; - right: 20px; - top: 20px; - width: 40px; -} - -.modal-card { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - max-height: calc(100vh - 40px); - overflow: hidden; - -ms-overflow-y: visible; -} - -.modal-card-head, -.modal-card-foot { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - background-color: whitesmoke; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - padding: 20px; - position: relative; -} - -.modal-card-head { - border-bottom: 1px solid #dbdbdb; - border-top-left-radius: 6px; - border-top-right-radius: 6px; -} - -.modal-card-title { - color: #363636; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - font-size: 1.5rem; - line-height: 1; -} - -.modal-card-foot { - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; - border-top: 1px solid #dbdbdb; -} - - .modal-card-foot .button:not(:last-child) { - margin-right: 0.5em; - } - -.modal-card-body { - -webkit-overflow-scrolling: touch; - background-color: white; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - overflow: auto; - padding: 20px; -} - -.navbar { - background-color: white; - min-height: 3.25rem; - position: relative; - z-index: 30; -} - - .navbar.is-white { - background-color: white; - color: #0a0a0a; - } - - .navbar.is-white .navbar-brand > .navbar-item, - .navbar.is-white .navbar-brand .navbar-link { - color: #0a0a0a; - } - - .navbar.is-white .navbar-brand > a.navbar-item:focus, .navbar.is-white .navbar-brand > a.navbar-item:hover, .navbar.is-white .navbar-brand > a.navbar-item.is-active, .navbar.is-white .navbar-brand > .navbar-item.active, - .navbar.is-white .navbar-brand .navbar-link:focus, - .navbar.is-white .navbar-brand .navbar-link:hover, - .navbar.is-white .navbar-brand .navbar-link.is-active, - .navbar.is-white .navbar-brand .navbar-link.active { - background-color: #f2f2f2; - color: #0a0a0a; - } - - .navbar.is-white .navbar-brand .navbar-link::after { - border-color: #0a0a0a; - } - - .navbar.is-white .navbar-burger { - color: #0a0a0a; - } - -@media screen and (min-width: 1024px) { - .navbar.is-white .navbar-start > .navbar-item, - .navbar.is-white .navbar-start .navbar-link, - .navbar.is-white .navbar-end > .navbar-item, - .navbar.is-white .navbar-end .navbar-link { - color: #0a0a0a; - } - - .navbar.is-white .navbar-start > a.navbar-item:focus, .navbar.is-white .navbar-start > a.navbar-item:hover, .navbar.is-white .navbar-start > a.navbar-item.is-active, .navbar.is-white .navbar-start > .navbar-item.active, - .navbar.is-white .navbar-start .navbar-link:focus, - .navbar.is-white .navbar-start .navbar-link:hover, - .navbar.is-white .navbar-start .navbar-link.is-active, - .navbar.is-white .navbar-start .navbar-link.active, - .navbar.is-white .navbar-end > a.navbar-item:focus, - .navbar.is-white .navbar-end > a.navbar-item:hover, - .navbar.is-white .navbar-end > a.navbar-item.is-active, - .navbar.is-white .navbar-end > .navbar-item.active, - .navbar.is-white .navbar-end .navbar-link:focus, - .navbar.is-white .navbar-end .navbar-link:hover, - .navbar.is-white .navbar-end .navbar-link.is-active, - .navbar.is-white .navbar-end .navbar-link.active { - background-color: #f2f2f2; - color: #0a0a0a; - } - - .navbar.is-white .navbar-start .navbar-link::after, - .navbar.is-white .navbar-end .navbar-link::after { - border-color: #0a0a0a; - } - - .navbar.is-white .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-white .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-white .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-white .has-dropdown.active .navbar-link { - background-color: #f2f2f2; - color: #0a0a0a; - } - - .navbar.is-white .navbar-dropdown a.navbar-item.is-active, .navbar.is-white .navbar-dropdown .navbar-item.active { - background-color: white; - color: #0a0a0a; - } -} - -.navbar.is-black { - background-color: #0a0a0a; - color: white; -} - - .navbar.is-black .navbar-brand > .navbar-item, - .navbar.is-black .navbar-brand .navbar-link { - color: white; - } - - .navbar.is-black .navbar-brand > a.navbar-item:focus, .navbar.is-black .navbar-brand > a.navbar-item:hover, .navbar.is-black .navbar-brand > a.navbar-item.is-active, .navbar.is-black .navbar-brand > .navbar-item.active, - .navbar.is-black .navbar-brand .navbar-link:focus, - .navbar.is-black .navbar-brand .navbar-link:hover, - .navbar.is-black .navbar-brand .navbar-link.is-active, - .navbar.is-black .navbar-brand .navbar-link.active { - background-color: black; - color: white; - } - - .navbar.is-black .navbar-brand .navbar-link::after { - border-color: white; - } - - .navbar.is-black .navbar-burger { - color: white; - } - -@media screen and (min-width: 1024px) { - .navbar.is-black .navbar-start > .navbar-item, - .navbar.is-black .navbar-start .navbar-link, - .navbar.is-black .navbar-end > .navbar-item, - .navbar.is-black .navbar-end .navbar-link { - color: white; - } - - .navbar.is-black .navbar-start > a.navbar-item:focus, .navbar.is-black .navbar-start > a.navbar-item:hover, .navbar.is-black .navbar-start > a.navbar-item.is-active, .navbar.is-black .navbar-start > .navbar-item.active, - .navbar.is-black .navbar-start .navbar-link:focus, - .navbar.is-black .navbar-start .navbar-link:hover, - .navbar.is-black .navbar-start .navbar-link.is-active, - .navbar.is-black .navbar-start .navbar-link.active, - .navbar.is-black .navbar-end > a.navbar-item:focus, - .navbar.is-black .navbar-end > a.navbar-item:hover, - .navbar.is-black .navbar-end > a.navbar-item.is-active, - .navbar.is-black .navbar-end > .navbar-item.active, - .navbar.is-black .navbar-end .navbar-link:focus, - .navbar.is-black .navbar-end .navbar-link:hover, - .navbar.is-black .navbar-end .navbar-link.is-active, - .navbar.is-black .navbar-end .navbar-link.active { - background-color: black; - color: white; - } - - .navbar.is-black .navbar-start .navbar-link::after, - .navbar.is-black .navbar-end .navbar-link::after { - border-color: white; - } - - .navbar.is-black .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-black .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-black .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-black .has-dropdown.active .navbar-link { - background-color: black; - color: white; - } - - .navbar.is-black .navbar-dropdown a.navbar-item.is-active, .navbar.is-black .navbar-dropdown .navbar-item.active { - background-color: #0a0a0a; - color: white; - } -} - -.navbar.is-light { - background-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); -} - - .navbar.is-light .navbar-brand > .navbar-item, - .navbar.is-light .navbar-brand .navbar-link { - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-light .navbar-brand > a.navbar-item:focus, .navbar.is-light .navbar-brand > a.navbar-item:hover, .navbar.is-light .navbar-brand > a.navbar-item.is-active, .navbar.is-light .navbar-brand > .navbar-item.active, - .navbar.is-light .navbar-brand .navbar-link:focus, - .navbar.is-light .navbar-brand .navbar-link:hover, - .navbar.is-light .navbar-brand .navbar-link.is-active, - .navbar.is-light .navbar-brand .navbar-link.active { - background-color: #e8e8e8; - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-light .navbar-brand .navbar-link::after { - border-color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-light .navbar-burger { - color: rgba(0, 0, 0, 0.7); - } - -@media screen and (min-width: 1024px) { - .navbar.is-light .navbar-start > .navbar-item, - .navbar.is-light .navbar-start .navbar-link, - .navbar.is-light .navbar-end > .navbar-item, - .navbar.is-light .navbar-end .navbar-link { - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-light .navbar-start > a.navbar-item:focus, .navbar.is-light .navbar-start > a.navbar-item:hover, .navbar.is-light .navbar-start > a.navbar-item.is-active, .navbar.is-light .navbar-start > .navbar-item.active, - .navbar.is-light .navbar-start .navbar-link:focus, - .navbar.is-light .navbar-start .navbar-link:hover, - .navbar.is-light .navbar-start .navbar-link.is-active, - .navbar.is-light .navbar-start .navbar-link.active, - .navbar.is-light .navbar-end > a.navbar-item:focus, - .navbar.is-light .navbar-end > a.navbar-item:hover, - .navbar.is-light .navbar-end > a.navbar-item.is-active, - .navbar.is-light .navbar-end > .navbar-item.active, - .navbar.is-light .navbar-end .navbar-link:focus, - .navbar.is-light .navbar-end .navbar-link:hover, - .navbar.is-light .navbar-end .navbar-link.is-active, - .navbar.is-light .navbar-end .navbar-link.active { - background-color: #e8e8e8; - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-light .navbar-start .navbar-link::after, - .navbar.is-light .navbar-end .navbar-link::after { - border-color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-light .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-light .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-light .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-light .has-dropdown.active .navbar-link { - background-color: #e8e8e8; - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-light .navbar-dropdown a.navbar-item.is-active, .navbar.is-light .navbar-dropdown .navbar-item.active { - background-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); - } -} - -.navbar.is-dark { - background-color: #200117; - color: #fff; -} - - .navbar.is-dark .navbar-brand > .navbar-item, - .navbar.is-dark .navbar-brand .navbar-link { - color: #fff; - } - - .navbar.is-dark .navbar-brand > a.navbar-item:focus, .navbar.is-dark .navbar-brand > a.navbar-item:hover, .navbar.is-dark .navbar-brand > a.navbar-item.is-active, .navbar.is-dark .navbar-brand > .navbar-item.active, - .navbar.is-dark .navbar-brand .navbar-link:focus, - .navbar.is-dark .navbar-brand .navbar-link:hover, - .navbar.is-dark .navbar-brand .navbar-link.is-active, - .navbar.is-dark .navbar-brand .navbar-link.active { - background-color: #070005; - color: #fff; - } - - .navbar.is-dark .navbar-brand .navbar-link::after { - border-color: #fff; - } - - .navbar.is-dark .navbar-burger { - color: #fff; - } - -@media screen and (min-width: 1024px) { - .navbar.is-dark .navbar-start > .navbar-item, - .navbar.is-dark .navbar-start .navbar-link, - .navbar.is-dark .navbar-end > .navbar-item, - .navbar.is-dark .navbar-end .navbar-link { - color: #fff; - } - - .navbar.is-dark .navbar-start > a.navbar-item:focus, .navbar.is-dark .navbar-start > a.navbar-item:hover, .navbar.is-dark .navbar-start > a.navbar-item.is-active, .navbar.is-dark .navbar-start > .navbar-item.active, - .navbar.is-dark .navbar-start .navbar-link:focus, - .navbar.is-dark .navbar-start .navbar-link:hover, - .navbar.is-dark .navbar-start .navbar-link.is-active, - .navbar.is-dark .navbar-start .navbar-link.active, - .navbar.is-dark .navbar-end > a.navbar-item:focus, - .navbar.is-dark .navbar-end > a.navbar-item:hover, - .navbar.is-dark .navbar-end > a.navbar-item.is-active, - .navbar.is-dark .navbar-end > .navbar-item.active, - .navbar.is-dark .navbar-end .navbar-link:focus, - .navbar.is-dark .navbar-end .navbar-link:hover, - .navbar.is-dark .navbar-end .navbar-link.is-active, - .navbar.is-dark .navbar-end .navbar-link.active { - background-color: #070005; - color: #fff; - } - - .navbar.is-dark .navbar-start .navbar-link::after, - .navbar.is-dark .navbar-end .navbar-link::after { - border-color: #fff; - } - - .navbar.is-dark .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-dark .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-dark .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-dark .has-dropdown.active .navbar-link { - background-color: #070005; - color: #fff; - } - - .navbar.is-dark .navbar-dropdown a.navbar-item.is-active, .navbar.is-dark .navbar-dropdown .navbar-item.active { - background-color: #200117; - color: #fff; - } -} - -.navbar.is-primary { - background-color: #A00975; - color: #fff; -} - - .navbar.is-primary .navbar-brand > .navbar-item, - .navbar.is-primary .navbar-brand .navbar-link { - color: #fff; - } - - .navbar.is-primary .navbar-brand > a.navbar-item:focus, .navbar.is-primary .navbar-brand > a.navbar-item:hover, .navbar.is-primary .navbar-brand > a.navbar-item.is-active, .navbar.is-primary .navbar-brand > .navbar-item.active, - .navbar.is-primary .navbar-brand .navbar-link:focus, - .navbar.is-primary .navbar-brand .navbar-link:hover, - .navbar.is-primary .navbar-brand .navbar-link.is-active, - .navbar.is-primary .navbar-brand .navbar-link.active { - background-color: #880863; - color: #fff; - } - - .navbar.is-primary .navbar-brand .navbar-link::after { - border-color: #fff; - } - - .navbar.is-primary .navbar-burger { - color: #fff; - } - -@media screen and (min-width: 1024px) { - .navbar.is-primary .navbar-start > .navbar-item, - .navbar.is-primary .navbar-start .navbar-link, - .navbar.is-primary .navbar-end > .navbar-item, - .navbar.is-primary .navbar-end .navbar-link { - color: #fff; - } - - .navbar.is-primary .navbar-start > a.navbar-item:focus, .navbar.is-primary .navbar-start > a.navbar-item:hover, .navbar.is-primary .navbar-start > a.navbar-item.is-active, .navbar.is-primary .navbar-start > .navbar-item.active, - .navbar.is-primary .navbar-start .navbar-link:focus, - .navbar.is-primary .navbar-start .navbar-link:hover, - .navbar.is-primary .navbar-start .navbar-link.is-active, - .navbar.is-primary .navbar-start .navbar-link.active, - .navbar.is-primary .navbar-end > a.navbar-item:focus, - .navbar.is-primary .navbar-end > a.navbar-item:hover, - .navbar.is-primary .navbar-end > a.navbar-item.is-active, - .navbar.is-primary .navbar-end > .navbar-item.active, - .navbar.is-primary .navbar-end .navbar-link:focus, - .navbar.is-primary .navbar-end .navbar-link:hover, - .navbar.is-primary .navbar-end .navbar-link.is-active, - .navbar.is-primary .navbar-end .navbar-link.active { - background-color: #880863; - color: #fff; - } - - .navbar.is-primary .navbar-start .navbar-link::after, - .navbar.is-primary .navbar-end .navbar-link::after { - border-color: #fff; - } - - .navbar.is-primary .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-primary .has-dropdown.active .navbar-link { - background-color: #880863; - color: #fff; - } - - .navbar.is-primary .navbar-dropdown a.navbar-item.is-active, .navbar.is-primary .navbar-dropdown .navbar-item.active { - background-color: #A00975; - color: #fff; - } -} - -.navbar.is-link { - background-color: #378BBA; - color: #fff; -} - - .navbar.is-link .navbar-brand > .navbar-item, - .navbar.is-link .navbar-brand .navbar-link { - color: #fff; - } - - .navbar.is-link .navbar-brand > a.navbar-item:focus, .navbar.is-link .navbar-brand > a.navbar-item:hover, .navbar.is-link .navbar-brand > a.navbar-item.is-active, .navbar.is-link .navbar-brand > .navbar-item.active, - .navbar.is-link .navbar-brand .navbar-link:focus, - .navbar.is-link .navbar-brand .navbar-link:hover, - .navbar.is-link .navbar-brand .navbar-link.is-active, - .navbar.is-link .navbar-brand .navbar-link.active { - background-color: #317ca6; - color: #fff; - } - - .navbar.is-link .navbar-brand .navbar-link::after { - border-color: #fff; - } - - .navbar.is-link .navbar-burger { - color: #fff; - } - -@media screen and (min-width: 1024px) { - .navbar.is-link .navbar-start > .navbar-item, - .navbar.is-link .navbar-start .navbar-link, - .navbar.is-link .navbar-end > .navbar-item, - .navbar.is-link .navbar-end .navbar-link { - color: #fff; - } - - .navbar.is-link .navbar-start > a.navbar-item:focus, .navbar.is-link .navbar-start > a.navbar-item:hover, .navbar.is-link .navbar-start > a.navbar-item.is-active, .navbar.is-link .navbar-start > .navbar-item.active, - .navbar.is-link .navbar-start .navbar-link:focus, - .navbar.is-link .navbar-start .navbar-link:hover, - .navbar.is-link .navbar-start .navbar-link.is-active, - .navbar.is-link .navbar-start .navbar-link.active, - .navbar.is-link .navbar-end > a.navbar-item:focus, - .navbar.is-link .navbar-end > a.navbar-item:hover, - .navbar.is-link .navbar-end > a.navbar-item.is-active, - .navbar.is-link .navbar-end > .navbar-item.active, - .navbar.is-link .navbar-end .navbar-link:focus, - .navbar.is-link .navbar-end .navbar-link:hover, - .navbar.is-link .navbar-end .navbar-link.is-active, - .navbar.is-link .navbar-end .navbar-link.active { - background-color: #317ca6; - color: #fff; - } - - .navbar.is-link .navbar-start .navbar-link::after, - .navbar.is-link .navbar-end .navbar-link::after { - border-color: #fff; - } - - .navbar.is-link .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-link .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-link .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-link .has-dropdown.active .navbar-link { - background-color: #317ca6; - color: #fff; - } - - .navbar.is-link .navbar-dropdown a.navbar-item.is-active, .navbar.is-link .navbar-dropdown .navbar-item.active { - background-color: #378BBA; - color: #fff; - } -} - -.navbar.is-info { - background-color: #3298dc; - color: #fff; -} - - .navbar.is-info .navbar-brand > .navbar-item, - .navbar.is-info .navbar-brand .navbar-link { - color: #fff; - } - - .navbar.is-info .navbar-brand > a.navbar-item:focus, .navbar.is-info .navbar-brand > a.navbar-item:hover, .navbar.is-info .navbar-brand > a.navbar-item.is-active, .navbar.is-info .navbar-brand > .navbar-item.active, - .navbar.is-info .navbar-brand .navbar-link:focus, - .navbar.is-info .navbar-brand .navbar-link:hover, - .navbar.is-info .navbar-brand .navbar-link.is-active, - .navbar.is-info .navbar-brand .navbar-link.active { - background-color: #238cd1; - color: #fff; - } - - .navbar.is-info .navbar-brand .navbar-link::after { - border-color: #fff; - } - - .navbar.is-info .navbar-burger { - color: #fff; - } - -@media screen and (min-width: 1024px) { - .navbar.is-info .navbar-start > .navbar-item, - .navbar.is-info .navbar-start .navbar-link, - .navbar.is-info .navbar-end > .navbar-item, - .navbar.is-info .navbar-end .navbar-link { - color: #fff; - } - - .navbar.is-info .navbar-start > a.navbar-item:focus, .navbar.is-info .navbar-start > a.navbar-item:hover, .navbar.is-info .navbar-start > a.navbar-item.is-active, .navbar.is-info .navbar-start > .navbar-item.active, - .navbar.is-info .navbar-start .navbar-link:focus, - .navbar.is-info .navbar-start .navbar-link:hover, - .navbar.is-info .navbar-start .navbar-link.is-active, - .navbar.is-info .navbar-start .navbar-link.active, - .navbar.is-info .navbar-end > a.navbar-item:focus, - .navbar.is-info .navbar-end > a.navbar-item:hover, - .navbar.is-info .navbar-end > a.navbar-item.is-active, - .navbar.is-info .navbar-end > .navbar-item.active, - .navbar.is-info .navbar-end .navbar-link:focus, - .navbar.is-info .navbar-end .navbar-link:hover, - .navbar.is-info .navbar-end .navbar-link.is-active, - .navbar.is-info .navbar-end .navbar-link.active { - background-color: #238cd1; - color: #fff; - } - - .navbar.is-info .navbar-start .navbar-link::after, - .navbar.is-info .navbar-end .navbar-link::after { - border-color: #fff; - } - - .navbar.is-info .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-info .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-info .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-info .has-dropdown.active .navbar-link { - background-color: #238cd1; - color: #fff; - } - - .navbar.is-info .navbar-dropdown a.navbar-item.is-active, .navbar.is-info .navbar-dropdown .navbar-item.active { - background-color: #3298dc; - color: #fff; - } -} - -.navbar.is-success { - background-color: #48c774; - color: #fff; -} - - .navbar.is-success .navbar-brand > .navbar-item, - .navbar.is-success .navbar-brand .navbar-link { - color: #fff; - } - - .navbar.is-success .navbar-brand > a.navbar-item:focus, .navbar.is-success .navbar-brand > a.navbar-item:hover, .navbar.is-success .navbar-brand > a.navbar-item.is-active, .navbar.is-success .navbar-brand > .navbar-item.active, - .navbar.is-success .navbar-brand .navbar-link:focus, - .navbar.is-success .navbar-brand .navbar-link:hover, - .navbar.is-success .navbar-brand .navbar-link.is-active, - .navbar.is-success .navbar-brand .navbar-link.active { - background-color: #3abb67; - color: #fff; - } - - .navbar.is-success .navbar-brand .navbar-link::after { - border-color: #fff; - } - - .navbar.is-success .navbar-burger { - color: #fff; - } - -@media screen and (min-width: 1024px) { - .navbar.is-success .navbar-start > .navbar-item, - .navbar.is-success .navbar-start .navbar-link, - .navbar.is-success .navbar-end > .navbar-item, - .navbar.is-success .navbar-end .navbar-link { - color: #fff; - } - - .navbar.is-success .navbar-start > a.navbar-item:focus, .navbar.is-success .navbar-start > a.navbar-item:hover, .navbar.is-success .navbar-start > a.navbar-item.is-active, .navbar.is-success .navbar-start > .navbar-item.active, - .navbar.is-success .navbar-start .navbar-link:focus, - .navbar.is-success .navbar-start .navbar-link:hover, - .navbar.is-success .navbar-start .navbar-link.is-active, - .navbar.is-success .navbar-start .navbar-link.active, - .navbar.is-success .navbar-end > a.navbar-item:focus, - .navbar.is-success .navbar-end > a.navbar-item:hover, - .navbar.is-success .navbar-end > a.navbar-item.is-active, - .navbar.is-success .navbar-end > .navbar-item.active, - .navbar.is-success .navbar-end .navbar-link:focus, - .navbar.is-success .navbar-end .navbar-link:hover, - .navbar.is-success .navbar-end .navbar-link.is-active, - .navbar.is-success .navbar-end .navbar-link.active { - background-color: #3abb67; - color: #fff; - } - - .navbar.is-success .navbar-start .navbar-link::after, - .navbar.is-success .navbar-end .navbar-link::after { - border-color: #fff; - } - - .navbar.is-success .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-success .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-success .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-success .has-dropdown.active .navbar-link { - background-color: #3abb67; - color: #fff; - } - - .navbar.is-success .navbar-dropdown a.navbar-item.is-active, .navbar.is-success .navbar-dropdown .navbar-item.active { - background-color: #48c774; - color: #fff; - } -} - -.navbar.is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); -} - - .navbar.is-warning .navbar-brand > .navbar-item, - .navbar.is-warning .navbar-brand .navbar-link { - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-warning .navbar-brand > a.navbar-item:focus, .navbar.is-warning .navbar-brand > a.navbar-item:hover, .navbar.is-warning .navbar-brand > a.navbar-item.is-active, .navbar.is-warning .navbar-brand > .navbar-item.active, - .navbar.is-warning .navbar-brand .navbar-link:focus, - .navbar.is-warning .navbar-brand .navbar-link:hover, - .navbar.is-warning .navbar-brand .navbar-link.is-active, - .navbar.is-warning .navbar-brand .navbar-link.active { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-warning .navbar-brand .navbar-link::after { - border-color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-warning .navbar-burger { - color: rgba(0, 0, 0, 0.7); - } - -@media screen and (min-width: 1024px) { - .navbar.is-warning .navbar-start > .navbar-item, - .navbar.is-warning .navbar-start .navbar-link, - .navbar.is-warning .navbar-end > .navbar-item, - .navbar.is-warning .navbar-end .navbar-link { - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-warning .navbar-start > a.navbar-item:focus, .navbar.is-warning .navbar-start > a.navbar-item:hover, .navbar.is-warning .navbar-start > a.navbar-item.is-active, .navbar.is-warning .navbar-start > .navbar-item.active, - .navbar.is-warning .navbar-start .navbar-link:focus, - .navbar.is-warning .navbar-start .navbar-link:hover, - .navbar.is-warning .navbar-start .navbar-link.is-active, - .navbar.is-warning .navbar-start .navbar-link.active, - .navbar.is-warning .navbar-end > a.navbar-item:focus, - .navbar.is-warning .navbar-end > a.navbar-item:hover, - .navbar.is-warning .navbar-end > a.navbar-item.is-active, - .navbar.is-warning .navbar-end > .navbar-item.active, - .navbar.is-warning .navbar-end .navbar-link:focus, - .navbar.is-warning .navbar-end .navbar-link:hover, - .navbar.is-warning .navbar-end .navbar-link.is-active, - .navbar.is-warning .navbar-end .navbar-link.active { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-warning .navbar-start .navbar-link::after, - .navbar.is-warning .navbar-end .navbar-link::after { - border-color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-warning .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-warning .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-warning .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-warning .has-dropdown.active .navbar-link { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); - } - - .navbar.is-warning .navbar-dropdown a.navbar-item.is-active, .navbar.is-warning .navbar-dropdown .navbar-item.active { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } -} - -.navbar.is-danger { - background-color: #f14668; - color: #fff; -} - - .navbar.is-danger .navbar-brand > .navbar-item, - .navbar.is-danger .navbar-brand .navbar-link { - color: #fff; - } - - .navbar.is-danger .navbar-brand > a.navbar-item:focus, .navbar.is-danger .navbar-brand > a.navbar-item:hover, .navbar.is-danger .navbar-brand > a.navbar-item.is-active, .navbar.is-danger .navbar-brand > .navbar-item.active, - .navbar.is-danger .navbar-brand .navbar-link:focus, - .navbar.is-danger .navbar-brand .navbar-link:hover, - .navbar.is-danger .navbar-brand .navbar-link.is-active, - .navbar.is-danger .navbar-brand .navbar-link.active { - background-color: #ef2e55; - color: #fff; - } - - .navbar.is-danger .navbar-brand .navbar-link::after { - border-color: #fff; - } - - .navbar.is-danger .navbar-burger { - color: #fff; - } - -@media screen and (min-width: 1024px) { - .navbar.is-danger .navbar-start > .navbar-item, - .navbar.is-danger .navbar-start .navbar-link, - .navbar.is-danger .navbar-end > .navbar-item, - .navbar.is-danger .navbar-end .navbar-link { - color: #fff; - } - - .navbar.is-danger .navbar-start > a.navbar-item:focus, .navbar.is-danger .navbar-start > a.navbar-item:hover, .navbar.is-danger .navbar-start > a.navbar-item.is-active, .navbar.is-danger .navbar-start > .navbar-item.active, - .navbar.is-danger .navbar-start .navbar-link:focus, - .navbar.is-danger .navbar-start .navbar-link:hover, - .navbar.is-danger .navbar-start .navbar-link.is-active, - .navbar.is-danger .navbar-start .navbar-link.active, - .navbar.is-danger .navbar-end > a.navbar-item:focus, - .navbar.is-danger .navbar-end > a.navbar-item:hover, - .navbar.is-danger .navbar-end > a.navbar-item.is-active, - .navbar.is-danger .navbar-end > .navbar-item.active, - .navbar.is-danger .navbar-end .navbar-link:focus, - .navbar.is-danger .navbar-end .navbar-link:hover, - .navbar.is-danger .navbar-end .navbar-link.is-active, - .navbar.is-danger .navbar-end .navbar-link.active { - background-color: #ef2e55; - color: #fff; - } - - .navbar.is-danger .navbar-start .navbar-link::after, - .navbar.is-danger .navbar-end .navbar-link::after { - border-color: #fff; - } - - .navbar.is-danger .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-danger .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-danger .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-danger .has-dropdown.active .navbar-link { - background-color: #ef2e55; - color: #fff; - } - - .navbar.is-danger .navbar-dropdown a.navbar-item.is-active, .navbar.is-danger .navbar-dropdown .navbar-item.active { - background-color: #f14668; - color: #fff; - } -} - -.navbar > .container { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - min-height: 3.25rem; - width: 100%; -} - -.navbar.has-shadow { - -webkit-box-shadow: 0 2px 0 0 whitesmoke; - box-shadow: 0 2px 0 0 whitesmoke; -} - -.navbar.is-fixed-bottom, .navbar.is-fixed-top { - left: 0; - position: fixed; - right: 0; - z-index: 30; -} - -.navbar.is-fixed-bottom { - bottom: 0; -} - - .navbar.is-fixed-bottom.has-shadow { - -webkit-box-shadow: 0 -2px 0 0 whitesmoke; - box-shadow: 0 -2px 0 0 whitesmoke; - } - -.navbar.is-fixed-top { - top: 0; -} - -html.has-navbar-fixed-top, -body.has-navbar-fixed-top { - padding-top: 3.25rem; -} - -html.has-navbar-fixed-bottom, -body.has-navbar-fixed-bottom { - padding-bottom: 3.25rem; -} - -.navbar-brand, -.navbar-tabs { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-negative: 0; - flex-shrink: 0; - min-height: 3.25rem; -} - - .navbar-brand a.navbar-item:focus, .navbar-brand a.navbar-item:hover { - background-color: transparent; - } - -.navbar-tabs { - -webkit-overflow-scrolling: touch; - max-width: 100vw; - overflow-x: auto; - overflow-y: hidden; -} - -.navbar-burger { - color: #4a4a4a; - cursor: pointer; - display: block; - height: 3.25rem; - position: relative; - width: 3.25rem; - margin-left: auto; -} - - .navbar-burger span { - background-color: currentColor; - display: block; - height: 1px; - left: calc(50% - 8px); - position: absolute; - -webkit-transform-origin: center; - -ms-transform-origin: center; - transform-origin: center; - -webkit-transition-duration: 86ms; - -o-transition-duration: 86ms; - transition-duration: 86ms; - -webkit-transition-property: background-color, opacity, -webkit-transform; - transition-property: background-color, opacity, -webkit-transform; - -o-transition-property: background-color, opacity, transform; - transition-property: background-color, opacity, transform; - transition-property: background-color, opacity, transform, -webkit-transform; - -webkit-transition-timing-function: ease-out; - -o-transition-timing-function: ease-out; - transition-timing-function: ease-out; - width: 16px; - } - - .navbar-burger span:nth-child(1) { - top: calc(50% - 6px); - } - - .navbar-burger span:nth-child(2) { - top: calc(50% - 1px); - } - - .navbar-burger span:nth-child(3) { - top: calc(50% + 4px); - } - - .navbar-burger:hover { - background-color: rgba(0, 0, 0, 0.05); - } - - .navbar-burger.is-active span:nth-child(1), .navbar-burger.active span:nth-child(1) { - -webkit-transform: translateY(5px) rotate(45deg); - -ms-transform: translateY(5px) rotate(45deg); - transform: translateY(5px) rotate(45deg); - } - - .navbar-burger.is-active span:nth-child(2), .navbar-burger.active span:nth-child(2) { - opacity: 0; - } - - .navbar-burger.is-active span:nth-child(3), .navbar-burger.active span:nth-child(3) { - -webkit-transform: translateY(-5px) rotate(-45deg); - -ms-transform: translateY(-5px) rotate(-45deg); - transform: translateY(-5px) rotate(-45deg); - } - -.navbar-menu { - display: none; -} - -.navbar-item, -.navbar-link { - color: #4a4a4a; - display: block; - line-height: 1.5; - padding: 0.5rem 0.75rem; - position: relative; -} - - .navbar-item .icon:only-child, - .navbar-link .icon:only-child { - margin-left: -0.25rem; - margin-right: -0.25rem; - } - -a.navbar-item, -.navbar-link { - cursor: pointer; -} - - a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover, a.navbar-item.is-active, .navbar-item.active, - .navbar-link:focus, - .navbar-link:focus-within, - .navbar-link:hover, - .navbar-link.is-active, - .navbar-link.active { - background-color: #fafafa; - color: #378BBA; - } - -.navbar-item { - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - - .navbar-item img { - max-height: 1.75rem; - } - - .navbar-item.has-dropdown { - padding: 0; - } - - .navbar-item.is-expanded { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - } - - .navbar-item.is-tab { - border-bottom: 1px solid transparent; - min-height: 3.25rem; - padding-bottom: calc(0.5rem - 1px); - } - - .navbar-item.is-tab:focus, .navbar-item.is-tab:hover { - background-color: transparent; - border-bottom-color: #378BBA; - } - - .navbar-item.is-tab.is-active, .is-tab.active { - background-color: transparent; - border-bottom-color: #378BBA; - border-bottom-style: solid; - border-bottom-width: 3px; - color: #378BBA; - padding-bottom: calc(0.5rem - 3px); - } - -.navbar-content { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; -} - -.navbar-link:not(.is-arrowless) { - padding-right: 2.5em; -} - - .navbar-link:not(.is-arrowless)::after { - border-color: #378BBA; - margin-top: -0.375em; - right: 1.125em; - } - -.navbar-dropdown { - font-size: 0.875rem; - padding-bottom: 0.5rem; - padding-top: 0.5rem; -} - - .navbar-dropdown .navbar-item { - padding-left: 1.5rem; - padding-right: 1.5rem; - } - -.navbar-divider { - background-color: whitesmoke; - border: none; - display: none; - height: 2px; - margin: 0.5rem 0; -} - -@media screen and (max-width: 1023px) { - .navbar > .container { - display: block; - } - - .navbar-brand .navbar-item, - .navbar-tabs .navbar-item { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .navbar-link::after { - display: none; - } - - .navbar-menu { - background-color: white; - -webkit-box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1); - box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1); - padding: 0.5rem 0; - } - - .navbar-menu.is-active, .navbar-menu.active { - display: block; - } - - .navbar.is-fixed-bottom-touch, .navbar.is-fixed-top-touch { - left: 0; - position: fixed; - right: 0; - z-index: 30; - } - - .navbar.is-fixed-bottom-touch { - bottom: 0; - } - - .navbar.is-fixed-bottom-touch.has-shadow { - -webkit-box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); - box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); - } - - .navbar.is-fixed-top-touch { - top: 0; - } - - .navbar.is-fixed-top .navbar-menu, .navbar.is-fixed-top-touch .navbar-menu { - -webkit-overflow-scrolling: touch; - max-height: calc(100vh - 3.25rem); - overflow: auto; - } - - html.has-navbar-fixed-top-touch, - body.has-navbar-fixed-top-touch { - padding-top: 3.25rem; - } - - html.has-navbar-fixed-bottom-touch, - body.has-navbar-fixed-bottom-touch { - padding-bottom: 3.25rem; - } -} - -@media screen and (min-width: 1024px) { - .navbar, - .navbar-menu, - .navbar-start, - .navbar-end { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .navbar { - min-height: 3.25rem; - } - - .navbar.is-spaced { - padding: 1rem 2rem; - } - - .navbar.is-spaced .navbar-start, - .navbar.is-spaced .navbar-end { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - } - - .navbar.is-spaced a.navbar-item, - .navbar.is-spaced .navbar-link { - border-radius: 4px; - } - - .navbar.is-transparent a.navbar-item:focus, .navbar.is-transparent a.navbar-item:hover, .navbar.is-transparent a.navbar-item.is-active, .navbar.is-transparent .navbar-item.active, - .navbar.is-transparent .navbar-link:focus, - .navbar.is-transparent .navbar-link:hover, - .navbar.is-transparent .navbar-link.is-active, - .navbar.is-transparent .navbar-link.active { - background-color: transparent !important; - } - - .navbar.is-transparent .navbar-item.has-dropdown.is-active .navbar-link, .navbar.is-transparent .has-dropdown.active .navbar-link, .navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:focus .navbar-link, .navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:focus-within .navbar-link, .navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:hover .navbar-link { - background-color: transparent !important; - } - - .navbar.is-transparent .navbar-dropdown a.navbar-item:focus, .navbar.is-transparent .navbar-dropdown a.navbar-item:hover { - background-color: whitesmoke; - color: #0a0a0a; - } - - .navbar.is-transparent .navbar-dropdown a.navbar-item.is-active, .navbar.is-transparent .navbar-dropdown .navbar-item.active { - background-color: whitesmoke; - color: #378BBA; - } - - .navbar-burger { - display: none; - } - - .navbar-item, - .navbar-link { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .navbar-item.has-dropdown { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - } - - .navbar-item.has-dropdown-up .navbar-link::after { - -webkit-transform: rotate(135deg) translate(0.25em, -0.25em); - -ms-transform: rotate(135deg) translate(0.25em, -0.25em); - transform: rotate(135deg) translate(0.25em, -0.25em); - } - - .navbar-item.has-dropdown-up .navbar-dropdown { - border-bottom: 2px solid #dbdbdb; - border-radius: 6px 6px 0 0; - border-top: none; - bottom: 100%; - -webkit-box-shadow: 0 -8px 8px rgba(10, 10, 10, 0.1); - box-shadow: 0 -8px 8px rgba(10, 10, 10, 0.1); - top: auto; - } - - .navbar-item.is-active .navbar-dropdown, .navbar-item.active .navbar-dropdown, .navbar-item.is-hoverable:focus .navbar-dropdown, .navbar-item.is-hoverable:focus-within .navbar-dropdown, .navbar-item.is-hoverable:hover .navbar-dropdown { - display: block; - } - - .navbar.is-spaced .navbar-item.is-active .navbar-dropdown, .navbar.is-spaced .navbar-item.active .navbar-dropdown, .navbar-item.is-active .navbar-dropdown.is-boxed, .navbar-item.active .navbar-dropdown.is-boxed, .navbar.is-spaced .navbar-item.is-hoverable:focus .navbar-dropdown, .navbar-item.is-hoverable:focus .navbar-dropdown.is-boxed, .navbar.is-spaced .navbar-item.is-hoverable:focus-within .navbar-dropdown, .navbar-item.is-hoverable:focus-within .navbar-dropdown.is-boxed, .navbar.is-spaced .navbar-item.is-hoverable:hover .navbar-dropdown, .navbar-item.is-hoverable:hover .navbar-dropdown.is-boxed { - opacity: 1; - pointer-events: auto; - -webkit-transform: translateY(0); - -ms-transform: translateY(0); - transform: translateY(0); - } - - .navbar-menu { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - } - - .navbar-start { - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - margin-right: auto; - } - - .navbar-end { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - margin-left: auto; - } - - .navbar-dropdown { - background-color: white; - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; - border-top: 2px solid #dbdbdb; - -webkit-box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1); - box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1); - display: none; - font-size: 0.875rem; - left: 0; - min-width: 100%; - position: absolute; - top: 100%; - z-index: 20; - } - - .navbar-dropdown .navbar-item { - padding: 0.375rem 1rem; - white-space: nowrap; - } - - .navbar-dropdown a.navbar-item { - padding-right: 3rem; - } - - .navbar-dropdown a.navbar-item:focus, .navbar-dropdown a.navbar-item:hover { - background-color: whitesmoke; - color: #0a0a0a; - } - - .navbar-dropdown a.navbar-item.is-active, .navbar-dropdown .navbar-item.active { - background-color: whitesmoke; - color: #378BBA; - } - - .navbar.is-spaced .navbar-dropdown, .navbar-dropdown.is-boxed { - border-radius: 6px; - border-top: none; - -webkit-box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); - box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); - display: block; - opacity: 0; - pointer-events: none; - top: calc(100% + (-4px)); - -webkit-transform: translateY(-5px); - -ms-transform: translateY(-5px); - transform: translateY(-5px); - -webkit-transition-duration: 86ms; - -o-transition-duration: 86ms; - transition-duration: 86ms; - -webkit-transition-property: opacity, -webkit-transform; - transition-property: opacity, -webkit-transform; - -o-transition-property: opacity, transform; - transition-property: opacity, transform; - transition-property: opacity, transform, -webkit-transform; - } - - .navbar-dropdown.is-right { - left: auto; - right: 0; - } - - .navbar-divider { - display: block; - } - - .navbar > .container .navbar-brand, - .container > .navbar .navbar-brand { - margin-left: -0.75rem; - } - - .navbar > .container .navbar-menu, - .container > .navbar .navbar-menu { - margin-right: -0.75rem; - } - - .navbar.is-fixed-bottom-desktop, .navbar.is-fixed-top-desktop { - left: 0; - position: fixed; - right: 0; - z-index: 30; - } - - .navbar.is-fixed-bottom-desktop { - bottom: 0; - } - - .navbar.is-fixed-bottom-desktop.has-shadow { - -webkit-box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); - box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); - } - - .navbar.is-fixed-top-desktop { - top: 0; - } - - html.has-navbar-fixed-top-desktop, - body.has-navbar-fixed-top-desktop { - padding-top: 3.25rem; - } - - html.has-navbar-fixed-bottom-desktop, - body.has-navbar-fixed-bottom-desktop { - padding-bottom: 3.25rem; - } - - html.has-spaced-navbar-fixed-top, - body.has-spaced-navbar-fixed-top { - padding-top: 5.25rem; - } - - html.has-spaced-navbar-fixed-bottom, - body.has-spaced-navbar-fixed-bottom { - padding-bottom: 5.25rem; - } - - a.navbar-item.is-active, .navbar-item.active, - .navbar-link.is-active, - .navbar-link.active { - color: #0a0a0a; - } - - a.navbar-item.is-active:not(:focus):not(:hover), .navbar-item.active:not(:focus):not(:hover), - .navbar-link.is-active:not(:focus):not(:hover), - .navbar-link.active:not(:focus):not(:hover) { - background-color: transparent; - } - - .navbar-item.has-dropdown:focus .navbar-link, .navbar-item.has-dropdown:hover .navbar-link, .navbar-item.has-dropdown.is-active .navbar-link, .has-dropdown.active .navbar-link { - background-color: #fafafa; - } -} - -.hero.is-fullheight-with-navbar { - min-height: calc(100vh - 3.25rem); -} - -.pagination { - font-size: 1rem; - margin: -0.25rem; -} - - .pagination.is-small { - font-size: 0.75rem; - } - - .pagination.is-medium { - font-size: 1.25rem; - } - - .pagination.is-large { - font-size: 1.5rem; - } - - .pagination.is-rounded .pagination-previous, - .pagination.is-rounded .pagination-next { - padding-left: 1em; - padding-right: 1em; - border-radius: 290486px; - } - - .pagination.is-rounded .pagination-link { - border-radius: 290486px; - } - -.pagination, -.pagination-list { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - text-align: center; -} - -.pagination-previous, -.pagination-next, -.pagination-link, -.pagination-ellipsis { - font-size: 1em; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - margin: 0.25rem; - padding-left: 0.5em; - padding-right: 0.5em; - text-align: center; -} - -.pagination-previous, -.pagination-next, -.pagination-link { - border-color: #dbdbdb; - color: #363636; - min-width: 2.5em; -} - - .pagination-previous:hover, - .pagination-next:hover, - .pagination-link:hover { - border-color: #b5b5b5; - color: #A00975; - } - - .pagination-previous:focus, - .pagination-next:focus, - .pagination-link:focus { - border-color: #3273dc; - } - - .pagination-previous:active, - .pagination-next:active, - .pagination-link:active { - -webkit-box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2); - box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2); - } - - .pagination-previous[disabled], - .pagination-next[disabled], - .pagination-link[disabled] { - background-color: #dbdbdb; - border-color: #dbdbdb; - -webkit-box-shadow: none; - box-shadow: none; - color: #7a7a7a; - opacity: 0.5; - } - -.pagination-previous, -.pagination-next { - padding-left: 0.75em; - padding-right: 0.75em; - white-space: nowrap; -} - -.pagination-link.is-current { - background-color: #378BBA; - border-color: #378BBA; - color: #fff; -} - -.pagination-ellipsis { - color: #b5b5b5; - pointer-events: none; -} - -.pagination-list { - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - - .pagination-list li { - list-style: none; - } - -@media screen and (max-width: 768px) { - .pagination { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - } - - .pagination-previous, - .pagination-next { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - } - - .pagination-list li { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - } -} - -@media screen and (min-width: 769px), print { - .pagination-list { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - -webkit-box-ordinal-group: 2; - -ms-flex-order: 1; - order: 1; - } - - .pagination-previous { - -webkit-box-ordinal-group: 3; - -ms-flex-order: 2; - order: 2; - } - - .pagination-next { - -webkit-box-ordinal-group: 4; - -ms-flex-order: 3; - order: 3; - } - - .pagination { - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - } - - .pagination.is-centered .pagination-previous { - -webkit-box-ordinal-group: 2; - -ms-flex-order: 1; - order: 1; - } - - .pagination.is-centered .pagination-list { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-ordinal-group: 3; - -ms-flex-order: 2; - order: 2; - } - - .pagination.is-centered .pagination-next { - -webkit-box-ordinal-group: 4; - -ms-flex-order: 3; - order: 3; - } - - .pagination.is-right .pagination-previous { - -webkit-box-ordinal-group: 2; - -ms-flex-order: 1; - order: 1; - } - - .pagination.is-right .pagination-next { - -webkit-box-ordinal-group: 3; - -ms-flex-order: 2; - order: 2; - } - - .pagination.is-right .pagination-list { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - -webkit-box-ordinal-group: 4; - -ms-flex-order: 3; - order: 3; - } -} - -.panel { - border-radius: 6px; - -webkit-box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); - font-size: 1rem; -} - - .panel:not(:last-child) { - margin-bottom: 1.5rem; - } - - .panel.is-white .panel-heading { - background-color: white; - color: #0a0a0a; - } - - .panel.is-white .panel-tabs a.is-active, .panel.is-white .panel-tabs a.active { - border-bottom-color: white; - } - - .panel.is-white .panel-block.is-active .panel-icon, .panel.is-white .panel-block.active .panel-icon { - color: white; - } - - .panel.is-black .panel-heading { - background-color: #0a0a0a; - color: white; - } - - .panel.is-black .panel-tabs a.is-active, .panel.is-black .panel-tabs a.active { - border-bottom-color: #0a0a0a; - } - - .panel.is-black .panel-block.is-active .panel-icon, .panel.is-black .panel-block.active .panel-icon { - color: #0a0a0a; - } - - .panel.is-light .panel-heading { - background-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); - } - - .panel.is-light .panel-tabs a.is-active, .panel.is-light .panel-tabs a.active { - border-bottom-color: whitesmoke; - } - - .panel.is-light .panel-block.is-active .panel-icon, .panel.is-light .panel-block.active .panel-icon { - color: whitesmoke; - } - - .panel.is-dark .panel-heading { - background-color: #200117; - color: #fff; - } - - .panel.is-dark .panel-tabs a.is-active, .panel.is-dark .panel-tabs a.active { - border-bottom-color: #200117; - } - - .panel.is-dark .panel-block.is-active .panel-icon, .panel.is-dark .panel-block.active .panel-icon { - color: #200117; - } - - .panel.is-primary .panel-heading { - background-color: #A00975; - color: #fff; - } - - .panel.is-primary .panel-tabs a.is-active, .panel.is-primary .panel-tabs a.active { - border-bottom-color: #A00975; - } - - .panel.is-primary .panel-block.is-active .panel-icon, .panel.is-primary .panel-block.active .panel-icon { - color: #A00975; - } - - .panel.is-link .panel-heading { - background-color: #378BBA; - color: #fff; - } - - .panel.is-link .panel-tabs a.is-active, .panel.is-link .panel-tabs a.active { - border-bottom-color: #378BBA; - } - - .panel.is-link .panel-block.is-active .panel-icon, .panel.is-link .panel-block.active .panel-icon { - color: #378BBA; - } - - .panel.is-info .panel-heading { - background-color: #3298dc; - color: #fff; - } - - .panel.is-info .panel-tabs a.is-active, .panel.is-info .panel-tabs a.active { - border-bottom-color: #3298dc; - } - - .panel.is-info .panel-block.is-active .panel-icon, .panel.is-info .panel-block.active .panel-icon { - color: #3298dc; - } - - .panel.is-success .panel-heading { - background-color: #48c774; - color: #fff; - } - - .panel.is-success .panel-tabs a.is-active, .panel.is-success .panel-tabs a.active { - border-bottom-color: #48c774; - } - - .panel.is-success .panel-block.is-active .panel-icon, .panel.is-success .panel-block.active .panel-icon { - color: #48c774; - } - - .panel.is-warning .panel-heading { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } - - .panel.is-warning .panel-tabs a.is-active, .panel.is-warning .panel-tabs a.active { - border-bottom-color: #ffdd57; - } - - .panel.is-warning .panel-block.is-active .panel-icon, .panel.is-warning .panel-block.active .panel-icon { - color: #ffdd57; - } - - .panel.is-danger .panel-heading { - background-color: #f14668; - color: #fff; - } - - .panel.is-danger .panel-tabs a.is-active, .panel.is-danger .panel-tabs a.active { - border-bottom-color: #f14668; - } - - .panel.is-danger .panel-block.is-active .panel-icon, .panel.is-danger .panel-block.active .panel-icon { - color: #f14668; - } - -.panel-tabs:not(:last-child), -.panel-block:not(:last-child) { - border-bottom: 1px solid #ededed; -} - -.panel-heading { - background-color: #ededed; - border-radius: 6px 6px 0 0; - color: #363636; - font-size: 1.25em; - font-weight: 700; - line-height: 1.25; - padding: 0.75em 1em; -} - -.panel-tabs { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - font-size: 0.875em; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; -} - - .panel-tabs a { - border-bottom: 1px solid #dbdbdb; - margin-bottom: -1px; - padding: 0.5em; - } - - .panel-tabs a.is-active, .panel-tabs a.active { - border-bottom-color: #4a4a4a; - color: #363636; - } - -.panel-list a { - color: #4a4a4a; -} - - .panel-list a:hover { - color: #378BBA; - } - -.panel-block { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - color: #363636; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - padding: 0.5em 0.75em; -} - - .panel-block input[type="checkbox"] { - margin-right: 0.75em; - } - - .panel-block > .control { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - width: 100%; - } - - .panel-block.is-wrapped { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - } - - .panel-block.is-active, .panel-block.active { - border-left-color: #378BBA; - color: #363636; - } - - .panel-block.is-active .panel-icon, .panel-block.active .panel-icon { - color: #378BBA; - } - - .panel-block:last-child { - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; - } - -a.panel-block, -label.panel-block { - cursor: pointer; -} - - a.panel-block:hover, - label.panel-block:hover { - background-color: whitesmoke; - } - -.panel-icon { - display: inline-block; - font-size: 14px; - height: 1em; - line-height: 1em; - text-align: center; - vertical-align: top; - width: 1em; - color: #7a7a7a; - margin-right: 0.75em; -} - - .panel-icon .fa { - font-size: inherit; - line-height: inherit; - } - -.tabs { - -webkit-overflow-scrolling: touch; - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - font-size: 1rem; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - overflow: hidden; - overflow-x: auto; - white-space: nowrap; -} - - .tabs a { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - border-bottom-color: #dbdbdb; - border-bottom-style: solid; - border-bottom-width: 1px; - color: #4a4a4a; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - margin-bottom: -1px; - padding: 0.5em 1em; - vertical-align: top; - } - - .tabs a:hover { - border-bottom-color: #363636; - color: #363636; - } - - .tabs li { - display: block; - } - - .tabs li.is-active a, .tabs li.active a { - border-bottom-color: #378BBA; - color: #378BBA; - } - - .tabs ul { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - border-bottom-color: #dbdbdb; - border-bottom-style: solid; - border-bottom-width: 1px; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - } - - .tabs ul.is-left { - padding-right: 0.75em; - } - - .tabs ul.is-center { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - padding-left: 0.75em; - padding-right: 0.75em; - } - - .tabs ul.is-right { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - padding-left: 0.75em; - } - - .tabs .icon:first-child { - margin-right: 0.5em; - } - - .tabs .icon:last-child { - margin-left: 0.5em; - } - - .tabs.is-centered ul { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .tabs.is-right ul { - -webkit-box-pack: end; - -ms-flex-pack: end; - justify-content: flex-end; - } - - .tabs.is-boxed a { - border: 1px solid transparent; - border-radius: 4px 4px 0 0; - } - - .tabs.is-boxed a:hover { - background-color: whitesmoke; - border-bottom-color: #dbdbdb; - } - - .tabs.is-boxed li.is-active a, .tabs.is-boxed li.active a { - background-color: white; - border-color: #dbdbdb; - border-bottom-color: transparent !important; - } - - .tabs.is-fullwidth li { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - } - - .tabs.is-toggle a { - border-color: #dbdbdb; - border-style: solid; - border-width: 1px; - margin-bottom: 0; - position: relative; - } - - .tabs.is-toggle a:hover { - background-color: whitesmoke; - border-color: #b5b5b5; - z-index: 2; - } - - .tabs.is-toggle li + li { - margin-left: -1px; - } - - .tabs.is-toggle li:first-child a { - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - } - - .tabs.is-toggle li:last-child a { - border-top-right-radius: 4px; - border-bottom-right-radius: 4px; - } - - .tabs.is-toggle li.is-active a, .tabs.is-toggle li.active a { - background-color: #378BBA; - border-color: #378BBA; - color: #fff; - z-index: 1; - } - - .tabs.is-toggle ul { - border-bottom: none; - } - - .tabs.is-toggle.is-toggle-rounded li:first-child a { - border-bottom-left-radius: 290486px; - border-top-left-radius: 290486px; - padding-left: 1.25em; - } - - .tabs.is-toggle.is-toggle-rounded li:last-child a { - border-bottom-right-radius: 290486px; - border-top-right-radius: 290486px; - padding-right: 1.25em; - } - - .tabs.is-small { - font-size: 0.75rem; - } - - .tabs.is-medium { - font-size: 1.25rem; - } - - .tabs.is-large { - font-size: 1.5rem; - } - -/* Bulma Grid */ -.column { - display: block; - -ms-flex-preferred-size: 0; - flex-basis: 0; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - padding: 0.75rem; -} - -.columns.is-mobile > .column.is-narrow { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: unset; -} - -.columns.is-mobile > .column.is-full { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; -} - -.columns.is-mobile > .column.is-three-quarters { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; -} - -.columns.is-mobile > .column.is-two-thirds { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.6666%; -} - -.columns.is-mobile > .column.is-half { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; -} - -.columns.is-mobile > .column.is-one-third { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.3333%; -} - -.columns.is-mobile > .column.is-one-quarter { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; -} - -.columns.is-mobile > .column.is-one-fifth { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 20%; -} - -.columns.is-mobile > .column.is-two-fifths { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 40%; -} - -.columns.is-mobile > .column.is-three-fifths { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 60%; -} - -.columns.is-mobile > .column.is-four-fifths { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 80%; -} - -.columns.is-mobile > .column.is-offset-three-quarters { - margin-left: 75%; -} - -.columns.is-mobile > .column.is-offset-two-thirds { - margin-left: 66.6666%; -} - -.columns.is-mobile > .column.is-offset-half { - margin-left: 50%; -} - -.columns.is-mobile > .column.is-offset-one-third { - margin-left: 33.3333%; -} - -.columns.is-mobile > .column.is-offset-one-quarter { - margin-left: 25%; -} - -.columns.is-mobile > .column.is-offset-one-fifth { - margin-left: 20%; -} - -.columns.is-mobile > .column.is-offset-two-fifths { - margin-left: 40%; -} - -.columns.is-mobile > .column.is-offset-three-fifths { - margin-left: 60%; -} - -.columns.is-mobile > .column.is-offset-four-fifths { - margin-left: 80%; -} - -.columns.is-mobile > .column.is-0 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 0%; -} - -.columns.is-mobile > .column.is-offset-0 { - margin-left: 0%; -} - -.columns.is-mobile > .column.is-1 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; -} - -.columns.is-mobile > .column.is-offset-1 { - margin-left: 8.33333%; -} - -.columns.is-mobile > .column.is-2 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; -} - -.columns.is-mobile > .column.is-offset-2 { - margin-left: 16.66667%; -} - -.columns.is-mobile > .column.is-3 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; -} - -.columns.is-mobile > .column.is-offset-3 { - margin-left: 25%; -} - -.columns.is-mobile > .column.is-4 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; -} - -.columns.is-mobile > .column.is-offset-4 { - margin-left: 33.33333%; -} - -.columns.is-mobile > .column.is-5 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; -} - -.columns.is-mobile > .column.is-offset-5 { - margin-left: 41.66667%; -} - -.columns.is-mobile > .column.is-6 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; -} - -.columns.is-mobile > .column.is-offset-6 { - margin-left: 50%; -} - -.columns.is-mobile > .column.is-7 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; -} - -.columns.is-mobile > .column.is-offset-7 { - margin-left: 58.33333%; -} - -.columns.is-mobile > .column.is-8 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; -} - -.columns.is-mobile > .column.is-offset-8 { - margin-left: 66.66667%; -} - -.columns.is-mobile > .column.is-9 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; -} - -.columns.is-mobile > .column.is-offset-9 { - margin-left: 75%; -} - -.columns.is-mobile > .column.is-10 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; -} - -.columns.is-mobile > .column.is-offset-10 { - margin-left: 83.33333%; -} - -.columns.is-mobile > .column.is-11 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; -} - -.columns.is-mobile > .column.is-offset-11 { - margin-left: 91.66667%; -} - -.columns.is-mobile > .column.is-12 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; -} - -.columns.is-mobile > .column.is-offset-12 { - margin-left: 100%; -} - -@media screen and (max-width: 768px) { - .column.is-narrow-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: unset; - } - - .column.is-full-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-three-quarters-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-two-thirds-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.6666%; - } - - .column.is-half-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-one-third-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.3333%; - } - - .column.is-one-quarter-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-one-fifth-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 20%; - } - - .column.is-two-fifths-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 40%; - } - - .column.is-three-fifths-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 60%; - } - - .column.is-four-fifths-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 80%; - } - - .column.is-offset-three-quarters-mobile { - margin-left: 75%; - } - - .column.is-offset-two-thirds-mobile { - margin-left: 66.6666%; - } - - .column.is-offset-half-mobile { - margin-left: 50%; - } - - .column.is-offset-one-third-mobile { - margin-left: 33.3333%; - } - - .column.is-offset-one-quarter-mobile { - margin-left: 25%; - } - - .column.is-offset-one-fifth-mobile { - margin-left: 20%; - } - - .column.is-offset-two-fifths-mobile { - margin-left: 40%; - } - - .column.is-offset-three-fifths-mobile { - margin-left: 60%; - } - - .column.is-offset-four-fifths-mobile { - margin-left: 80%; - } - - .column.is-0-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 0%; - } - - .column.is-offset-0-mobile { - margin-left: 0%; - } - - .column.is-1-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; - } - - .column.is-offset-1-mobile { - margin-left: 8.33333%; - } - - .column.is-2-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; - } - - .column.is-offset-2-mobile { - margin-left: 16.66667%; - } - - .column.is-3-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-offset-3-mobile { - margin-left: 25%; - } - - .column.is-4-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; - } - - .column.is-offset-4-mobile { - margin-left: 33.33333%; - } - - .column.is-5-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; - } - - .column.is-offset-5-mobile { - margin-left: 41.66667%; - } - - .column.is-6-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-offset-6-mobile { - margin-left: 50%; - } - - .column.is-7-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; - } - - .column.is-offset-7-mobile { - margin-left: 58.33333%; - } - - .column.is-8-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; - } - - .column.is-offset-8-mobile { - margin-left: 66.66667%; - } - - .column.is-9-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-offset-9-mobile { - margin-left: 75%; - } - - .column.is-10-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; - } - - .column.is-offset-10-mobile { - margin-left: 83.33333%; - } - - .column.is-11-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; - } - - .column.is-offset-11-mobile { - margin-left: 91.66667%; - } - - .column.is-12-mobile { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-offset-12-mobile { - margin-left: 100%; - } -} - -@media screen and (min-width: 769px), print { - .column.is-narrow, .column.is-narrow-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: unset; - } - - .column.is-full, .column.is-full-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-three-quarters, .column.is-three-quarters-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-two-thirds, .column.is-two-thirds-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.6666%; - } - - .column.is-half, .column.is-half-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-one-third, .column.is-one-third-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.3333%; - } - - .column.is-one-quarter, .column.is-one-quarter-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-one-fifth, .column.is-one-fifth-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 20%; - } - - .column.is-two-fifths, .column.is-two-fifths-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 40%; - } - - .column.is-three-fifths, .column.is-three-fifths-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 60%; - } - - .column.is-four-fifths, .column.is-four-fifths-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 80%; - } - - .column.is-offset-three-quarters, .column.is-offset-three-quarters-tablet { - margin-left: 75%; - } - - .column.is-offset-two-thirds, .column.is-offset-two-thirds-tablet { - margin-left: 66.6666%; - } - - .column.is-offset-half, .column.is-offset-half-tablet { - margin-left: 50%; - } - - .column.is-offset-one-third, .column.is-offset-one-third-tablet { - margin-left: 33.3333%; - } - - .column.is-offset-one-quarter, .column.is-offset-one-quarter-tablet { - margin-left: 25%; - } - - .column.is-offset-one-fifth, .column.is-offset-one-fifth-tablet { - margin-left: 20%; - } - - .column.is-offset-two-fifths, .column.is-offset-two-fifths-tablet { - margin-left: 40%; - } - - .column.is-offset-three-fifths, .column.is-offset-three-fifths-tablet { - margin-left: 60%; - } - - .column.is-offset-four-fifths, .column.is-offset-four-fifths-tablet { - margin-left: 80%; - } - - .column.is-0, .column.is-0-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 0%; - } - - .column.is-offset-0, .column.is-offset-0-tablet { - margin-left: 0%; - } - - .column.is-1, .column.is-1-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; - } - - .column.is-offset-1, .column.is-offset-1-tablet { - margin-left: 8.33333%; - } - - .column.is-2, .column.is-2-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; - } - - .column.is-offset-2, .column.is-offset-2-tablet { - margin-left: 16.66667%; - } - - .column.is-3, .column.is-3-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-offset-3, .column.is-offset-3-tablet { - margin-left: 25%; - } - - .column.is-4, .column.is-4-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; - } - - .column.is-offset-4, .column.is-offset-4-tablet { - margin-left: 33.33333%; - } - - .column.is-5, .column.is-5-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; - } - - .column.is-offset-5, .column.is-offset-5-tablet { - margin-left: 41.66667%; - } - - .column.is-6, .column.is-6-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-offset-6, .column.is-offset-6-tablet { - margin-left: 50%; - } - - .column.is-7, .column.is-7-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; - } - - .column.is-offset-7, .column.is-offset-7-tablet { - margin-left: 58.33333%; - } - - .column.is-8, .column.is-8-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; - } - - .column.is-offset-8, .column.is-offset-8-tablet { - margin-left: 66.66667%; - } - - .column.is-9, .column.is-9-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-offset-9, .column.is-offset-9-tablet { - margin-left: 75%; - } - - .column.is-10, .column.is-10-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; - } - - .column.is-offset-10, .column.is-offset-10-tablet { - margin-left: 83.33333%; - } - - .column.is-11, .column.is-11-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; - } - - .column.is-offset-11, .column.is-offset-11-tablet { - margin-left: 91.66667%; - } - - .column.is-12, .column.is-12-tablet { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-offset-12, .column.is-offset-12-tablet { - margin-left: 100%; - } -} - -@media screen and (max-width: 1023px) { - .column.is-narrow-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: unset; - } - - .column.is-full-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-three-quarters-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-two-thirds-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.6666%; - } - - .column.is-half-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-one-third-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.3333%; - } - - .column.is-one-quarter-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-one-fifth-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 20%; - } - - .column.is-two-fifths-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 40%; - } - - .column.is-three-fifths-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 60%; - } - - .column.is-four-fifths-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 80%; - } - - .column.is-offset-three-quarters-touch { - margin-left: 75%; - } - - .column.is-offset-two-thirds-touch { - margin-left: 66.6666%; - } - - .column.is-offset-half-touch { - margin-left: 50%; - } - - .column.is-offset-one-third-touch { - margin-left: 33.3333%; - } - - .column.is-offset-one-quarter-touch { - margin-left: 25%; - } - - .column.is-offset-one-fifth-touch { - margin-left: 20%; - } - - .column.is-offset-two-fifths-touch { - margin-left: 40%; - } - - .column.is-offset-three-fifths-touch { - margin-left: 60%; - } - - .column.is-offset-four-fifths-touch { - margin-left: 80%; - } - - .column.is-0-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 0%; - } - - .column.is-offset-0-touch { - margin-left: 0%; - } - - .column.is-1-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; - } - - .column.is-offset-1-touch { - margin-left: 8.33333%; - } - - .column.is-2-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; - } - - .column.is-offset-2-touch { - margin-left: 16.66667%; - } - - .column.is-3-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-offset-3-touch { - margin-left: 25%; - } - - .column.is-4-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; - } - - .column.is-offset-4-touch { - margin-left: 33.33333%; - } - - .column.is-5-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; - } - - .column.is-offset-5-touch { - margin-left: 41.66667%; - } - - .column.is-6-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-offset-6-touch { - margin-left: 50%; - } - - .column.is-7-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; - } - - .column.is-offset-7-touch { - margin-left: 58.33333%; - } - - .column.is-8-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; - } - - .column.is-offset-8-touch { - margin-left: 66.66667%; - } - - .column.is-9-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-offset-9-touch { - margin-left: 75%; - } - - .column.is-10-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; - } - - .column.is-offset-10-touch { - margin-left: 83.33333%; - } - - .column.is-11-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; - } - - .column.is-offset-11-touch { - margin-left: 91.66667%; - } - - .column.is-12-touch { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-offset-12-touch { - margin-left: 100%; - } -} - -@media screen and (min-width: 1024px) { - .column.is-narrow-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: unset; - } - - .column.is-full-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-three-quarters-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-two-thirds-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.6666%; - } - - .column.is-half-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-one-third-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.3333%; - } - - .column.is-one-quarter-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-one-fifth-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 20%; - } - - .column.is-two-fifths-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 40%; - } - - .column.is-three-fifths-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 60%; - } - - .column.is-four-fifths-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 80%; - } - - .column.is-offset-three-quarters-desktop { - margin-left: 75%; - } - - .column.is-offset-two-thirds-desktop { - margin-left: 66.6666%; - } - - .column.is-offset-half-desktop { - margin-left: 50%; - } - - .column.is-offset-one-third-desktop { - margin-left: 33.3333%; - } - - .column.is-offset-one-quarter-desktop { - margin-left: 25%; - } - - .column.is-offset-one-fifth-desktop { - margin-left: 20%; - } - - .column.is-offset-two-fifths-desktop { - margin-left: 40%; - } - - .column.is-offset-three-fifths-desktop { - margin-left: 60%; - } - - .column.is-offset-four-fifths-desktop { - margin-left: 80%; - } - - .column.is-0-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 0%; - } - - .column.is-offset-0-desktop { - margin-left: 0%; - } - - .column.is-1-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; - } - - .column.is-offset-1-desktop { - margin-left: 8.33333%; - } - - .column.is-2-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; - } - - .column.is-offset-2-desktop { - margin-left: 16.66667%; - } - - .column.is-3-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-offset-3-desktop { - margin-left: 25%; - } - - .column.is-4-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; - } - - .column.is-offset-4-desktop { - margin-left: 33.33333%; - } - - .column.is-5-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; - } - - .column.is-offset-5-desktop { - margin-left: 41.66667%; - } - - .column.is-6-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-offset-6-desktop { - margin-left: 50%; - } - - .column.is-7-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; - } - - .column.is-offset-7-desktop { - margin-left: 58.33333%; - } - - .column.is-8-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; - } - - .column.is-offset-8-desktop { - margin-left: 66.66667%; - } - - .column.is-9-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-offset-9-desktop { - margin-left: 75%; - } - - .column.is-10-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; - } - - .column.is-offset-10-desktop { - margin-left: 83.33333%; - } - - .column.is-11-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; - } - - .column.is-offset-11-desktop { - margin-left: 91.66667%; - } - - .column.is-12-desktop { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-offset-12-desktop { - margin-left: 100%; - } -} - -@media screen and (min-width: 1216px) { - .column.is-narrow-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: unset; - } - - .column.is-full-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-three-quarters-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-two-thirds-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.6666%; - } - - .column.is-half-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-one-third-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.3333%; - } - - .column.is-one-quarter-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-one-fifth-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 20%; - } - - .column.is-two-fifths-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 40%; - } - - .column.is-three-fifths-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 60%; - } - - .column.is-four-fifths-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 80%; - } - - .column.is-offset-three-quarters-widescreen { - margin-left: 75%; - } - - .column.is-offset-two-thirds-widescreen { - margin-left: 66.6666%; - } - - .column.is-offset-half-widescreen { - margin-left: 50%; - } - - .column.is-offset-one-third-widescreen { - margin-left: 33.3333%; - } - - .column.is-offset-one-quarter-widescreen { - margin-left: 25%; - } - - .column.is-offset-one-fifth-widescreen { - margin-left: 20%; - } - - .column.is-offset-two-fifths-widescreen { - margin-left: 40%; - } - - .column.is-offset-three-fifths-widescreen { - margin-left: 60%; - } - - .column.is-offset-four-fifths-widescreen { - margin-left: 80%; - } - - .column.is-0-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 0%; - } - - .column.is-offset-0-widescreen { - margin-left: 0%; - } - - .column.is-1-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; - } - - .column.is-offset-1-widescreen { - margin-left: 8.33333%; - } - - .column.is-2-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; - } - - .column.is-offset-2-widescreen { - margin-left: 16.66667%; - } - - .column.is-3-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-offset-3-widescreen { - margin-left: 25%; - } - - .column.is-4-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; - } - - .column.is-offset-4-widescreen { - margin-left: 33.33333%; - } - - .column.is-5-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; - } - - .column.is-offset-5-widescreen { - margin-left: 41.66667%; - } - - .column.is-6-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-offset-6-widescreen { - margin-left: 50%; - } - - .column.is-7-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; - } - - .column.is-offset-7-widescreen { - margin-left: 58.33333%; - } - - .column.is-8-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; - } - - .column.is-offset-8-widescreen { - margin-left: 66.66667%; - } - - .column.is-9-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-offset-9-widescreen { - margin-left: 75%; - } - - .column.is-10-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; - } - - .column.is-offset-10-widescreen { - margin-left: 83.33333%; - } - - .column.is-11-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; - } - - .column.is-offset-11-widescreen { - margin-left: 91.66667%; - } - - .column.is-12-widescreen { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-offset-12-widescreen { - margin-left: 100%; - } -} - -@media screen and (min-width: 1408px) { - .column.is-narrow-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: unset; - } - - .column.is-full-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-three-quarters-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-two-thirds-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.6666%; - } - - .column.is-half-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-one-third-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.3333%; - } - - .column.is-one-quarter-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-one-fifth-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 20%; - } - - .column.is-two-fifths-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 40%; - } - - .column.is-three-fifths-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 60%; - } - - .column.is-four-fifths-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 80%; - } - - .column.is-offset-three-quarters-fullhd { - margin-left: 75%; - } - - .column.is-offset-two-thirds-fullhd { - margin-left: 66.6666%; - } - - .column.is-offset-half-fullhd { - margin-left: 50%; - } - - .column.is-offset-one-third-fullhd { - margin-left: 33.3333%; - } - - .column.is-offset-one-quarter-fullhd { - margin-left: 25%; - } - - .column.is-offset-one-fifth-fullhd { - margin-left: 20%; - } - - .column.is-offset-two-fifths-fullhd { - margin-left: 40%; - } - - .column.is-offset-three-fifths-fullhd { - margin-left: 60%; - } - - .column.is-offset-four-fifths-fullhd { - margin-left: 80%; - } - - .column.is-0-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 0%; - } - - .column.is-offset-0-fullhd { - margin-left: 0%; - } - - .column.is-1-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; - } - - .column.is-offset-1-fullhd { - margin-left: 8.33333%; - } - - .column.is-2-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; - } - - .column.is-offset-2-fullhd { - margin-left: 16.66667%; - } - - .column.is-3-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .column.is-offset-3-fullhd { - margin-left: 25%; - } - - .column.is-4-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; - } - - .column.is-offset-4-fullhd { - margin-left: 33.33333%; - } - - .column.is-5-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; - } - - .column.is-offset-5-fullhd { - margin-left: 41.66667%; - } - - .column.is-6-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .column.is-offset-6-fullhd { - margin-left: 50%; - } - - .column.is-7-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; - } - - .column.is-offset-7-fullhd { - margin-left: 58.33333%; - } - - .column.is-8-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; - } - - .column.is-offset-8-fullhd { - margin-left: 66.66667%; - } - - .column.is-9-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .column.is-offset-9-fullhd { - margin-left: 75%; - } - - .column.is-10-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; - } - - .column.is-offset-10-fullhd { - margin-left: 83.33333%; - } - - .column.is-11-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; - } - - .column.is-offset-11-fullhd { - margin-left: 91.66667%; - } - - .column.is-12-fullhd { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } - - .column.is-offset-12-fullhd { - margin-left: 100%; - } -} - -.columns { - margin-left: -0.75rem; - margin-right: -0.75rem; - margin-top: -0.75rem; -} - - .columns:last-child { - margin-bottom: -0.75rem; - } - - .columns:not(:last-child) { - margin-bottom: calc(1.5rem - 0.75rem); - } - - .columns.is-centered { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .columns.is-gapless { - margin-left: 0; - margin-right: 0; - margin-top: 0; - } - - .columns.is-gapless > .column { - margin: 0; - padding: 0 !important; - } - - .columns.is-gapless:not(:last-child) { - margin-bottom: 1.5rem; - } - - .columns.is-gapless:last-child { - margin-bottom: 0; - } - - .columns.is-mobile { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .columns.is-multiline { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - } - - .columns.is-vcentered { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - } - -@media screen and (min-width: 769px), print { - .columns:not(.is-desktop) { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-desktop { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } -} - -.columns.is-variable { - --columnGap: 0.75rem; - margin-left: calc(-1 * var(--columnGap)); - margin-right: calc(-1 * var(--columnGap)); -} - - .columns.is-variable > .column { - padding-left: var(--columnGap); - padding-right: var(--columnGap); - } - - .columns.is-variable.is-0 { - --columnGap: 0rem; - } - -@media screen and (max-width: 768px) { - .columns.is-variable.is-0-mobile { - --columnGap: 0rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-0-tablet { - --columnGap: 0rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-0-tablet-only { - --columnGap: 0rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-0-touch { - --columnGap: 0rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-0-desktop { - --columnGap: 0rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-0-desktop-only { - --columnGap: 0rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-0-widescreen { - --columnGap: 0rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-0-widescreen-only { - --columnGap: 0rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-0-fullhd { - --columnGap: 0rem; - } -} - -.columns.is-variable.is-1 { - --columnGap: 0.25rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-1-mobile { - --columnGap: 0.25rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-1-tablet { - --columnGap: 0.25rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-1-tablet-only { - --columnGap: 0.25rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-1-touch { - --columnGap: 0.25rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-1-desktop { - --columnGap: 0.25rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-1-desktop-only { - --columnGap: 0.25rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-1-widescreen { - --columnGap: 0.25rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-1-widescreen-only { - --columnGap: 0.25rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-1-fullhd { - --columnGap: 0.25rem; - } -} - -.columns.is-variable.is-2 { - --columnGap: 0.5rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-2-mobile { - --columnGap: 0.5rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-2-tablet { - --columnGap: 0.5rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-2-tablet-only { - --columnGap: 0.5rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-2-touch { - --columnGap: 0.5rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-2-desktop { - --columnGap: 0.5rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-2-desktop-only { - --columnGap: 0.5rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-2-widescreen { - --columnGap: 0.5rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-2-widescreen-only { - --columnGap: 0.5rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-2-fullhd { - --columnGap: 0.5rem; - } -} - -.columns.is-variable.is-3 { - --columnGap: 0.75rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-3-mobile { - --columnGap: 0.75rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-3-tablet { - --columnGap: 0.75rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-3-tablet-only { - --columnGap: 0.75rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-3-touch { - --columnGap: 0.75rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-3-desktop { - --columnGap: 0.75rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-3-desktop-only { - --columnGap: 0.75rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-3-widescreen { - --columnGap: 0.75rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-3-widescreen-only { - --columnGap: 0.75rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-3-fullhd { - --columnGap: 0.75rem; - } -} - -.columns.is-variable.is-4 { - --columnGap: 1rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-4-mobile { - --columnGap: 1rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-4-tablet { - --columnGap: 1rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-4-tablet-only { - --columnGap: 1rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-4-touch { - --columnGap: 1rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-4-desktop { - --columnGap: 1rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-4-desktop-only { - --columnGap: 1rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-4-widescreen { - --columnGap: 1rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-4-widescreen-only { - --columnGap: 1rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-4-fullhd { - --columnGap: 1rem; - } -} - -.columns.is-variable.is-5 { - --columnGap: 1.25rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-5-mobile { - --columnGap: 1.25rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-5-tablet { - --columnGap: 1.25rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-5-tablet-only { - --columnGap: 1.25rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-5-touch { - --columnGap: 1.25rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-5-desktop { - --columnGap: 1.25rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-5-desktop-only { - --columnGap: 1.25rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-5-widescreen { - --columnGap: 1.25rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-5-widescreen-only { - --columnGap: 1.25rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-5-fullhd { - --columnGap: 1.25rem; - } -} - -.columns.is-variable.is-6 { - --columnGap: 1.5rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-6-mobile { - --columnGap: 1.5rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-6-tablet { - --columnGap: 1.5rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-6-tablet-only { - --columnGap: 1.5rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-6-touch { - --columnGap: 1.5rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-6-desktop { - --columnGap: 1.5rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-6-desktop-only { - --columnGap: 1.5rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-6-widescreen { - --columnGap: 1.5rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-6-widescreen-only { - --columnGap: 1.5rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-6-fullhd { - --columnGap: 1.5rem; - } -} - -.columns.is-variable.is-7 { - --columnGap: 1.75rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-7-mobile { - --columnGap: 1.75rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-7-tablet { - --columnGap: 1.75rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-7-tablet-only { - --columnGap: 1.75rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-7-touch { - --columnGap: 1.75rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-7-desktop { - --columnGap: 1.75rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-7-desktop-only { - --columnGap: 1.75rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-7-widescreen { - --columnGap: 1.75rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-7-widescreen-only { - --columnGap: 1.75rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-7-fullhd { - --columnGap: 1.75rem; - } -} - -.columns.is-variable.is-8 { - --columnGap: 2rem; -} - -@media screen and (max-width: 768px) { - .columns.is-variable.is-8-mobile { - --columnGap: 2rem; - } -} - -@media screen and (min-width: 769px), print { - .columns.is-variable.is-8-tablet { - --columnGap: 2rem; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-8-tablet-only { - --columnGap: 2rem; - } -} - -@media screen and (max-width: 1023px) { - .columns.is-variable.is-8-touch { - --columnGap: 2rem; - } -} - -@media screen and (min-width: 1024px) { - .columns.is-variable.is-8-desktop { - --columnGap: 2rem; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-8-desktop-only { - --columnGap: 2rem; - } -} - -@media screen and (min-width: 1216px) { - .columns.is-variable.is-8-widescreen { - --columnGap: 2rem; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-8-widescreen-only { - --columnGap: 2rem; - } -} - -@media screen and (min-width: 1408px) { - .columns.is-variable.is-8-fullhd { - --columnGap: 2rem; - } -} - -.tile { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: block; - -ms-flex-preferred-size: 0; - flex-basis: 0; - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - min-height: -webkit-min-content; - min-height: -moz-min-content; - min-height: min-content; -} - - .tile.is-ancestor { - margin-left: -0.75rem; - margin-right: -0.75rem; - margin-top: -0.75rem; - } - - .tile.is-ancestor:last-child { - margin-bottom: -0.75rem; - } - - .tile.is-ancestor:not(:last-child) { - margin-bottom: 0.75rem; - } - - .tile.is-child { - margin: 0 !important; - } - - .tile.is-parent { - padding: 0.75rem; - } - - .tile.is-vertical { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - } - - .tile.is-vertical > .tile.is-child:not(:last-child) { - margin-bottom: 1.5rem !important; - } - -@media screen and (min-width: 769px), print { - .tile:not(.is-child) { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .tile.is-1 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 8.33333%; - } - - .tile.is-2 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 16.66667%; - } - - .tile.is-3 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 25%; - } - - .tile.is-4 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 33.33333%; - } - - .tile.is-5 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 41.66667%; - } - - .tile.is-6 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 50%; - } - - .tile.is-7 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 58.33333%; - } - - .tile.is-8 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 66.66667%; - } - - .tile.is-9 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 75%; - } - - .tile.is-10 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 83.33333%; - } - - .tile.is-11 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 91.66667%; - } - - .tile.is-12 { - -webkit-box-flex: 0; - -ms-flex: none; - flex: none; - width: 100%; - } -} -/* Bulma Helpers */ -.has-text-white { - color: white !important; -} - -a.has-text-white:hover, a.has-text-white:focus { - color: #e6e6e6 !important; -} - -.has-background-white { - background-color: white !important; -} - -.has-text-black { - color: #0a0a0a !important; -} - -a.has-text-black:hover, a.has-text-black:focus { - color: black !important; -} - -.has-background-black { - background-color: #0a0a0a !important; -} - -.has-text-light { - color: whitesmoke !important; -} - -a.has-text-light:hover, a.has-text-light:focus { - color: #dbdbdb !important; -} - -.has-background-light { - background-color: whitesmoke !important; -} - -.has-text-dark { - color: #200117 !important; -} - -a.has-text-dark:hover, a.has-text-dark:focus { - color: black !important; -} - -.has-background-dark { - background-color: #200117 !important; -} - -.has-text-primary { - color: #A00975 !important; -} - -a.has-text-primary:hover, a.has-text-primary:focus { - color: #700652 !important; -} - -.has-background-primary { - background-color: #A00975 !important; -} - -.has-text-primary-light { - color: #feecf9 !important; -} - -a.has-text-primary-light:hover, a.has-text-primary-light:focus { - color: #fbbbe9 !important; -} - -.has-background-primary-light { - background-color: #feecf9 !important; -} - -.has-text-primary-dark { - color: #f212b2 !important; -} - -a.has-text-primary-dark:hover, a.has-text-primary-dark:focus { - color: #f443c2 !important; -} - -.has-background-primary-dark { - background-color: #f212b2 !important; -} - -.has-text-link { - color: #378BBA !important; -} - -a.has-text-link:hover, a.has-text-link:focus { - color: #2b6e93 !important; -} - -.has-background-link { - background-color: #378BBA !important; -} - -.has-text-link-light { - color: #eff6fa !important; -} - -a.has-text-link-light:hover, a.has-text-link-light:focus { - color: #c8e1ef !important; -} - -.has-background-link-light { - background-color: #eff6fa !important; -} - -.has-text-link-dark { - color: #317ca5 !important; -} - -a.has-text-link-dark:hover, a.has-text-link-dark:focus { - color: #4297c7 !important; -} - -.has-background-link-dark { - background-color: #317ca5 !important; -} - -.has-text-info { - color: #3298dc !important; -} - -a.has-text-info:hover, a.has-text-info:focus { - color: #207dbc !important; -} - -.has-background-info { - background-color: #3298dc !important; -} - -.has-text-info-light { - color: #eef6fc !important; -} - -a.has-text-info-light:hover, a.has-text-info-light:focus { - color: #c2e0f5 !important; -} - -.has-background-info-light { - background-color: #eef6fc !important; -} - -.has-text-info-dark { - color: #1d72aa !important; -} - -a.has-text-info-dark:hover, a.has-text-info-dark:focus { - color: #248fd6 !important; -} - -.has-background-info-dark { - background-color: #1d72aa !important; -} - -.has-text-success { - color: #48c774 !important; -} - -a.has-text-success:hover, a.has-text-success:focus { - color: #34a85c !important; -} - -.has-background-success { - background-color: #48c774 !important; -} - -.has-text-success-light { - color: #effaf3 !important; -} - -a.has-text-success-light:hover, a.has-text-success-light:focus { - color: #c8eed6 !important; -} - -.has-background-success-light { - background-color: #effaf3 !important; -} - -.has-text-success-dark { - color: #257942 !important; -} - -a.has-text-success-dark:hover, a.has-text-success-dark:focus { - color: #31a058 !important; -} - -.has-background-success-dark { - background-color: #257942 !important; -} - -.has-text-warning { - color: #ffdd57 !important; -} - -a.has-text-warning:hover, a.has-text-warning:focus { - color: #ffd324 !important; -} - -.has-background-warning { - background-color: #ffdd57 !important; -} - -.has-text-warning-light { - color: #fffbeb !important; -} - -a.has-text-warning-light:hover, a.has-text-warning-light:focus { - color: #fff1b8 !important; -} - -.has-background-warning-light { - background-color: #fffbeb !important; -} - -.has-text-warning-dark { - color: #947600 !important; -} - -a.has-text-warning-dark:hover, a.has-text-warning-dark:focus { - color: #c79f00 !important; -} - -.has-background-warning-dark { - background-color: #947600 !important; -} - -.has-text-danger { - color: #f14668 !important; -} - -a.has-text-danger:hover, a.has-text-danger:focus { - color: #ee1742 !important; -} - -.has-background-danger { - background-color: #f14668 !important; -} - -.has-text-danger-light { - color: #feecf0 !important; -} - -a.has-text-danger-light:hover, a.has-text-danger-light:focus { - color: #fabdc9 !important; -} - -.has-background-danger-light { - background-color: #feecf0 !important; -} - -.has-text-danger-dark { - color: #cc0f35 !important; -} - -a.has-text-danger-dark:hover, a.has-text-danger-dark:focus { - color: #ee2049 !important; -} - -.has-background-danger-dark { - background-color: #cc0f35 !important; -} - -.has-text-black-bis { - color: #121212 !important; -} - -.has-background-black-bis { - background-color: #121212 !important; -} - -.has-text-black-ter { - color: #242424 !important; -} - -.has-background-black-ter { - background-color: #242424 !important; -} - -.has-text-grey-darker { - color: #363636 !important; -} - -.has-background-grey-darker { - background-color: #363636 !important; -} - -.has-text-grey-dark { - color: #4a4a4a !important; -} - -.has-background-grey-dark { - background-color: #4a4a4a !important; -} - -.has-text-grey { - color: #7a7a7a !important; -} - -.has-background-grey { - background-color: #7a7a7a !important; -} - -.has-text-grey-light { - color: #b5b5b5 !important; -} - -.has-background-grey-light { - background-color: #b5b5b5 !important; -} - -.has-text-grey-lighter { - color: #dbdbdb !important; -} - -.has-background-grey-lighter { - background-color: #dbdbdb !important; -} - -.has-text-white-ter { - color: whitesmoke !important; -} - -.has-background-white-ter { - background-color: whitesmoke !important; -} - -.has-text-white-bis { - color: #fafafa !important; -} - -.has-background-white-bis { - background-color: #fafafa !important; -} - -.is-flex-direction-row { - -webkit-box-orient: horizontal !important; - -webkit-box-direction: normal !important; - -ms-flex-direction: row !important; - flex-direction: row !important; -} - -.is-flex-direction-row-reverse { - -webkit-box-orient: horizontal !important; - -webkit-box-direction: reverse !important; - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; -} - -.is-flex-direction-column { - -webkit-box-orient: vertical !important; - -webkit-box-direction: normal !important; - -ms-flex-direction: column !important; - flex-direction: column !important; -} - -.is-flex-direction-column-reverse { - -webkit-box-orient: vertical !important; - -webkit-box-direction: reverse !important; - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; -} - -.is-flex-wrap-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; -} - -.is-flex-wrap-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; -} - -.is-flex-wrap-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; -} - -.is-justify-content-flex-start { - -webkit-box-pack: start !important; - -ms-flex-pack: start !important; - justify-content: flex-start !important; -} - -.is-justify-content-flex-end { - -webkit-box-pack: end !important; - -ms-flex-pack: end !important; - justify-content: flex-end !important; -} - -.is-justify-content-center { - -webkit-box-pack: center !important; - -ms-flex-pack: center !important; - justify-content: center !important; -} - -.is-justify-content-space-between { - -webkit-box-pack: justify !important; - -ms-flex-pack: justify !important; - justify-content: space-between !important; -} - -.is-justify-content-space-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; -} - -.is-justify-content-space-evenly { - -webkit-box-pack: space-evenly !important; - -ms-flex-pack: space-evenly !important; - justify-content: space-evenly !important; -} - -.is-justify-content-start { - -webkit-box-pack: start !important; - -ms-flex-pack: start !important; - justify-content: start !important; -} - -.is-justify-content-end { - -webkit-box-pack: end !important; - -ms-flex-pack: end !important; - justify-content: end !important; -} - -.is-justify-content-left { - -webkit-box-pack: left !important; - -ms-flex-pack: left !important; - justify-content: left !important; -} - -.is-justify-content-right { - -webkit-box-pack: right !important; - -ms-flex-pack: right !important; - justify-content: right !important; -} - -.is-align-content-flex-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; -} - -.is-align-content-flex-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; -} - -.is-align-content-center { - -ms-flex-line-pack: center !important; - align-content: center !important; -} - -.is-align-content-space-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; -} - -.is-align-content-space-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; -} - -.is-align-content-space-evenly { - -ms-flex-line-pack: space-evenly !important; - align-content: space-evenly !important; -} - -.is-align-content-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; -} - -.is-align-content-start { - -ms-flex-line-pack: start !important; - align-content: start !important; -} - -.is-align-content-end { - -ms-flex-line-pack: end !important; - align-content: end !important; -} - -.is-align-content-baseline { - -ms-flex-line-pack: baseline !important; - align-content: baseline !important; -} - -.is-align-items-stretch { - -webkit-box-align: stretch !important; - -ms-flex-align: stretch !important; - align-items: stretch !important; -} - -.is-align-items-flex-start { - -webkit-box-align: start !important; - -ms-flex-align: start !important; - align-items: flex-start !important; -} - -.is-align-items-flex-end { - -webkit-box-align: end !important; - -ms-flex-align: end !important; - align-items: flex-end !important; -} - -.is-align-items-center { - -webkit-box-align: center !important; - -ms-flex-align: center !important; - align-items: center !important; -} - -.is-align-items-baseline { - -webkit-box-align: baseline !important; - -ms-flex-align: baseline !important; - align-items: baseline !important; -} - -.is-align-items-start { - -webkit-box-align: start !important; - -ms-flex-align: start !important; - align-items: start !important; -} - -.is-align-items-end { - -webkit-box-align: end !important; - -ms-flex-align: end !important; - align-items: end !important; -} - -.is-align-items-self-start { - -webkit-box-align: self-start !important; - -ms-flex-align: self-start !important; - align-items: self-start !important; -} - -.is-align-items-self-end { - -webkit-box-align: self-end !important; - -ms-flex-align: self-end !important; - align-items: self-end !important; -} - -.is-align-self-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; -} - -.is-align-self-flex-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; -} - -.is-align-self-flex-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; -} - -.is-align-self-center { - -ms-flex-item-align: center !important; - align-self: center !important; -} - -.is-align-self-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; -} - -.is-align-self-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; -} - -.is-flex-grow-0 { - -webkit-box-flex: 0 !important; - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; -} - -.is-flex-grow-1 { - -webkit-box-flex: 1 !important; - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; -} - -.is-flex-grow-2 { - -webkit-box-flex: 2 !important; - -ms-flex-positive: 2 !important; - flex-grow: 2 !important; -} - -.is-flex-grow-3 { - -webkit-box-flex: 3 !important; - -ms-flex-positive: 3 !important; - flex-grow: 3 !important; -} - -.is-flex-grow-4 { - -webkit-box-flex: 4 !important; - -ms-flex-positive: 4 !important; - flex-grow: 4 !important; -} - -.is-flex-grow-5 { - -webkit-box-flex: 5 !important; - -ms-flex-positive: 5 !important; - flex-grow: 5 !important; -} - -.is-flex-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; -} - -.is-flex-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; -} - -.is-flex-shrink-2 { - -ms-flex-negative: 2 !important; - flex-shrink: 2 !important; -} - -.is-flex-shrink-3 { - -ms-flex-negative: 3 !important; - flex-shrink: 3 !important; -} - -.is-flex-shrink-4 { - -ms-flex-negative: 4 !important; - flex-shrink: 4 !important; -} - -.is-flex-shrink-5 { - -ms-flex-negative: 5 !important; - flex-shrink: 5 !important; -} - -.is-clearfix::after { - clear: both; - content: " "; - display: table; -} - -.is-pulled-left { - float: left !important; -} - -.is-pulled-right { - float: right !important; -} - -.is-radiusless { - border-radius: 0 !important; -} - -.is-shadowless { - -webkit-box-shadow: none !important; - box-shadow: none !important; -} - -.is-clickable { - cursor: pointer !important; - pointer-events: all !important; -} - -.is-clipped { - overflow: hidden !important; -} - -.is-relative { - position: relative !important; -} - -.is-marginless { - margin: 0 !important; -} - -.is-paddingless { - padding: 0 !important; -} - -.m-0 { - margin: 0 !important; -} - -.mt-0 { - margin-top: 0 !important; -} - -.mr-0 { - margin-right: 0 !important; -} - -.mb-0 { - margin-bottom: 0 !important; -} - -.ml-0 { - margin-left: 0 !important; -} - -.mx-0 { - margin-left: 0 !important; - margin-right: 0 !important; -} - -.my-0 { - margin-top: 0 !important; - margin-bottom: 0 !important; -} - -.m-1 { - margin: 0.25rem !important; -} - -.mt-1 { - margin-top: 0.25rem !important; -} - -.mr-1 { - margin-right: 0.25rem !important; -} - -.mb-1 { - margin-bottom: 0.25rem !important; -} - -.ml-1 { - margin-left: 0.25rem !important; -} - -.mx-1 { - margin-left: 0.25rem !important; - margin-right: 0.25rem !important; -} - -.my-1 { - margin-top: 0.25rem !important; - margin-bottom: 0.25rem !important; -} - -.m-2 { - margin: 0.5rem !important; -} - -.mt-2 { - margin-top: 0.5rem !important; -} - -.mr-2 { - margin-right: 0.5rem !important; -} - -.mb-2 { - margin-bottom: 0.5rem !important; -} - -.ml-2 { - margin-left: 0.5rem !important; -} - -.mx-2 { - margin-left: 0.5rem !important; - margin-right: 0.5rem !important; -} - -.my-2, #fsdocs-content p { - margin-top: 0.5rem !important; - margin-bottom: 0.5rem !important; -} - -.m-3 { - margin: 0.75rem !important; -} - -.mt-3 { - margin-top: 0.75rem !important; -} - -.mr-3 { - margin-right: 0.75rem !important; -} - -.mb-3 { - margin-bottom: 0.75rem !important; -} - -.ml-3 { - margin-left: 0.75rem !important; -} - -.mx-3 { - margin-left: 0.75rem !important; - margin-right: 0.75rem !important; -} - -.my-3 { - margin-top: 0.75rem !important; - margin-bottom: 0.75rem !important; -} - -.m-4 { - margin: 1rem !important; -} - -.mt-4 { - margin-top: 1rem !important; -} - -.mr-4 { - margin-right: 1rem !important; -} - -.mb-4 { - margin-bottom: 1rem !important; -} - -.ml-4 { - margin-left: 1rem !important; -} - -.mx-4 { - margin-left: 1rem !important; - margin-right: 1rem !important; -} - -.my-4 { - margin-top: 1rem !important; - margin-bottom: 1rem !important; -} - -.m-5 { - margin: 1.5rem !important; -} - -.mt-5 { - margin-top: 1.5rem !important; -} - -.mr-5 { - margin-right: 1.5rem !important; -} - -.mb-5 { - margin-bottom: 1.5rem !important; -} - -.ml-5 { - margin-left: 1.5rem !important; -} - -.mx-5 { - margin-left: 1.5rem !important; - margin-right: 1.5rem !important; -} - -.my-5 { - margin-top: 1.5rem !important; - margin-bottom: 1.5rem !important; -} - -.m-6 { - margin: 3rem !important; -} - -.mt-6 { - margin-top: 3rem !important; -} - -.mr-6 { - margin-right: 3rem !important; -} - -.mb-6 { - margin-bottom: 3rem !important; -} - -.ml-6 { - margin-left: 3rem !important; -} - -.mx-6 { - margin-left: 3rem !important; - margin-right: 3rem !important; -} - -.my-6 { - margin-top: 3rem !important; - margin-bottom: 3rem !important; -} - -.p-0 { - padding: 0 !important; -} - -.pt-0 { - padding-top: 0 !important; -} - -.pr-0 { - padding-right: 0 !important; -} - -.pb-0 { - padding-bottom: 0 !important; -} - -.pl-0 { - padding-left: 0 !important; -} - -.px-0 { - padding-left: 0 !important; - padding-right: 0 !important; -} - -.py-0 { - padding-top: 0 !important; - padding-bottom: 0 !important; -} - -.p-1 { - padding: 0.25rem !important; -} - -.pt-1 { - padding-top: 0.25rem !important; -} - -.pr-1 { - padding-right: 0.25rem !important; -} - -.pb-1 { - padding-bottom: 0.25rem !important; -} - -.pl-1 { - padding-left: 0.25rem !important; -} - -.px-1 { - padding-left: 0.25rem !important; - padding-right: 0.25rem !important; -} - -.py-1 { - padding-top: 0.25rem !important; - padding-bottom: 0.25rem !important; -} - -.p-2 { - padding: 0.5rem !important; -} - -.pt-2 { - padding-top: 0.5rem !important; -} - -.pr-2 { - padding-right: 0.5rem !important; -} - -.pb-2 { - padding-bottom: 0.5rem !important; -} - -.pl-2 { - padding-left: 0.5rem !important; -} - -.px-2 { - padding-left: 0.5rem !important; - padding-right: 0.5rem !important; -} - -.py-2 { - padding-top: 0.5rem !important; - padding-bottom: 0.5rem !important; -} - -.p-3 { - padding: 0.75rem !important; -} - -.pt-3 { - padding-top: 0.75rem !important; -} - -.pr-3 { - padding-right: 0.75rem !important; -} - -.pb-3 { - padding-bottom: 0.75rem !important; -} - -.pl-3 { - padding-left: 0.75rem !important; -} - -.px-3 { - padding-left: 0.75rem !important; - padding-right: 0.75rem !important; -} - -.py-3 { - padding-top: 0.75rem !important; - padding-bottom: 0.75rem !important; -} - -.p-4, #fsdocs-content blockquote { - padding: 1rem !important; -} - -.pt-4 { - padding-top: 1rem !important; -} - -.pr-4 { - padding-right: 1rem !important; -} - -.pb-4 { - padding-bottom: 1rem !important; -} - -.pl-4 { - padding-left: 1rem !important; -} - -.px-4 { - padding-left: 1rem !important; - padding-right: 1rem !important; -} - -.py-4 { - padding-top: 1rem !important; - padding-bottom: 1rem !important; -} - -.p-5 { - padding: 1.5rem !important; -} - -.pt-5 { - padding-top: 1.5rem !important; -} - -.pr-5 { - padding-right: 1.5rem !important; -} - -.pb-5 { - padding-bottom: 1.5rem !important; -} - -.pl-5 { - padding-left: 1.5rem !important; -} - -.px-5 { - padding-left: 1.5rem !important; - padding-right: 1.5rem !important; -} - -.py-5 { - padding-top: 1.5rem !important; - padding-bottom: 1.5rem !important; -} - -.p-6 { - padding: 3rem !important; -} - -.pt-6 { - padding-top: 3rem !important; -} - -.pr-6 { - padding-right: 3rem !important; -} - -.pb-6 { - padding-bottom: 3rem !important; -} - -.pl-6 { - padding-left: 3rem !important; -} - -.px-6 { - padding-left: 3rem !important; - padding-right: 3rem !important; -} - -.py-6 { - padding-top: 3rem !important; - padding-bottom: 3rem !important; -} - -.is-size-1 { - font-size: 3rem !important; -} - -.is-size-2 { - font-size: 2.5rem !important; -} - -.is-size-3 { - font-size: 2rem !important; -} - -.is-size-4 { - font-size: 1.5rem !important; -} - -.is-size-5 { - font-size: 1.25rem !important; -} - -.is-size-6 { - font-size: 1rem !important; -} - -.is-size-7 { - font-size: 0.75rem !important; -} - -@media screen and (max-width: 768px) { - .is-size-1-mobile { - font-size: 3rem !important; - } - - .is-size-2-mobile { - font-size: 2.5rem !important; - } - - .is-size-3-mobile { - font-size: 2rem !important; - } - - .is-size-4-mobile { - font-size: 1.5rem !important; - } - - .is-size-5-mobile { - font-size: 1.25rem !important; - } - - .is-size-6-mobile { - font-size: 1rem !important; - } - - .is-size-7-mobile { - font-size: 0.75rem !important; - } -} - -@media screen and (min-width: 769px), print { - .is-size-1-tablet { - font-size: 3rem !important; - } - - .is-size-2-tablet { - font-size: 2.5rem !important; - } - - .is-size-3-tablet { - font-size: 2rem !important; - } - - .is-size-4-tablet { - font-size: 1.5rem !important; - } - - .is-size-5-tablet { - font-size: 1.25rem !important; - } - - .is-size-6-tablet { - font-size: 1rem !important; - } - - .is-size-7-tablet { - font-size: 0.75rem !important; - } -} - -@media screen and (max-width: 1023px) { - .is-size-1-touch { - font-size: 3rem !important; - } - - .is-size-2-touch { - font-size: 2.5rem !important; - } - - .is-size-3-touch { - font-size: 2rem !important; - } - - .is-size-4-touch { - font-size: 1.5rem !important; - } - - .is-size-5-touch { - font-size: 1.25rem !important; - } - - .is-size-6-touch { - font-size: 1rem !important; - } - - .is-size-7-touch { - font-size: 0.75rem !important; - } -} - -@media screen and (min-width: 1024px) { - .is-size-1-desktop { - font-size: 3rem !important; - } - - .is-size-2-desktop { - font-size: 2.5rem !important; - } - - .is-size-3-desktop { - font-size: 2rem !important; - } - - .is-size-4-desktop { - font-size: 1.5rem !important; - } - - .is-size-5-desktop { - font-size: 1.25rem !important; - } - - .is-size-6-desktop { - font-size: 1rem !important; - } - - .is-size-7-desktop { - font-size: 0.75rem !important; - } -} - -@media screen and (min-width: 1216px) { - .is-size-1-widescreen { - font-size: 3rem !important; - } - - .is-size-2-widescreen { - font-size: 2.5rem !important; - } - - .is-size-3-widescreen { - font-size: 2rem !important; - } - - .is-size-4-widescreen { - font-size: 1.5rem !important; - } - - .is-size-5-widescreen { - font-size: 1.25rem !important; - } - - .is-size-6-widescreen { - font-size: 1rem !important; - } - - .is-size-7-widescreen { - font-size: 0.75rem !important; - } -} - -@media screen and (min-width: 1408px) { - .is-size-1-fullhd { - font-size: 3rem !important; - } - - .is-size-2-fullhd { - font-size: 2.5rem !important; - } - - .is-size-3-fullhd { - font-size: 2rem !important; - } - - .is-size-4-fullhd { - font-size: 1.5rem !important; - } - - .is-size-5-fullhd { - font-size: 1.25rem !important; - } - - .is-size-6-fullhd { - font-size: 1rem !important; - } - - .is-size-7-fullhd { - font-size: 0.75rem !important; - } -} - -.has-text-centered { - text-align: center !important; -} - -.has-text-justified { - text-align: justify !important; -} - -.has-text-left { - text-align: left !important; -} - -.has-text-right { - text-align: right !important; -} - -@media screen and (max-width: 768px) { - .has-text-centered-mobile { - text-align: center !important; - } -} - -@media screen and (min-width: 769px), print { - .has-text-centered-tablet { - text-align: center !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-centered-tablet-only { - text-align: center !important; - } -} - -@media screen and (max-width: 1023px) { - .has-text-centered-touch { - text-align: center !important; - } -} - -@media screen and (min-width: 1024px) { - .has-text-centered-desktop { - text-align: center !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-centered-desktop-only { - text-align: center !important; - } -} - -@media screen and (min-width: 1216px) { - .has-text-centered-widescreen { - text-align: center !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-centered-widescreen-only { - text-align: center !important; - } -} - -@media screen and (min-width: 1408px) { - .has-text-centered-fullhd { - text-align: center !important; - } -} - -@media screen and (max-width: 768px) { - .has-text-justified-mobile { - text-align: justify !important; - } -} - -@media screen and (min-width: 769px), print { - .has-text-justified-tablet { - text-align: justify !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-justified-tablet-only { - text-align: justify !important; - } -} - -@media screen and (max-width: 1023px) { - .has-text-justified-touch { - text-align: justify !important; - } -} - -@media screen and (min-width: 1024px) { - .has-text-justified-desktop { - text-align: justify !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-justified-desktop-only { - text-align: justify !important; - } -} - -@media screen and (min-width: 1216px) { - .has-text-justified-widescreen { - text-align: justify !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-justified-widescreen-only { - text-align: justify !important; - } -} - -@media screen and (min-width: 1408px) { - .has-text-justified-fullhd { - text-align: justify !important; - } -} - -@media screen and (max-width: 768px) { - .has-text-left-mobile { - text-align: left !important; - } -} - -@media screen and (min-width: 769px), print { - .has-text-left-tablet { - text-align: left !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-left-tablet-only { - text-align: left !important; - } -} - -@media screen and (max-width: 1023px) { - .has-text-left-touch { - text-align: left !important; - } -} - -@media screen and (min-width: 1024px) { - .has-text-left-desktop { - text-align: left !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-left-desktop-only { - text-align: left !important; - } -} - -@media screen and (min-width: 1216px) { - .has-text-left-widescreen { - text-align: left !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-left-widescreen-only { - text-align: left !important; - } -} - -@media screen and (min-width: 1408px) { - .has-text-left-fullhd { - text-align: left !important; - } -} - -@media screen and (max-width: 768px) { - .has-text-right-mobile { - text-align: right !important; - } -} - -@media screen and (min-width: 769px), print { - .has-text-right-tablet { - text-align: right !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-right-tablet-only { - text-align: right !important; - } -} - -@media screen and (max-width: 1023px) { - .has-text-right-touch { - text-align: right !important; - } -} - -@media screen and (min-width: 1024px) { - .has-text-right-desktop { - text-align: right !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-right-desktop-only { - text-align: right !important; - } -} - -@media screen and (min-width: 1216px) { - .has-text-right-widescreen { - text-align: right !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-right-widescreen-only { - text-align: right !important; - } -} - -@media screen and (min-width: 1408px) { - .has-text-right-fullhd { - text-align: right !important; - } -} - -.is-capitalized { - text-transform: capitalize !important; -} - -.is-lowercase { - text-transform: lowercase !important; -} - -.is-uppercase { - text-transform: uppercase !important; -} - -.is-italic { - font-style: italic !important; -} - -.has-text-weight-light { - font-weight: 300 !important; -} - -.has-text-weight-normal { - font-weight: 400 !important; -} - -.has-text-weight-medium { - font-weight: 500 !important; -} - -.has-text-weight-semibold { - font-weight: 600 !important; -} - -.has-text-weight-bold { - font-weight: 700 !important; -} - -.is-family-primary { - font-family: "Nunito", sans-serif !important; -} - -.is-family-secondary { - font-family: "Nunito", sans-serif !important; -} - -.is-family-sans-serif { - font-family: "Nunito", sans-serif !important; -} - -.is-family-monospace { - font-family: monospace !important; -} - -.is-family-code { - font-family: monospace !important; -} - -.is-block { - display: block !important; -} - -@media screen and (max-width: 768px) { - .is-block-mobile { - display: block !important; - } -} - -@media screen and (min-width: 769px), print { - .is-block-tablet { - display: block !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .is-block-tablet-only { - display: block !important; - } -} - -@media screen and (max-width: 1023px) { - .is-block-touch { - display: block !important; - } -} - -@media screen and (min-width: 1024px) { - .is-block-desktop { - display: block !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-block-desktop-only { - display: block !important; - } -} - -@media screen and (min-width: 1216px) { - .is-block-widescreen { - display: block !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-block-widescreen-only { - display: block !important; - } -} - -@media screen and (min-width: 1408px) { - .is-block-fullhd { - display: block !important; - } -} - -.is-flex { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; -} - -@media screen and (max-width: 768px) { - .is-flex-mobile { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (min-width: 769px), print { - .is-flex-tablet { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .is-flex-tablet-only { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (max-width: 1023px) { - .is-flex-touch { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (min-width: 1024px) { - .is-flex-desktop { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-flex-desktop-only { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (min-width: 1216px) { - .is-flex-widescreen { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-flex-widescreen-only { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -@media screen and (min-width: 1408px) { - .is-flex-fullhd { - display: -webkit-box !important; - display: -ms-flexbox !important; - display: flex !important; - } -} - -.is-inline { - display: inline !important; -} - -@media screen and (max-width: 768px) { - .is-inline-mobile { - display: inline !important; - } -} - -@media screen and (min-width: 769px), print { - .is-inline-tablet { - display: inline !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .is-inline-tablet-only { - display: inline !important; - } -} - -@media screen and (max-width: 1023px) { - .is-inline-touch { - display: inline !important; - } -} - -@media screen and (min-width: 1024px) { - .is-inline-desktop { - display: inline !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-inline-desktop-only { - display: inline !important; - } -} - -@media screen and (min-width: 1216px) { - .is-inline-widescreen { - display: inline !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-inline-widescreen-only { - display: inline !important; - } -} - -@media screen and (min-width: 1408px) { - .is-inline-fullhd { - display: inline !important; - } -} - -.is-inline-block { - display: inline-block !important; -} - -@media screen and (max-width: 768px) { - .is-inline-block-mobile { - display: inline-block !important; - } -} - -@media screen and (min-width: 769px), print { - .is-inline-block-tablet { - display: inline-block !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .is-inline-block-tablet-only { - display: inline-block !important; - } -} - -@media screen and (max-width: 1023px) { - .is-inline-block-touch { - display: inline-block !important; - } -} - -@media screen and (min-width: 1024px) { - .is-inline-block-desktop { - display: inline-block !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-inline-block-desktop-only { - display: inline-block !important; - } -} - -@media screen and (min-width: 1216px) { - .is-inline-block-widescreen { - display: inline-block !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-inline-block-widescreen-only { - display: inline-block !important; - } -} - -@media screen and (min-width: 1408px) { - .is-inline-block-fullhd { - display: inline-block !important; - } -} - -.is-inline-flex { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; -} - -@media screen and (max-width: 768px) { - .is-inline-flex-mobile { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (min-width: 769px), print { - .is-inline-flex-tablet { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .is-inline-flex-tablet-only { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (max-width: 1023px) { - .is-inline-flex-touch { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (min-width: 1024px) { - .is-inline-flex-desktop { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-inline-flex-desktop-only { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (min-width: 1216px) { - .is-inline-flex-widescreen { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-inline-flex-widescreen-only { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media screen and (min-width: 1408px) { - .is-inline-flex-fullhd { - display: -webkit-inline-box !important; - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -.is-hidden { - display: none !important; -} - -.is-sr-only { - border: none !important; - clip: rect(0, 0, 0, 0) !important; - height: 0.01em !important; - overflow: hidden !important; - padding: 0 !important; - position: absolute !important; - white-space: nowrap !important; - width: 0.01em !important; -} - -@media screen and (max-width: 768px) { - .is-hidden-mobile { - display: none !important; - } -} - -@media screen and (min-width: 769px), print { - .is-hidden-tablet { - display: none !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .is-hidden-tablet-only { - display: none !important; - } -} - -@media screen and (max-width: 1023px) { - .is-hidden-touch { - display: none !important; - } -} - -@media screen and (min-width: 1024px) { - .is-hidden-desktop { - display: none !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-hidden-desktop-only { - display: none !important; - } -} - -@media screen and (min-width: 1216px) { - .is-hidden-widescreen { - display: none !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-hidden-widescreen-only { - display: none !important; - } -} - -@media screen and (min-width: 1408px) { - .is-hidden-fullhd { - display: none !important; - } -} - -.is-invisible { - visibility: hidden !important; -} - -@media screen and (max-width: 768px) { - .is-invisible-mobile { - visibility: hidden !important; - } -} - -@media screen and (min-width: 769px), print { - .is-invisible-tablet { - visibility: hidden !important; - } -} - -@media screen and (min-width: 769px) and (max-width: 1023px) { - .is-invisible-tablet-only { - visibility: hidden !important; - } -} - -@media screen and (max-width: 1023px) { - .is-invisible-touch { - visibility: hidden !important; - } -} - -@media screen and (min-width: 1024px) { - .is-invisible-desktop { - visibility: hidden !important; - } -} - -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-invisible-desktop-only { - visibility: hidden !important; - } -} - -@media screen and (min-width: 1216px) { - .is-invisible-widescreen { - visibility: hidden !important; - } -} - -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-invisible-widescreen-only { - visibility: hidden !important; - } -} - -@media screen and (min-width: 1408px) { - .is-invisible-fullhd { - visibility: hidden !important; - } -} - -/* Bulma Layout */ -.hero { - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; -} - - .hero .navbar { - background: none; - } - - .hero .tabs ul { - border-bottom: none; - } - - .hero.is-white { - background-color: white; - color: #0a0a0a; - } - - .hero.is-white a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-white strong { - color: inherit; - } - - .hero.is-white .title { - color: #0a0a0a; - } - - .hero.is-white .subtitle { - color: rgba(10, 10, 10, 0.9); - } - - .hero.is-white .subtitle a:not(.button), - .hero.is-white .subtitle strong { - color: #0a0a0a; - } - -@media screen and (max-width: 1023px) { - .hero.is-white .navbar-menu { - background-color: white; - } -} - -.hero.is-white .navbar-item, -.hero.is-white .navbar-link { - color: rgba(10, 10, 10, 0.7); -} - - .hero.is-white a.navbar-item:hover, .hero.is-white a.navbar-item.is-active, .hero.is-white .navbar-item.active, - .hero.is-white .navbar-link:hover, - .hero.is-white .navbar-link.is-active, - .hero.is-white .navbar-link.active { - background-color: #f2f2f2; - color: #0a0a0a; - } - -.hero.is-white .tabs a { - color: #0a0a0a; - opacity: 0.9; -} - - .hero.is-white .tabs a:hover { - opacity: 1; - } - -.hero.is-white .tabs li.is-active a, .hero.is-white .tabs li.active a { - opacity: 1; -} - -.hero.is-white .tabs.is-boxed a, .hero.is-white .tabs.is-toggle a { - color: #0a0a0a; -} - - .hero.is-white .tabs.is-boxed a:hover, .hero.is-white .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-white .tabs.is-boxed li.is-active a, .hero.is-white .tabs.is-boxed li.active a, .hero.is-white .tabs.is-boxed li.is-active a:hover, .hero.is-white .tabs.is-toggle li.is-active a, .hero.is-white .tabs.is-toggle li.active a, .hero.is-white .tabs.is-toggle li.is-active a:hover { - background-color: #0a0a0a; - border-color: #0a0a0a; - color: white; -} - -.hero.is-white.is-bold { - background-image: -o-linear-gradient(309deg, #e8e3e4 0%, white 71%, white 100%); - background-image: linear-gradient(141deg, #e8e3e4 0%, white 71%, white 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-white.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #e8e3e4 0%, white 71%, white 100%); - background-image: linear-gradient(141deg, #e8e3e4 0%, white 71%, white 100%); - } -} - -.hero.is-black { - background-color: #0a0a0a; - color: white; -} - - .hero.is-black a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-black strong { - color: inherit; - } - - .hero.is-black .title { - color: white; - } - - .hero.is-black .subtitle { - color: rgba(255, 255, 255, 0.9); - } - - .hero.is-black .subtitle a:not(.button), - .hero.is-black .subtitle strong { - color: white; - } - -@media screen and (max-width: 1023px) { - .hero.is-black .navbar-menu { - background-color: #0a0a0a; - } -} - -.hero.is-black .navbar-item, -.hero.is-black .navbar-link { - color: rgba(255, 255, 255, 0.7); -} - - .hero.is-black a.navbar-item:hover, .hero.is-black a.navbar-item.is-active, .hero.is-black .navbar-item.active, - .hero.is-black .navbar-link:hover, - .hero.is-black .navbar-link.is-active, - .hero.is-black .navbar-link.active { - background-color: black; - color: white; - } - -.hero.is-black .tabs a { - color: white; - opacity: 0.9; -} - - .hero.is-black .tabs a:hover { - opacity: 1; - } - -.hero.is-black .tabs li.is-active a, .hero.is-black .tabs li.active a { - opacity: 1; -} - -.hero.is-black .tabs.is-boxed a, .hero.is-black .tabs.is-toggle a { - color: white; -} - - .hero.is-black .tabs.is-boxed a:hover, .hero.is-black .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-black .tabs.is-boxed li.is-active a, .hero.is-black .tabs.is-boxed li.active a, .hero.is-black .tabs.is-boxed li.is-active a:hover, .hero.is-black .tabs.is-toggle li.is-active a, .hero.is-black .tabs.is-toggle li.active a, .hero.is-black .tabs.is-toggle li.is-active a:hover { - background-color: white; - border-color: white; - color: #0a0a0a; -} - -.hero.is-black.is-bold { - background-image: -o-linear-gradient(309deg, black 0%, #0a0a0a 71%, #181616 100%); - background-image: linear-gradient(141deg, black 0%, #0a0a0a 71%, #181616 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-black.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, black 0%, #0a0a0a 71%, #181616 100%); - background-image: linear-gradient(141deg, black 0%, #0a0a0a 71%, #181616 100%); - } -} - -.hero.is-light { - background-color: whitesmoke; - color: rgba(0, 0, 0, 0.7); -} - - .hero.is-light a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-light strong { - color: inherit; - } - - .hero.is-light .title { - color: rgba(0, 0, 0, 0.7); - } - - .hero.is-light .subtitle { - color: rgba(0, 0, 0, 0.9); - } - - .hero.is-light .subtitle a:not(.button), - .hero.is-light .subtitle strong { - color: rgba(0, 0, 0, 0.7); - } - -@media screen and (max-width: 1023px) { - .hero.is-light .navbar-menu { - background-color: whitesmoke; - } -} - -.hero.is-light .navbar-item, -.hero.is-light .navbar-link { - color: rgba(0, 0, 0, 0.7); -} - - .hero.is-light a.navbar-item:hover, .hero.is-light a.navbar-item.is-active, .hero.is-light .navbar-item.active, - .hero.is-light .navbar-link:hover, - .hero.is-light .navbar-link.is-active, - .hero.is-light .navbar-link.active { - background-color: #e8e8e8; - color: rgba(0, 0, 0, 0.7); - } - -.hero.is-light .tabs a { - color: rgba(0, 0, 0, 0.7); - opacity: 0.9; -} - - .hero.is-light .tabs a:hover { - opacity: 1; - } - -.hero.is-light .tabs li.is-active a, .hero.is-light .tabs li.active a { - opacity: 1; -} - -.hero.is-light .tabs.is-boxed a, .hero.is-light .tabs.is-toggle a { - color: rgba(0, 0, 0, 0.7); -} - - .hero.is-light .tabs.is-boxed a:hover, .hero.is-light .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-light .tabs.is-boxed li.is-active a, .hero.is-light .tabs.is-boxed li.active a, .hero.is-light .tabs.is-boxed li.is-active a:hover, .hero.is-light .tabs.is-toggle li.is-active a, .hero.is-light .tabs.is-toggle li.active a, .hero.is-light .tabs.is-toggle li.is-active a:hover { - background-color: rgba(0, 0, 0, 0.7); - border-color: rgba(0, 0, 0, 0.7); - color: whitesmoke; -} - -.hero.is-light.is-bold { - background-image: -o-linear-gradient(309deg, #dfd8d9 0%, whitesmoke 71%, white 100%); - background-image: linear-gradient(141deg, #dfd8d9 0%, whitesmoke 71%, white 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-light.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #dfd8d9 0%, whitesmoke 71%, white 100%); - background-image: linear-gradient(141deg, #dfd8d9 0%, whitesmoke 71%, white 100%); - } -} - -.hero.is-dark { - background-color: #200117; - color: #fff; -} - - .hero.is-dark a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-dark strong { - color: inherit; - } - - .hero.is-dark .title { - color: #fff; - } - - .hero.is-dark .subtitle { - color: rgba(255, 255, 255, 0.9); - } - - .hero.is-dark .subtitle a:not(.button), - .hero.is-dark .subtitle strong { - color: #fff; - } - -@media screen and (max-width: 1023px) { - .hero.is-dark .navbar-menu { - background-color: #200117; - } -} - -.hero.is-dark .navbar-item, -.hero.is-dark .navbar-link { - color: rgba(255, 255, 255, 0.7); -} - - .hero.is-dark a.navbar-item:hover, .hero.is-dark a.navbar-item.is-active, .hero.is-dark .navbar-item.active, - .hero.is-dark .navbar-link:hover, - .hero.is-dark .navbar-link.is-active, - .hero.is-dark .navbar-link.active { - background-color: #070005; - color: #fff; - } - -.hero.is-dark .tabs a { - color: #fff; - opacity: 0.9; -} - - .hero.is-dark .tabs a:hover { - opacity: 1; - } - -.hero.is-dark .tabs li.is-active a, .hero.is-dark .tabs li.active a { - opacity: 1; -} - -.hero.is-dark .tabs.is-boxed a, .hero.is-dark .tabs.is-toggle a { - color: #fff; -} - - .hero.is-dark .tabs.is-boxed a:hover, .hero.is-dark .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-dark .tabs.is-boxed li.is-active a, .hero.is-dark .tabs.is-boxed li.active a, .hero.is-dark .tabs.is-boxed li.is-active a:hover, .hero.is-dark .tabs.is-toggle li.is-active a, .hero.is-dark .tabs.is-toggle li.active a, .hero.is-dark .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #200117; -} - -.hero.is-dark.is-bold { - background-image: -o-linear-gradient(309deg, black 0%, #200117 71%, #3a0020 100%); - background-image: linear-gradient(141deg, black 0%, #200117 71%, #3a0020 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-dark.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, black 0%, #200117 71%, #3a0020 100%); - background-image: linear-gradient(141deg, black 0%, #200117 71%, #3a0020 100%); - } -} - -.hero.is-primary { - background-color: #A00975; - color: #fff; -} - - .hero.is-primary a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-primary strong { - color: inherit; - } - - .hero.is-primary .title { - color: #fff; - } - - .hero.is-primary .subtitle { - color: rgba(255, 255, 255, 0.9); - } - - .hero.is-primary .subtitle a:not(.button), - .hero.is-primary .subtitle strong { - color: #fff; - } - -@media screen and (max-width: 1023px) { - .hero.is-primary .navbar-menu { - background-color: #A00975; - } -} - -.hero.is-primary .navbar-item, -.hero.is-primary .navbar-link { - color: rgba(255, 255, 255, 0.7); -} - - .hero.is-primary a.navbar-item:hover, .hero.is-primary a.navbar-item.is-active, .hero.is-primary .navbar-item.active, - .hero.is-primary .navbar-link:hover, - .hero.is-primary .navbar-link.is-active, - .hero.is-primary .navbar-link.active { - background-color: #880863; - color: #fff; - } - -.hero.is-primary .tabs a { - color: #fff; - opacity: 0.9; -} - - .hero.is-primary .tabs a:hover { - opacity: 1; - } - -.hero.is-primary .tabs li.is-active a, .hero.is-primary .tabs li.active a { - opacity: 1; -} - -.hero.is-primary .tabs.is-boxed a, .hero.is-primary .tabs.is-toggle a { - color: #fff; -} - - .hero.is-primary .tabs.is-boxed a:hover, .hero.is-primary .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-primary .tabs.is-boxed li.is-active a, .hero.is-primary .tabs.is-boxed li.active a, .hero.is-primary .tabs.is-boxed li.is-active a:hover, .hero.is-primary .tabs.is-toggle li.is-active a, .hero.is-primary .tabs.is-toggle li.active a, .hero.is-primary .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #A00975; -} - -.hero.is-primary.is-bold { - background-image: -o-linear-gradient(309deg, #760068 0%, #A00975 71%, #bd056a 100%); - background-image: linear-gradient(141deg, #760068 0%, #A00975 71%, #bd056a 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-primary.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #760068 0%, #A00975 71%, #bd056a 100%); - background-image: linear-gradient(141deg, #760068 0%, #A00975 71%, #bd056a 100%); - } -} - -.hero.is-link { - background-color: #378BBA; - color: #fff; -} - - .hero.is-link a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-link strong { - color: inherit; - } - - .hero.is-link .title { - color: #fff; - } - - .hero.is-link .subtitle { - color: rgba(255, 255, 255, 0.9); - } - - .hero.is-link .subtitle a:not(.button), - .hero.is-link .subtitle strong { - color: #fff; - } - -@media screen and (max-width: 1023px) { - .hero.is-link .navbar-menu { - background-color: #378BBA; - } -} - -.hero.is-link .navbar-item, -.hero.is-link .navbar-link { - color: rgba(255, 255, 255, 0.7); -} - - .hero.is-link a.navbar-item:hover, .hero.is-link a.navbar-item.is-active, .hero.is-link .navbar-item.active, - .hero.is-link .navbar-link:hover, - .hero.is-link .navbar-link.is-active, - .hero.is-link .navbar-link.active { - background-color: #317ca6; - color: #fff; - } - -.hero.is-link .tabs a { - color: #fff; - opacity: 0.9; -} - - .hero.is-link .tabs a:hover { - opacity: 1; - } - -.hero.is-link .tabs li.is-active a, .hero.is-link .tabs li.active a { - opacity: 1; -} - -.hero.is-link .tabs.is-boxed a, .hero.is-link .tabs.is-toggle a { - color: #fff; -} - - .hero.is-link .tabs.is-boxed a:hover, .hero.is-link .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-link .tabs.is-boxed li.is-active a, .hero.is-link .tabs.is-boxed li.active a, .hero.is-link .tabs.is-boxed li.is-active a:hover, .hero.is-link .tabs.is-toggle li.is-active a, .hero.is-link .tabs.is-toggle li.active a, .hero.is-link .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #378BBA; -} - -.hero.is-link.is-bold { - background-image: -o-linear-gradient(309deg, #22859c 0%, #378BBA 71%, #3d82ce 100%); - background-image: linear-gradient(141deg, #22859c 0%, #378BBA 71%, #3d82ce 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-link.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #22859c 0%, #378BBA 71%, #3d82ce 100%); - background-image: linear-gradient(141deg, #22859c 0%, #378BBA 71%, #3d82ce 100%); - } -} - -.hero.is-info { - background-color: #3298dc; - color: #fff; -} - - .hero.is-info a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-info strong { - color: inherit; - } - - .hero.is-info .title { - color: #fff; - } - - .hero.is-info .subtitle { - color: rgba(255, 255, 255, 0.9); - } - - .hero.is-info .subtitle a:not(.button), - .hero.is-info .subtitle strong { - color: #fff; - } - -@media screen and (max-width: 1023px) { - .hero.is-info .navbar-menu { - background-color: #3298dc; - } -} - -.hero.is-info .navbar-item, -.hero.is-info .navbar-link { - color: rgba(255, 255, 255, 0.7); -} - - .hero.is-info a.navbar-item:hover, .hero.is-info a.navbar-item.is-active, .hero.is-info .navbar-item.active, - .hero.is-info .navbar-link:hover, - .hero.is-info .navbar-link.is-active, - .hero.is-info .navbar-link.active { - background-color: #238cd1; - color: #fff; - } - -.hero.is-info .tabs a { - color: #fff; - opacity: 0.9; -} - - .hero.is-info .tabs a:hover { - opacity: 1; - } - -.hero.is-info .tabs li.is-active a, .hero.is-info .tabs li.active a { - opacity: 1; -} - -.hero.is-info .tabs.is-boxed a, .hero.is-info .tabs.is-toggle a { - color: #fff; -} - - .hero.is-info .tabs.is-boxed a:hover, .hero.is-info .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-info .tabs.is-boxed li.is-active a, .hero.is-info .tabs.is-boxed li.active a, .hero.is-info .tabs.is-boxed li.is-active a:hover, .hero.is-info .tabs.is-toggle li.is-active a, .hero.is-info .tabs.is-toggle li.active a, .hero.is-info .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #3298dc; -} - -.hero.is-info.is-bold { - background-image: -o-linear-gradient(309deg, #159dc6 0%, #3298dc 71%, #4389e5 100%); - background-image: linear-gradient(141deg, #159dc6 0%, #3298dc 71%, #4389e5 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-info.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #159dc6 0%, #3298dc 71%, #4389e5 100%); - background-image: linear-gradient(141deg, #159dc6 0%, #3298dc 71%, #4389e5 100%); - } -} - -.hero.is-success { - background-color: #48c774; - color: #fff; -} - - .hero.is-success a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-success strong { - color: inherit; - } - - .hero.is-success .title { - color: #fff; - } - - .hero.is-success .subtitle { - color: rgba(255, 255, 255, 0.9); - } - - .hero.is-success .subtitle a:not(.button), - .hero.is-success .subtitle strong { - color: #fff; - } - -@media screen and (max-width: 1023px) { - .hero.is-success .navbar-menu { - background-color: #48c774; - } -} - -.hero.is-success .navbar-item, -.hero.is-success .navbar-link { - color: rgba(255, 255, 255, 0.7); -} - - .hero.is-success a.navbar-item:hover, .hero.is-success a.navbar-item.is-active, .hero.is-success .navbar-item.active, - .hero.is-success .navbar-link:hover, - .hero.is-success .navbar-link.is-active, - .hero.is-success .navbar-link.active { - background-color: #3abb67; - color: #fff; - } - -.hero.is-success .tabs a { - color: #fff; - opacity: 0.9; -} - - .hero.is-success .tabs a:hover { - opacity: 1; - } - -.hero.is-success .tabs li.is-active a, .hero.is-success .tabs li.active a { - opacity: 1; -} - -.hero.is-success .tabs.is-boxed a, .hero.is-success .tabs.is-toggle a { - color: #fff; -} - - .hero.is-success .tabs.is-boxed a:hover, .hero.is-success .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-success .tabs.is-boxed li.is-active a, .hero.is-success .tabs.is-boxed li.active a, .hero.is-success .tabs.is-boxed li.is-active a:hover, .hero.is-success .tabs.is-toggle li.is-active a, .hero.is-success .tabs.is-toggle li.active a, .hero.is-success .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #48c774; -} - -.hero.is-success.is-bold { - background-image: -o-linear-gradient(309deg, #29b342 0%, #48c774 71%, #56d296 100%); - background-image: linear-gradient(141deg, #29b342 0%, #48c774 71%, #56d296 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-success.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #29b342 0%, #48c774 71%, #56d296 100%); - background-image: linear-gradient(141deg, #29b342 0%, #48c774 71%, #56d296 100%); - } -} - -.hero.is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); -} - - .hero.is-warning a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-warning strong { - color: inherit; - } - - .hero.is-warning .title { - color: rgba(0, 0, 0, 0.7); - } - - .hero.is-warning .subtitle { - color: rgba(0, 0, 0, 0.9); - } - - .hero.is-warning .subtitle a:not(.button), - .hero.is-warning .subtitle strong { - color: rgba(0, 0, 0, 0.7); - } - -@media screen and (max-width: 1023px) { - .hero.is-warning .navbar-menu { - background-color: #ffdd57; - } -} - -.hero.is-warning .navbar-item, -.hero.is-warning .navbar-link { - color: rgba(0, 0, 0, 0.7); -} - - .hero.is-warning a.navbar-item:hover, .hero.is-warning a.navbar-item.is-active, .hero.is-warning .navbar-item.active, - .hero.is-warning .navbar-link:hover, - .hero.is-warning .navbar-link.is-active, - .hero.is-warning .navbar-link.active { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); - } - -.hero.is-warning .tabs a { - color: rgba(0, 0, 0, 0.7); - opacity: 0.9; -} - - .hero.is-warning .tabs a:hover { - opacity: 1; - } - -.hero.is-warning .tabs li.is-active a, .hero.is-warning .tabs li.active a { - opacity: 1; -} - -.hero.is-warning .tabs.is-boxed a, .hero.is-warning .tabs.is-toggle a { - color: rgba(0, 0, 0, 0.7); -} - - .hero.is-warning .tabs.is-boxed a:hover, .hero.is-warning .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-warning .tabs.is-boxed li.is-active a, .hero.is-warning .tabs.is-boxed li.active a, .hero.is-warning .tabs.is-boxed li.is-active a:hover, .hero.is-warning .tabs.is-toggle li.is-active a, .hero.is-warning .tabs.is-toggle li.active a, .hero.is-warning .tabs.is-toggle li.is-active a:hover { - background-color: rgba(0, 0, 0, 0.7); - border-color: rgba(0, 0, 0, 0.7); - color: #ffdd57; -} - -.hero.is-warning.is-bold { - background-image: -o-linear-gradient(309deg, #ffaf24 0%, #ffdd57 71%, #fffa70 100%); - background-image: linear-gradient(141deg, #ffaf24 0%, #ffdd57 71%, #fffa70 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-warning.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #ffaf24 0%, #ffdd57 71%, #fffa70 100%); - background-image: linear-gradient(141deg, #ffaf24 0%, #ffdd57 71%, #fffa70 100%); - } -} - -.hero.is-danger { - background-color: #f14668; - color: #fff; -} - - .hero.is-danger a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), - .hero.is-danger strong { - color: inherit; - } - - .hero.is-danger .title { - color: #fff; - } - - .hero.is-danger .subtitle { - color: rgba(255, 255, 255, 0.9); - } - - .hero.is-danger .subtitle a:not(.button), - .hero.is-danger .subtitle strong { - color: #fff; - } - -@media screen and (max-width: 1023px) { - .hero.is-danger .navbar-menu { - background-color: #f14668; - } -} - -.hero.is-danger .navbar-item, -.hero.is-danger .navbar-link { - color: rgba(255, 255, 255, 0.7); -} - - .hero.is-danger a.navbar-item:hover, .hero.is-danger a.navbar-item.is-active, .hero.is-danger .navbar-item.active, - .hero.is-danger .navbar-link:hover, - .hero.is-danger .navbar-link.is-active, - .hero.is-danger .navbar-link.active { - background-color: #ef2e55; - color: #fff; - } - -.hero.is-danger .tabs a { - color: #fff; - opacity: 0.9; -} - - .hero.is-danger .tabs a:hover { - opacity: 1; - } - -.hero.is-danger .tabs li.is-active a, .hero.is-danger .tabs li.active a { - opacity: 1; -} - -.hero.is-danger .tabs.is-boxed a, .hero.is-danger .tabs.is-toggle a { - color: #fff; -} - - .hero.is-danger .tabs.is-boxed a:hover, .hero.is-danger .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); - } - -.hero.is-danger .tabs.is-boxed li.is-active a, .hero.is-danger .tabs.is-boxed li.active a, .hero.is-danger .tabs.is-boxed li.is-active a:hover, .hero.is-danger .tabs.is-toggle li.is-active a, .hero.is-danger .tabs.is-toggle li.active a, .hero.is-danger .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #f14668; -} - -.hero.is-danger.is-bold { - background-image: -o-linear-gradient(309deg, #fa0a62 0%, #f14668 71%, #f7595f 100%); - background-image: linear-gradient(141deg, #fa0a62 0%, #f14668 71%, #f7595f 100%); -} - -@media screen and (max-width: 768px) { - .hero.is-danger.is-bold .navbar-menu { - background-image: -o-linear-gradient(309deg, #fa0a62 0%, #f14668 71%, #f7595f 100%); - background-image: linear-gradient(141deg, #fa0a62 0%, #f14668 71%, #f7595f 100%); - } -} - -.hero.is-small .hero-body { - padding: 1.5rem; -} - -@media screen and (min-width: 769px), print { - .hero.is-medium .hero-body { - padding: 9rem 1.5rem; - } -} - -@media screen and (min-width: 769px), print { - .hero.is-large .hero-body { - padding: 18rem 1.5rem; - } -} - -.hero.is-halfheight .hero-body, .hero.is-fullheight .hero-body, .hero.is-fullheight-with-navbar .hero-body { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} - - .hero.is-halfheight .hero-body > .container, .hero.is-fullheight .hero-body > .container, .hero.is-fullheight-with-navbar .hero-body > .container { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 1; - flex-shrink: 1; - } - -.hero.is-halfheight { - min-height: 50vh; -} - -.hero.is-fullheight { - min-height: 100vh; -} - -.hero-video { - overflow: hidden; -} - - .hero-video video { - left: 50%; - min-height: 100%; - min-width: 100%; - position: absolute; - top: 50%; - -webkit-transform: translate3d(-50%, -50%, 0); - transform: translate3d(-50%, -50%, 0); - } - - .hero-video.is-transparent { - opacity: 0.3; - } - -@media screen and (max-width: 768px) { - .hero-video { - display: none; - } -} - -.hero-buttons { - margin-top: 1.5rem; -} - -@media screen and (max-width: 768px) { - .hero-buttons .button { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - } - - .hero-buttons .button:not(:last-child) { - margin-bottom: 0.75rem; - } -} - -@media screen and (min-width: 769px), print { - .hero-buttons { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - - .hero-buttons .button:not(:last-child) { - margin-right: 1.5rem; - } -} - -.hero-head, -.hero-foot { - -webkit-box-flex: 0; - -ms-flex-positive: 0; - flex-grow: 0; - -ms-flex-negative: 0; - flex-shrink: 0; -} - -.hero-body { - -webkit-box-flex: 1; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-negative: 0; - flex-shrink: 0; - padding: 3rem 1.5rem; -} - -.section { - padding: 3rem 1.5rem; -} - -@media screen and (min-width: 1024px) { - .section.is-medium { - padding: 9rem 1.5rem; - } - - .section.is-large { - padding: 18rem 1.5rem; - } -} - -.footer { - background-color: #fafafa; - padding: 3rem 1.5rem 6rem; -} - -#fsdocs-searchbox { - margin: 0 auto; -} - -@media screen and (min-width: 768px) { - #fsdocs-menu { - border-right: 1px solid #200117; - position: sticky; - display: inline-block; - vertical-align: top; - height: 100vh; - top: 0; - bottom: 0; - overflow-y: auto; - background-color: whitesmoke; - } -} - -@media screen and (max-width: 768px) { - #fsdocs-menu { - background-color: #ededed; - } - - #fsdocs-menu #fsdocs-menu { - border: none; - } -} - -.nav-header { - border-bottom: 1px dashed #A00975; - list-style: none; - color: #A00975; -} - -#fsdocs-content h1 a, #fsdocs-content h1 a:hover, #fsdocs-content h1 a:focus, -#fsdocs-content h2 a, #fsdocs-content h2 a:hover, #fsdocs-content h2 a:focus, -#fsdocs-content h3 a, #fsdocs-content h3 a:hover, #fsdocs-content h3 a:focus, -#fsdocs-content h4 a, #fsdocs-content h4 a:hover, #fsdocs-content h4 a:focus, -#fsdocs-content h5 a, #fsdocs-content h5 a:hover, #fsdocs-content h5 a:focus, -#fsdocs-content h6 a, #fsdocs-content h6 a:hover, #fsdocs-content h6 a:focus { - color: #A00975; -} - -#fsdocs-content h1 a { - border-bottom: 8px solid #200117; -} - -#fsdocs-content h2 a { - border-bottom: 5px solid #200117; -} - -#fsdocs-content h3 a, -#fsdocs-content h4 a { - border-bottom: 2px solid #200117; -} - -#fsdocs-content h5 a, -#fsdocs-content h6 a { - border-bottom: 1px solid #200117; -} - -#fsdocs-content li { - margin: initial; -} - -strong { - border-bottom: 2px solid #A00975; -} - -em { - color: #A00975; -} - -#fsdocs-content ul { - -webkit-padding-start: 40px; - padding-inline-start: 40px; - list-style-type: disc; -} - -#fsdocs-content ol { - -webkit-padding-start: 40px; - padding-inline-start: 40px; - list-style-type: decimal; -} - -#fsdocs-content blockquote { - display: block; - -webkit-margin-before: 1em; - margin-block-start: 1em; - -webkit-margin-after: 1em; - margin-block-end: 1em; - -webkit-margin-start: 40px; - margin-inline-start: 40px; - -webkit-margin-end: 40px; - margin-inline-end: 40px; - background-color: whitesmoke; - border-left: 4px solid #A00975; -} - -#fsdocs-content table.pre, #fsdocs-content pre.fssnip, #fsdocs-content pre { - background-color: #200117 !important; - color: #fafafa !important; - overflow-x: auto; - display: block; - font-weight: initial; -} - - #fsdocs-content pre.fssnip code { - font: 0.85rem 'Roboto Mono', monospace; - font-weight: initial; - } - -#fsdocs-menu::-webkit-scrollbar { - width: 1px; -} - -#fsdocs-menu::-webkit-scrollbar-thumb { - border-radius: 5px; - background-color: #200117; -} - -#fsdocs-content table.pre::-webkit-scrollbar-track, -#fsdocs-content pre.fssnip ::-webkit-scrollbar-track, -#fsdocs-content pre ::-webkit-scrollbar-track { - box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); - -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); - border-radius: 5px; - background-color: #200117; -} - -#fsdocs-content table.pre::-webkit-scrollbar, -#fsdocs-content pre.fssnip ::-webkit-scrollbar, -#fsdocs-content pre ::-webkit-scrollbar { - height: 8px; - background-color: #200117; - border-radius: 5px; -} - -#fsdocs-content table.pre::-webkit-scrollbar-thumb, -#fsdocs-content pre.fssnip ::-webkit-scrollbar-thumb, -#fsdocs-content pre ::-webkit-scrollbar-thumb { - border-radius: 5px; - box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); - -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); - background-color: #A00975; -} - -/*-------------------------------------------------------------------------- - Formatting for F# code snippets -/*--------------------------------------------------------------------------*/ -.fsdocs-param-name, -.fsdocs-return-name, -.fsdocs-param { - font-weight: 900; - font-size: 0.85rem; - font-family: 'Roboto Mono', monospace; -} - -/* strings --- and stlyes for other string related formats */ -#fsdocs-content span.s { - color: #d59a1b; -} - -/* printf formatters */ -#fsdocs-content span.pf { - color: #A00975; -} - -/* escaped chars */ -#fsdocs-content span.e { - color: #d59a1b; -} - -/* identifiers --- and styles for more specific identifier types */ -#fsdocs-content span.id { - color: #fafafa; -} - -/* module */ -#fsdocs-content span.m { - color: #44d57f; -} - -/* reference type */ -#fsdocs-content span.rt { - color: #44d57f; -} - -/* value type */ -#fsdocs-content span.vt { - color: #44d57f; -} - -/* interface */ -#fsdocs-content span.if { - color: #44d57f; -} - -/* type argument */ -#fsdocs-content span.ta { - color: #44d57f; -} - -/* disposable */ -#fsdocs-content span.d { - color: #c6ffdd; -} - -/* property */ -#fsdocs-content span.prop { - color: #fafafa; -} - -/* punctuation */ -#fsdocs-content span.p { - color: #fafafa; -} - -#fsdocs-content span.pn { - color: #fafafa; -} - -#fsdocs-content span.f { - color: #fafafa; -} - -#fsdocs-content span.fn { - color: #d2c572; -} - -/* active pattern */ -#fsdocs-content span.pat { - color: #438AFE; -} - -/* union case */ -#fsdocs-content span.u { - color: #44d57f; -} - -/* enumeration */ -#fsdocs-content span.e { - color: #44d57f; -} - -/* keywords */ -#fsdocs-content span.k { - color: #F99BDE; -} - -/* comment */ -#fsdocs-content span.c { - color: #6A9955; -} - -#fsdocs-content span.o { - color: #D12F67; -} - -/* numbers */ -#fsdocs-content span.n { - color: #c6ffdd; -} - -/* line number */ -#fsdocs-content span.l { - color: #fafafa; -} - -/* mutable var or ref cell */ -#fsdocs-content span.v { - color: #d2c572; - font-weight: bold; -} - -/* inactive code */ -#fsdocs-content span.inactive { - color: #808080; -} - -/* preprocessor */ -#fsdocs-content span.prep { - color: #ff9b9b; -} - -/* fsi output */ -#fsdocs-content span.fsi { - color: #fafafa; -} - -/* tool tip */ -div.fsdocs-tip { - background: #475b5f; - border-radius: 4px; - font: 11pt 'Droid Sans', arial, sans-serif; - padding: 6px 8px 6px 8px; - display: none; - color: #d1d1d1; - pointer-events: none; -} - - div.fsdocs-tip code { - color: #d1d1d1; - font: 11pt 'Droid Sans', arial, sans-serif; - } - - div.fsdocs-tip em { - color: #6A9955; - } - -/*# sourceMappingURL=C:\Users\schne\source\repos\fslaborg\docs-template\Content\docs\content\fsdocs-custom.css.map */ diff --git a/docs/content/fsdocs-theme.css b/docs/content/fsdocs-theme.css new file mode 100644 index 000000000..9f578a15a --- /dev/null +++ b/docs/content/fsdocs-theme.css @@ -0,0 +1,18 @@ +:root { + /* fslab colors */ + --fslab-magenta: #A00975; + --fslab-magenta-light: #F99BDE; + --fslab-magenta-dark: #3D1244; + --fslab-magenta-darkest: #200117;; + --fslab-blue: #438AFE; + --fslab-yellow: #FABC2A; + + /* theme customization */ + --heading-color: var(--fslab-magenta-dark); + --link-color: var(--fslab-blue); + --link-hover: var(--fslab-magenta); + /* dark theme */ +} +[data-theme=dark] { + --heading-color: var(--fslab-magenta-light); +} \ No newline at end of file diff --git a/docs/distribution-charts/2d-histograms.fsx b/docs/distribution-charts/2d-histograms.fsx index dfc7a0530..6f4e113a8 100644 --- a/docs/distribution-charts/2d-histograms.fsx +++ b/docs/distribution-charts/2d-histograms.fsx @@ -66,7 +66,7 @@ A Histogram2D chart can be created using the `Chart.Histogram2D` or `Chart.Histo *) let histogramContour = - Chart.Histogram2DContour(x = x, y = y, ContourLine = Line.init (Width = 0.)) + Chart.Histogram2DContour(x = x, y = y, ContourLines = Line.init (Width = 0.)) (*** condition: ipynb ***) #if IPYNB diff --git a/docs/distribution-charts/contour-plots.fsx b/docs/distribution-charts/contour-plots.fsx index 0a1bd773b..e092e11b9 100644 --- a/docs/distribution-charts/contour-plots.fsx +++ b/docs/distribution-charts/contour-plots.fsx @@ -105,8 +105,8 @@ let contour3 = Chart.Contour( zData = z, ContoursColoring = StyleParam.ContourColoring.Heatmap, - ShowContourLabels = true, - ContourLabelFont = Font.init (Size = 12., Color = Color.fromKeyword White) + ShowContoursLabels = true, + ContoursLabelFont = Font.init (Size = 12., Color = Color.fromKeyword White) ) (*** condition: ipynb ***) diff --git a/docs/distribution-charts/point-density.fsx b/docs/distribution-charts/point-density.fsx index e0a66bb6a..b013efbcf 100644 --- a/docs/distribution-charts/point-density.fsx +++ b/docs/distribution-charts/point-density.fsx @@ -74,7 +74,7 @@ let pointDensityChartStyled = PointMarkerSize = 4, ColorScale = StyleParam.Colorscale.Viridis, ColorBar = ColorBar.init (Title = Title.init ("Density")), - ShowContourLabels = true + ShowContoursLabels = true ) (*** condition: ipynb ***) diff --git a/docs/index.fsx b/docs/index.fsx index f2e129ba5..c78a266be 100644 --- a/docs/index.fsx +++ b/docs/index.fsx @@ -290,25 +290,25 @@ double[] x = new double[] { 1, 2 }; double[] y = new double[] { 5, 10 }; LinearAxis xAxis = new LinearAxis(); -xAxis.SetValue("title", "xAxis"); -xAxis.SetValue("showgrid", false); -xAxis.SetValue("showline", true); +xAxis.SetProperty("title", "xAxis"); +xAxis.SetProperty("showgrid", false); +xAxis.SetProperty("showline", true); LinearAxis yAxis = new LinearAxis(); -yAxis.SetValue("title", "yAxis"); -yAxis.SetValue("showgrid", false); -yAxis.SetValue("showline", true); +yAxis.SetProperty("title", "yAxis"); +yAxis.SetProperty("showgrid", false); +yAxis.SetProperty("showline", true); Layout layout = new Layout(); -layout.SetValue("xaxis", xAxis); -layout.SetValue("yaxis", yAxis); -layout.SetValue("showlegend", true); +layout.SetProperty("xaxis", xAxis); +layout.SetProperty("yaxis", yAxis); +layout.SetProperty("showlegend", true); Trace trace = new Trace("scatter"); -trace.SetValue("x", x); -trace.SetValue("y", y); -trace.SetValue("mode", "markers"); -trace.SetValue("name", "Hello from C#"); +trace.SetProperty("x", x); +trace.SetProperty("y", y); +trace.SetProperty("mode", "markers"); +trace.SetProperty("name", "Hello from C#"); GenericChart .ofTraceObject(true, trace) diff --git a/docs/reference/_template.html b/docs/reference/_template.html deleted file mode 100644 index eb30bbc2b..000000000 --- a/docs/reference/_template.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - {{fsdocs-page-title}} - - - - - - - - - - - - - - - - {{fsdocs-watch-script}} - - - -
-
- -
-
-
-
- {{fsdocs-content}} -
-
-
- {{fsdocs-tooltips}} -
- - - - - - - - - - - \ No newline at end of file diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart.cs index 13db2dac3..050f20fd7 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart.cs @@ -10,11 +10,22 @@ namespace Plotly.NET.CSharp { + /// + /// + /// public static partial class Chart { - public static GenericChart Combine(IEnumerable gCharts) => Plotly.NET.Chart.Combine(gCharts); - + /// + /// Create a combined chart with the given charts merged + /// + /// the charts to combine + /// + public static GenericChart Combine(IEnumerable gCharts) => Plotly.NET.Chart.combine(gCharts); + /// + /// Creates a chart that is completely invisible when rendered. The Chart object however is NOT empty! Combining this chart with other charts will have unforseen consequences (it has for example invisible axes that can override other axes if used in Chart.Combine) + /// + /// public static GenericChart Invisible() => Plotly.NET.Chart.Invisible(); /// @@ -71,5 +82,54 @@ public static GenericChart Grid( XSide: XSide.ToOption(), YSide: YSide.ToOption() ).Invoke(gCharts); + + /// + /// Creates a chart stack (a subplot grid with one column) from the input charts. + /// + /// The charts to display. + /// A collection of titles for the individual subplots. + /// The font of the subplot titles + /// A vertical offset applied to each subplot title, moving it upwards if positive and vice versa + /// Used for freeform grids, where some axes may be shared across subplots but others are not. Each entry should be a cartesian subplot id, like "xy" or "x3y2", or "" to leave that cell empty. You may reuse x axes within the same column, and y axes within the same row. Non-cartesian subplots and traces that support `domain` can place themselves in this grid separately using the `gridcell` attribute. + /// Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an y axis id like "y", "y2", etc., or "" to not put a y axis in that row. Entries other than "" must be unique. Ignored if `subplots` is present. If missing but `xaxes` is present, will generate consecutive IDs. + /// Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an x axis id like "x", "x2", etc., or "" to not put an x axis in that column. Entries other than "" must be unique. Ignored if `subplots` is present. If missing but `yaxes` is present, will generate consecutive IDs. + /// Is the first row the top or the bottom? Note that columns are always enumerated from left to right. + /// If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`, we can generate defaults using consecutive axis IDs, in two ways: "coupled" gives one x axis per column and one y axis per row. "independent" uses a new xy pair for each cell, left-to-right across each row then iterating rows according to `roworder`. + /// Horizontal space between grid cells, expressed as a fraction of the total width available to one cell. Defaults to 0.1 for coupled-axes grids and 0.2 for independent grids. + /// Vertical space between grid cells, expressed as a fraction of the total height available to one cell. Defaults to 0.1 for coupled-axes grids and 0.3 for independent grids. + /// Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges. + /// Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar. + /// Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar. + public static GenericChart SingleStack( + IEnumerable gCharts, + Optional> SubPlotTitles = default, + Optional SubPlotTitleFont = default, + Optional SubPlotTitleOffset = default, + Optional[][]> SubPlots = default, + Optional XAxes = default, + Optional YAxes = default, + Optional RowOrder = default, + Optional Pattern = default, + Optional XGap = default, + Optional YGap = default, + Optional Domain = default, + Optional XSide = default, + Optional YSide = default + ) => + Plotly.NET.Chart.SingleStack, IEnumerable>( + SubPlotTitles: SubPlotTitles.ToOption(), + SubPlotTitleFont: SubPlotTitleFont.ToOption(), + SubPlotTitleOffset: SubPlotTitleOffset.ToOption(), + SubPlots: SubPlots.ToOption(), + XAxes: XAxes.ToOption(), + YAxes: YAxes.ToOption(), + RowOrder: RowOrder.ToOption(), + Pattern: Pattern.ToOption(), + XGap: XGap.ToOption(), + YGap: YGap.ToOption(), + Domain: Domain.ToOption(), + XSide: XSide.ToOption(), + YSide: YSide.ToOption() + ).Invoke(gCharts); } } diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs index 7c7145718..f5d9f0e69 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs @@ -7,6 +7,7 @@ using Plotly.NET.LayoutObjects; using Plotly.NET.TraceObjects; using System.Runtime.InteropServices; +using static Plotly.NET.StyleParam; namespace Plotly.NET.CSharp { @@ -15,7 +16,7 @@ public static partial class Chart /// /// Creates a Scatter plot. /// - /// Scatter charts are the basis of Point, Line, and Bubble Charts, and can be customized as such. We also provide abstractions for those Chart.Line, Chart.Point, Chart.Bubble + /// Scatter charts are the basis of Point, Line, and Bubble Charts, and can be customized as such. We also provide abstractions for those: Chart.Line, Chart.Point, Chart.Bubble /// /// Sets the x coordinates of the plotted data. /// Sets the y coordinates of the plotted data. @@ -39,11 +40,14 @@ public static partial class Chart /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the pattern within the marker. /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Scatter( @@ -69,11 +73,14 @@ public static GenericChart Scatter( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional Fill = default, Optional FillColor = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -104,11 +111,14 @@ public static GenericChart Scatter( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), Fill: Fill.ToOption(), FillColor: FillColor.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -132,6 +142,8 @@ public static GenericChart Scatter( /// Sets the marker symbol for each datum /// Sets the marker symbol for each individual datum /// Sets the marker (use this for more finegrained control than the other marker-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used @@ -154,6 +166,8 @@ public static GenericChart Point( Optional MarkerSymbol = default, Optional> MultiMarkerSymbol = default, Optional Marker = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, @@ -181,6 +195,8 @@ public static GenericChart Point( MarkerSymbol: MarkerSymbol.ToOption(), MultiMarkerSymbol: MultiMarkerSymbol.ToOption(), Marker: Marker.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), @@ -211,11 +227,14 @@ public static GenericChart Point( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the pattern within the marker. /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Line( @@ -241,11 +260,14 @@ public static GenericChart Line( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional Fill = default, Optional FillColor = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -276,11 +298,14 @@ public static GenericChart Line( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), Fill: Fill.ToOption(), FillColor: FillColor.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -310,11 +335,14 @@ public static GenericChart Line( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the pattern within the marker. /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Spline( @@ -341,11 +369,14 @@ public static GenericChart Spline( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional Fill = default, Optional FillColor = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -377,11 +408,14 @@ public static GenericChart Spline( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), Fill: Fill.ToOption(), FillColor: FillColor.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -409,6 +443,8 @@ public static GenericChart Spline( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used @@ -437,6 +473,8 @@ public static GenericChart Bubble( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, @@ -470,12 +508,15 @@ public static GenericChart Bubble( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); + /// /// Displays a range of data by plotting three Y values per data point (upper, mid, lower). /// @@ -506,6 +547,7 @@ public static GenericChart Bubble( /// sets the drawing style of the line for the mid Y values. /// Sets the line (use this for more finegrained control than the other line-associated arguments) for the mid Y values. /// Sets the color of the range between upper and lower Y values. + /// Sets the pattern of the range between upper and lower Y values. /// Sets a text associated with each datum for the upper Y values. /// Sets individual text for each datum for the upper Y values. /// Sets a text associated with each datum for the lower Y values. @@ -547,7 +589,8 @@ public static GenericChart Range( Optional Line = default, Optional UpperLine = default, Optional LowerLine = default, - Optional RangeColor = default, + Optional RangeColor = default, + Optional RangePattern = default, Optional UpperText = default, Optional> MultiUpperText = default, Optional LowerText = default, @@ -591,6 +634,7 @@ public static GenericChart Range( UpperLine: UpperLine.ToOption(), LowerLine: LowerLine.ToOption(), RangeColor: RangeColor.ToOption(), + RangePattern: RangePattern.ToOption(), UpperText: UpperText.ToOption(), MultiUpperText: MultiUpperText.ToOption(), LowerText: LowerText.ToOption(), @@ -666,10 +710,14 @@ IEnumerable labels /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets a pattern shape for the area fill + /// Sets the pattern within the area. (use this for more finegrained control than the other fillpattern-associated arguments). /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Area( @@ -694,11 +742,15 @@ public static GenericChart Area( Optional LineColorScale = default, Optional LineWidth = default, Optional LineDash = default, - Optional Line = default, + Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, - Optional FillColor = default, + Optional FillColor = default, + Optional FillPatternShape = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -729,10 +781,14 @@ public static GenericChart Area( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), FillColor: FillColor.ToOption(), + FillPatternShape: FillPatternShape.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -761,10 +817,14 @@ public static GenericChart Area( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets a pattern shape for the area fill + /// Sets the pattern within the area. (use this for more finegrained control than the other fillpattern-associated arguments). /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart SplineArea( @@ -791,10 +851,14 @@ public static GenericChart SplineArea( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional FillColor = default, + Optional FillPatternShape = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -826,10 +890,14 @@ public static GenericChart SplineArea( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), FillColor: FillColor.ToOption(), + FillPatternShape: FillPatternShape.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -860,6 +928,8 @@ public static GenericChart SplineArea( /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets a pattern shape for the area fill + /// Sets the pattern within the area. (use this for more finegrained control than the other fillpattern-associated arguments). /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart StackedArea( @@ -888,6 +958,8 @@ public static GenericChart StackedArea( Optional Orientation = default, Optional GroupNorm = default, Optional FillColor = default, + Optional FillPatternShape = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -921,6 +993,8 @@ public static GenericChart StackedArea( Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), FillColor: FillColor.ToOption(), + FillPatternShape: FillPatternShape.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -1206,6 +1280,7 @@ public static GenericChart Waterfall( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1228,6 +1303,7 @@ public static GenericChart Waterfall( public static GenericChart Bar( IEnumerable values, Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1255,6 +1331,7 @@ public static GenericChart Bar( Plotly.NET.Chart2D.Chart.Bar( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1284,6 +1361,7 @@ public static GenericChart Bar( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1306,6 +1384,7 @@ public static GenericChart Bar( public static GenericChart StackedBar( IEnumerable values, Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1333,6 +1412,7 @@ public static GenericChart StackedBar( Plotly.NET.Chart2D.Chart.StackedBar( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1361,6 +1441,7 @@ public static GenericChart StackedBar( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1383,6 +1464,7 @@ public static GenericChart StackedBar( public static GenericChart Column( IEnumerable values, Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1410,6 +1492,7 @@ public static GenericChart Column( Plotly.NET.Chart2D.Chart.Column( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1431,7 +1514,6 @@ public static GenericChart Column( UseDefaults: UseDefaults.ToOption() ); - /// /// Creates a stacked column chart, with bars plotted vertically. Values with the same key are stacked on top of each other in the Y dimension. /// To create this type of chart, combine multiple of these charts via `Chart.combine`. @@ -1440,6 +1522,7 @@ public static GenericChart Column( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1461,7 +1544,8 @@ public static GenericChart Column( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart StackedColumn( IEnumerable values, - Optional> Keys = default, + Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1489,6 +1573,7 @@ public static GenericChart StackedColumn( Plotly.NET.Chart2D.Chart.StackedColumn( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1519,13 +1604,16 @@ public static GenericChart StackedColumn( /// The sample data from which statistics are computed is set in `x` for vertically spanning histograms and in `y` for horizontally spanning histograms. Binning options are set `xbins` and `ybins` respectively if no aggregation data is provided. /// /// Sets the sample data to be binned on the x axis. + /// Sets the sample data to be binned on the x axis. Use two inner arrays here to plot multicategorial data /// Sets the sample data to be binned on the y axis. + /// Sets the sample data to be binned on the y axis. Use two inner arrays here to plot multicategorial data /// Sets the orientation of the bars. With "v" ("h"), the value of the each bar spans along the vertical (horizontal). /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. /// Sets a text associated with each datum /// Sets individual text for each datum + /// Sets the position of text associated with each datum /// Specifies the binning function used for this histogram trace. If "count", the histogram values are computed by counting the number of values lying inside each bin. If "sum", "avg", "min", "max", the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. /// Specifies the type of normalization used for this histogram trace. If "", the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If "percent" / "probability", the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If "density", the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If "probability density", the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. @@ -1535,8 +1623,13 @@ public static GenericChart StackedColumn( /// Set a group of histogram traces which will have compatible bin settings. Note that traces on the same subplot and with the same "orientation" under `barmode` "stack", "relative" and "group" are forced into the same bingroup, Using `bingroup`, traces under `barmode` "overlay" and on different axes (of the same axis type) can have compatible bin settings. Note that histogram and histogram2d" trace can share the same `bingroup` /// Sets the binning across the x dimension /// Sets the binning across the y dimension - /// Sets the color of the histogram's bars. - /// Sets the marker for the histogram's bars (use this for more finegrained control than the other marker-associated arguments). + /// Sets the color of the bars + /// Sets the colorscale for the bars. To have an effect, `MarkerColor` must map to color scale values. + /// Sets the color of the bar outlines + /// Sets a pattern shape for all bars + /// Sets an individual pattern shape for each bar + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker of this trace. /// Sets the outline of the histogram's bars. /// Sets the x error of this trace. /// Sets the y error of this trace. @@ -1545,13 +1638,16 @@ public static GenericChart StackedColumn( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Histogram( Optional> X = default, + Optional>> MultiX = default, Optional> Y = default, + Optional>> MultiY = default, Optional Orientation = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, Optional Text = default, Optional> MultiText = default, + Optional TextPosition = default, Optional HistFunc = default, Optional HistNorm = default, Optional AlignmentGroup = default, @@ -1562,6 +1658,11 @@ public static GenericChart Histogram( Optional XBins = default, Optional YBins = default, Optional MarkerColor = default, + Optional MarkerColorScale = default, + Optional MarkerOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional Line = default, Optional XError = default, @@ -1576,13 +1677,16 @@ public static GenericChart Histogram( => Plotly.NET.Chart2D.Chart.Histogram( X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Orientation: Orientation.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), + TextPosition: TextPosition.ToOption(), HistFunc: HistFunc.ToOption(), HistNorm: HistNorm.ToOption(), AlignmentGroup: AlignmentGroup.ToOption(), @@ -1593,6 +1697,11 @@ public static GenericChart Histogram( XBins: XBins.ToOption(), YBins: YBins.ToOption(), MarkerColor: MarkerColor.ToOption(), + MarkerColorScale: MarkerColorScale.ToOption(), + MarkerOutline: MarkerOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), Line: Line.ToOption(), XError: XError.ToOption(), @@ -1685,7 +1794,9 @@ public static GenericChart Histogram2D( /// The sample data from which statistics are computed is set in `x` for vertically spanning boxes and in `y` for horizontally spanning boxes. /// /// Sets the x sample data or coordinates + /// Sets the x sample data or coordinates. Use two inner arrays here to plot multicategorial data /// Sets the y sample data or coordinates + /// Sets the y sample data or coordinates. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets a text associated with each datum @@ -1707,10 +1818,13 @@ public static GenericChart Histogram2D( /// Determines whether or not notches are drawn. Notches displays a confidence interval around the median. We compute the confidence interval as median +/- 1.57 " IQR / sqrt(N), where IQR is the interquartile range and N is the sample size. If two boxes' notches do not overlap there is 95% confidence their medians differ. See https://sites.google.com/site/davidsstatistics/home/notched-box-plots for more info. Defaults to "false" unless `notchwidth` or `notchspan` is set. /// Sets the width of the notches relative to the box' width. For example, with 0, the notches are as wide as the box(es). /// Sets the method used to compute the sample's Q1 and Q3 quartiles. The "linear" method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://www.amstat.org/publications/jse/v14n3/langford.html). The "exclusive" method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The "inclusive" method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. + /// Sets the upper and lower bound for the boxes quartiles means box is drawn between Q1 and Q3 SD means the box is drawn between Mean +- Standard Deviation Argument sdmultiple (default 1) to scale the box size So it could be drawn 1-stddev, 3-stddev etc /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart BoxPlot( - Optional> X = default, - Optional> Y = default, + Optional> X = default, + Optional>> MultiX = default, + Optional> Y = default, + Optional>> MultiY = default, Optional Name = default, Optional ShowLegend = default, Optional Text = default, @@ -1732,7 +1846,8 @@ public static GenericChart BoxPlot( Optional OffsetGroup = default, Optional Notched = default, Optional NotchWidth = default, - Optional QuartileMethod = default, + Optional QuartileMethod = default, + Optional SizeMode = default, Optional UseDefaults = default ) where XType : IConvertible @@ -1741,7 +1856,9 @@ public static GenericChart BoxPlot( => Plotly.NET.Chart2D.Chart.BoxPlot( X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Text: Text.ToOption(), @@ -1764,6 +1881,7 @@ public static GenericChart BoxPlot( Notched: Notched.ToOption(), NotchWidth: NotchWidth.ToOption(), QuartileMethod: QuartileMethod.ToOption(), + SizeMode: SizeMode.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -1774,8 +1892,10 @@ public static GenericChart BoxPlot( /// /// In vertical (horizontal) violin plots, statistics are computed using `y` (`x`) values. By supplying an `x` (`y`) array, one violin per distinct x (y) value is drawn If no `x` (`y`) array is provided, a single violin is drawn. That violin position is then positioned with with `name` or with `x0` (`y0`) if provided. /// - /// Sets the x sample data or coordinates. - /// Sets the y sample data or coordinates. + /// Sets the x sample data or coordinates + /// Sets the x sample data or coordinates. Use two inner arrays here to plot multicategorial data + /// Sets the y sample data or coordinates + /// Sets the y sample data or coordinates. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets a text associated with each datum @@ -1808,7 +1928,9 @@ public static GenericChart BoxPlot( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Violin( Optional> X = default, + Optional>> MultiX = default, Optional> Y = default, + Optional>> MultiY = default, Optional Name = default, Optional ShowLegend = default, Optional Text = default, @@ -1846,7 +1968,9 @@ public static GenericChart Violin( => Plotly.NET.Chart2D.Chart.Violin( X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Text: Text.ToOption(), @@ -1884,8 +2008,10 @@ public static GenericChart Violin( /// /// The sample data from which statistics are computed is set in `x` and `y` (where `x` and `y` represent marginal distributions, binning is set in `xbins` and `ybins` in this case) or `z` (where `z` represent the 2D distribution and binning set, binning is set by `x` and `y` in this case). The resulting distribution is visualized as a contour plot. /// - /// Sets the sample data to be binned on the x axis. - /// Sets the sample data to be binned on the y axis. + /// Sets the sample data to be binned on the x axis. + /// Sets the sample data to be binned on the x axis. Use two inner arrays here to plot multicategorial data + /// Sets the sample data to be binned on the y axis. + /// Sets the sample data to be binned on the y axis. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. @@ -1900,20 +2026,31 @@ public static GenericChart Violin( /// Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` /// Sets the binning across the y dimension /// Sets the marker of this trace. - /// Sets the contour line dash style - /// Sets the contour line color - /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. - /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Sets the contour line dash style + /// Sets the contour line color + /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. + /// Sets the width of the contour lines + /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Wether or not to show the contour line + /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. + /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. + /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. + /// Determines whether to label the contour lines with their values. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the starting contour level value. Must be less than `contours.end` + /// Sets the end contour level value. Must be more than `contours.start` + /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). /// Sets the styles of the colorbar for this trace. /// Sets the colorscale for this trace. /// Whether or not to show the colorscale/colorbar /// Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. - /// Sets the style of the contours /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Histogram2DContour( - IEnumerable x, - IEnumerable y, + Optional> X, + Optional>> MultiX, + Optional> Y, + Optional>> MultiY, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1928,15 +2065,24 @@ public static GenericChart Histogram2DContour( Optional YBinGroup = default, Optional YBins = default, Optional Marker = default, - Optional ContourLineColor = default, - Optional ContourLineDash = default, - Optional ContourLineSmoothing = default, - Optional ContourLine = default, + Optional ContourLinesDash = default, + Optional ContourLinesColor = default, + Optional ContourLinesSmoothing = default, + Optional ContourLinesWidth = default, + Optional ContourLines = default, + Optional ShowContourLines = default, + Optional ContoursColoring = default, + Optional ContoursOperation = default, + Optional ContoursType = default, + Optional ShowContoursLabels = default, + Optional ContourLabelFont = default, + Optional ContoursStart = default, + Optional ContoursEnd = default, + Optional Contours = default, Optional ColorBar = default, Optional ColorScale = default, Optional ShowScale = default, Optional ReverseScale = default, - Optional Contours = default, Optional NContours = default, Optional UseDefaults = default ) @@ -1945,8 +2091,10 @@ public static GenericChart Histogram2DContour( where ZType : IConvertible => Plotly.NET.Chart2D.Chart.Histogram2DContour, ZType>( - x: x, - y: y, + X: X.ToOption(), + MultiX: MultiX.ToOption(), + Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1961,15 +2109,24 @@ public static GenericChart Histogram2DContour( YBinGroup: YBinGroup.ToOption(), YBins: YBins.ToOption(), Marker: Marker.ToOption(), - ContourLinesColor: ContourLineColor.ToOption(), - ContourLinesDash: ContourLineDash.ToOption(), - ContourLinesSmoothing: ContourLineSmoothing.ToOption(), - ContourLines: ContourLine.ToOption(), + ContourLinesDash: ContourLinesDash.ToOption(), + ContourLinesColor: ContourLinesColor.ToOption(), + ContourLinesSmoothing: ContourLinesSmoothing.ToOption(), + ContourLinesWidth: ContourLinesWidth.ToOption(), + ContourLines: ContourLines.ToOption(), + ShowContourLines: ShowContourLines.ToOption(), + ContoursColoring: ContoursColoring.ToOption(), + ContoursOperation: ContoursOperation.ToOption(), + ContoursType: ContoursType.ToOption(), + ShowContoursLabels: ShowContoursLabels.ToOption(), + ContoursLabelFont: ContourLabelFont.ToOption(), + ContoursStart: ContoursStart.ToOption(), + ContoursEnd: ContoursEnd.ToOption(), + Contours: Contours.ToOption(), ColorBar: ColorBar.ToOption(), ColorScale: ColorScale.ToOption(), ShowScale: ShowScale.ToOption(), ReverseScale: ReverseScale.ToOption(), - Contours: Contours.ToOption(), NContours: NContours.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -1980,12 +2137,14 @@ public static GenericChart Histogram2DContour( /// A heatmap is a data visualization technique that shows magnitude of a phenomenon as color in two dimensions. /// /// Sets the 2-dimensional z data, which will be visualized with the color scale. + /// Sets the x coordinates + /// Sets the x coordinates. Use two inner arrays here to plot multicategorial data + /// Sets the y coordinates + /// Sets the y coordinates. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. - /// Sets the x coordinates. /// Sets the horizontal gap (in pixels) between bricks. - /// Sets the y coordinates. /// Sets the vertical gap (in pixels) between bricks. /// Sets a text associated with each datum /// Sets individual text for each datum @@ -2000,12 +2159,14 @@ public static GenericChart Histogram2DContour( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Heatmap( IEnumerable> zData, + Optional> X = default, + Optional>> MultiX = default, + Optional> Y = default, + Optional>> MultiY = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, - Optional> X = default, Optional XGap = default, - Optional> Y = default, Optional YGap = default, Optional Text = default, Optional> MultiText = default, @@ -2026,12 +2187,14 @@ public static GenericChart Heatmap( => Plotly.NET.Chart2D.Chart.Heatmap, ZType, XType, YType, TextType>( zData: zData, + X: X.ToOption(), + MultiX: MultiX.ToOption(), + Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), - X: X.ToOption(), XGap: XGap.ToOption(), - Y: Y.ToOption(), YGap: YGap.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), @@ -2059,8 +2222,10 @@ public static GenericChart Heatmap( /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. /// Sets the x coordinates. + /// Sets the x coordinates. Use two inner arrays here to plot multicategorial data /// Sets the horizontal gap (in pixels) between bricks. /// Sets the y coordinates. + /// Sets the y coordinates. Use two inner arrays here to plot multicategorial data /// Sets the vertical gap (in pixels) between bricks. /// Sets a text associated with each datum /// Sets individual text for each datum @@ -2080,8 +2245,10 @@ public static GenericChart AnnotatedHeatmap( Optional ShowLegend = default, Optional Opacity = default, Optional> X = default, + Optional>> MultiX = default, Optional XGap = default, Optional> Y = default, + Optional>> MultiY = default, Optional YGap = default, Optional Text = default, Optional> MultiText = default, @@ -2107,8 +2274,10 @@ public static GenericChart AnnotatedHeatmap( ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), X: X.ToOption(), + MultiX: MultiX.ToOption(), XGap: XGap.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), YGap: YGap.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), @@ -2178,7 +2347,9 @@ public static GenericChart Image( /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. /// Sets the x coordinates. + /// Sets the x coordinates. Use two inner arrays here to plot multicategorial data /// Sets the y coordinates. + /// Sets the y coordinates. Use two inner arrays here to plot multicategorial data /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the styles of the colorbar for this trace. @@ -2186,15 +2357,19 @@ public static GenericChart Image( /// Whether or not to show the colorscale/colorbar /// Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. /// Transposes the z data. - /// Sets the contour line dash style - /// Sets the contour line color - /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. - /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Sets the contour line dash style + /// Sets the contour line color + /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. + /// Sets the width of the contour lines + /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Wether or not to show the contour line /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. - /// Determines whether to label the contour lines with their values. + /// Determines whether to label the contour lines with their values. /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the starting contour level value. Must be less than `contours.end` + /// Sets the end contour level value. Must be more than `contours.start` /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). /// Sets the fill color if `contours.type` is "constraint". Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. @@ -2204,25 +2379,31 @@ public static GenericChart Contour( Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, - Optional> X = default, - Optional> Y = default, + Optional> X = default, + Optional>> MultiX = default, + Optional> Y = default, + Optional>> MultiY = default, Optional Text = default, Optional> MultiText = default, Optional ColorBar = default, Optional ColorScale = default, Optional ShowScale = default, Optional ReverseScale = default, - Optional Transpose = default, - Optional ContourLineColor = default, - Optional ContourLineDash = default, - Optional ContourLineSmoothing = default, - Optional ContourLine = default, - Optional ContoursColoring = default, - Optional ContoursOperation = default, - Optional ContoursType = default, - Optional ShowContourLabels = default, - Optional ContourLabelFont = default, - Optional Contours = default, + Optional Transpose = default, + Optional ContourLinesDash = default, + Optional ContourLinesColor = default, + Optional ContourLinesSmoothing = default, + Optional ContourLinesWidth = default, + Optional ContourLines = default, + Optional ShowContourLines = default, + Optional ContoursColoring = default, + Optional ContoursOperation = default, + Optional ContoursType = default, + Optional ShowContoursLabels = default, + Optional ContourLabelFont = default, + Optional ContoursStart = default, + Optional ContoursEnd = default, + Optional Contours = default, Optional FillColor = default, Optional NContours = default, Optional UseDefaults = default @@ -2238,7 +2419,9 @@ public static GenericChart Contour( ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), ColorBar: ColorBar.ToOption(), @@ -2246,15 +2429,19 @@ public static GenericChart Contour( ShowScale: ShowScale.ToOption(), ReverseScale: ReverseScale.ToOption(), Transpose: Transpose.ToOption(), - ContourLinesColor: ContourLineColor.ToOption(), - ContourLinesDash: ContourLineDash.ToOption(), - ContourLinesSmoothing: ContourLineSmoothing.ToOption(), - ContourLines: ContourLine.ToOption(), + ContourLinesDash: ContourLinesDash.ToOption(), + ContourLinesColor: ContourLinesColor.ToOption(), + ContourLinesSmoothing: ContourLinesSmoothing.ToOption(), + ContourLinesWidth: ContourLinesWidth.ToOption(), + ContourLines: ContourLines.ToOption(), + ShowContourLines: ShowContourLines.ToOption(), ContoursColoring: ContoursColoring.ToOption(), ContoursOperation: ContoursOperation.ToOption(), ContoursType: ContoursType.ToOption(), - ShowContoursLabels: ShowContourLabels.ToOption(), + ShowContoursLabels: ShowContoursLabels.ToOption(), ContoursLabelFont: ContourLabelFont.ToOption(), + ContoursStart: ContoursStart.ToOption(), + ContoursEnd: ContoursEnd.ToOption(), Contours: Contours.ToOption(), FillColor: FillColor.ToOption(), NContours: NContours.ToOption(), @@ -2271,7 +2458,8 @@ public static GenericChart Contour( /// Sets the high values. /// Sets the low values. /// Sets the close values. - /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. @@ -2283,13 +2471,15 @@ public static GenericChart Contour( /// Sets the color of decreasing values /// Sets the style options of decreasing values (use this for more finegrained control than the other increasing-associated arguments). /// Sets the width of the open/close tick marks relative to the "x" minimal interval. + /// Whether or not to show a rangeslider for the xaxis /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart OHLC( IEnumerable open, IEnumerable high, IEnumerable low, IEnumerable close, - IEnumerable x, + Optional> X, + Optional>> MultiX, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -2301,6 +2491,7 @@ public static GenericChart OHLC( Optional DecreasingColor = default, Optional Decreasing = default, Optional TickWidth = default, + Optional ShowXAxisRangeSlider = default, Optional UseDefaults = default ) where OHLCType : IConvertible @@ -2312,7 +2503,8 @@ public static GenericChart OHLC( high: high, low: low, close: close, - x: x, + X: X.ToOption(), + MultiX: MultiX.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -2324,6 +2516,7 @@ public static GenericChart OHLC( DecreasingColor: DecreasingColor.ToOption(), Decreasing: Decreasing.ToOption(), TickWidth: TickWidth.ToOption(), + ShowXAxisRangeSlider: ShowXAxisRangeSlider.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -2336,7 +2529,8 @@ public static GenericChart OHLC( /// Sets the high values. /// Sets the low values. /// Sets the close values. - /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. @@ -2348,13 +2542,15 @@ public static GenericChart OHLC( /// Sets the color of decreasing values /// Sets the style options of decreasing values (use this for more finegrained control than the other increasing-associated arguments). /// Sets the width of the whiskers relative to the box' width. For example, with 1, the whiskers are as wide as the box(es). + /// Whether or not to show a rangeslider for the xaxis /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Candlestick( IEnumerable open, IEnumerable high, IEnumerable low, IEnumerable close, - IEnumerable x, + Optional> X, + Optional>> MultiX, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -2366,6 +2562,7 @@ public static GenericChart Candlestick( Optional DecreasingColor = default, Optional Decreasing = default, Optional WhiskerWidth = default, + Optional ShowXAxisRangeSlider = default, Optional UseDefaults = default ) where OHLCType : IConvertible @@ -2377,7 +2574,8 @@ public static GenericChart Candlestick( high: high, low: low, close: close, - x: x, + X: X.ToOption(), + MultiX: MultiX.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -2389,6 +2587,7 @@ public static GenericChart Candlestick( DecreasingColor: DecreasingColor.ToOption(), Decreasing: Decreasing.ToOption(), WhiskerWidth: WhiskerWidth.ToOption(), + ShowXAxisRangeSlider: ShowXAxisRangeSlider.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -2468,12 +2667,20 @@ public static GenericChart Splom( /// Sets the marker color of the point trace. /// Sets the marker symbol of the point trace. /// Sets the marker size of the point trace. - /// Sets the color of the contour lines of the histogram2dcontour trace. - /// Sets the smoothing of the contour lines of the histogram2dcontour trace. - /// Sets the width of the contour lines of the histogram2dcontour trace. - /// Whether or not to show contour lines - /// Whether or not to show contour labels - /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. + /// Sets the contour line dash style + /// Sets the contour line color + /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. + /// Sets the width of the contour lines + /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Wether or not to show the contour line + /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. + /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. + /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. + /// Determines whether to label the contour lines with their values. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the starting contour level value. Must be less than `contours.end` + /// Sets the end contour level value. Must be more than `contours.start` + /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. /// Specifies the type of normalization used for this histogram trace. If "", the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If "percent" / "probability", the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If "density", the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If "probability density", the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). /// Sets the opacity of the histogram2dcontour trace. @@ -2487,16 +2694,24 @@ public static GenericChart PointDensity( Optional PointOpacity = default, Optional PointMarkerColor = default, Optional PointMarkerSymbol = default, - Optional PointMarkerSize = default, - Optional ContourLineColor = default, - Optional ContourLineSmoothing = default, - Optional ContourLineWidth = default, - Optional ShowContourLines = default, - Optional ShowContourLabels = default, - Optional ContourColoring = default, - Optional NContours = default, - Optional HistNorm = default, - Optional ContourOpacity = default, + Optional PointMarkerSize = default, + Optional ContourLinesDash = default, + Optional ContourLinesColor = default, + Optional ContourLinesSmoothing = default, + Optional ContourLinesWidth = default, + Optional ContourLines = default, + Optional ShowContourLines = default, + Optional ContoursColoring = default, + Optional ContoursOperation = default, + Optional ContoursType = default, + Optional ShowContoursLabels = default, + Optional ContourLabelFont = default, + Optional ContoursStart = default, + Optional ContoursEnd = default, + Optional Contours = default, + Optional NContours = default, + Optional HistNorm = default, + Optional ContourOpacity = default, Optional ColorBar = default, Optional ColorScale = default, Optional ShowScale = default, @@ -2512,12 +2727,20 @@ public static GenericChart PointDensity( PointMarkerColor: PointMarkerColor.ToOption(), PointMarkerSymbol: PointMarkerSymbol.ToOption(), PointMarkerSize: PointMarkerSize.ToOption(), - ContourLinesColor: ContourLineColor.ToOption(), - ContourLinesSmoothing: ContourLineSmoothing.ToOption(), - ContourLinesWidth: ContourLineWidth.ToOption(), + ContourLinesDash: ContourLinesDash.ToOption(), + ContourLinesColor: ContourLinesColor.ToOption(), + ContourLinesSmoothing: ContourLinesSmoothing.ToOption(), + ContourLinesWidth: ContourLinesWidth.ToOption(), + ContourLines: ContourLines.ToOption(), ShowContourLines: ShowContourLines.ToOption(), - ShowContoursLabels: ShowContourLabels.ToOption(), - ContoursColoring: ContourColoring.ToOption(), + ContoursColoring: ContoursColoring.ToOption(), + ContoursOperation: ContoursOperation.ToOption(), + ContoursType: ContoursType.ToOption(), + ShowContoursLabels: ShowContoursLabels.ToOption(), + ContoursLabelFont: ContourLabelFont.ToOption(), + ContoursStart: ContoursStart.ToOption(), + ContoursEnd: ContoursEnd.ToOption(), + Contours: Contours.ToOption(), NContours: NContours.ToOption(), HistNorm: HistNorm.ToOption(), ContourOpacity: ContourOpacity.ToOption(), diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs index add74c53b..bd3015593 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs @@ -7,6 +7,7 @@ using Plotly.NET.LayoutObjects; using Plotly.NET.TraceObjects; using System.Runtime.InteropServices; +using static Plotly.NET.StyleParam; namespace Plotly.NET.CSharp @@ -43,6 +44,8 @@ public static partial class Chart /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Scatter3D( @@ -69,6 +72,8 @@ public static GenericChart Scatter3D( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional CameraProjectionType = default , + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -102,6 +107,8 @@ public static GenericChart Scatter3D( LineDash: LineDash.ToOption(), Line: Line.ToOption(), Projection: Projection.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -127,6 +134,8 @@ public static GenericChart Scatter3D( /// Sets the marker symbol for each datum /// Sets the marker symbol for each individual datum /// Sets the marker (use this for more finegrained control than the other marker-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Point3D( @@ -147,6 +156,8 @@ public static GenericChart Point3D( Optional MarkerSymbol = default, Optional> MultiMarkerSymbol = default, Optional Marker = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -173,6 +184,8 @@ public static GenericChart Point3D( MarkerSymbol: MarkerSymbol.ToOption(), MultiMarkerSymbol: MultiMarkerSymbol.ToOption(), Marker: Marker.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), Projection: Projection.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -205,6 +218,8 @@ public static GenericChart Point3D( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Line3D( @@ -231,6 +246,8 @@ public static GenericChart Line3D( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -263,6 +280,8 @@ public static GenericChart Line3D( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), Projection: Projection.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -290,6 +309,8 @@ public static GenericChart Line3D( /// Sets the marker symbol for each datum /// Sets the marker symbol for each individual datum /// Sets the marker (use this for more finegrained control than the other marker-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Bubble3D( @@ -311,6 +332,8 @@ public static GenericChart Bubble3D( Optional MarkerSymbol = default, Optional> MultiMarkerSymbol = default, Optional Marker = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -338,6 +361,8 @@ public static GenericChart Bubble3D( MarkerSymbol: MarkerSymbol.ToOption(), MultiMarkerSymbol: MultiMarkerSymbol.ToOption(), Marker: Marker.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), Projection: Projection.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -362,6 +387,8 @@ public static GenericChart Bubble3D( /// Sets the contours on the surface /// Sets the colorscale of the surface /// Whether or not to show the colorbar/colorscale + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Surface( IEnumerable> zData, @@ -373,8 +400,11 @@ public static GenericChart Surface( Optional Text = default, Optional> MultiText = default, Optional Contours = default, - Optional ColorScale = default, + Optional ColorScale = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional ShowScale = default, + Optional UseDefaults = default ) where ZType : IConvertible @@ -394,6 +424,8 @@ public static GenericChart Surface( Contours: Contours.ToOption(), ColorScale: ColorScale.ToOption(), ShowScale: ShowScale.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -428,6 +460,8 @@ public static GenericChart Surface( /// Sets the colorbar /// Determines whether or not normal smoothing is applied to the meshes, creating meshes with an angular, low-poly look via flat reflections. /// Determines how the mesh surface triangles are derived from the set of vertices (points) represented by the `x`, `y` and `z` arrays, if the `i`, `j`, `k` arrays are not supplied. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Mesh3D( IEnumerable x, @@ -447,7 +481,9 @@ public static GenericChart Mesh3D ShowScale = default, Optional ColorBar = default, Optional FlatShading = default, - Optional TriangulationAlgorithm = default, + Optional TriangulationAlgorithm = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -477,6 +513,8 @@ public static GenericChart Mesh3DSets the colorbar /// Determines whether `sizeref` is set as a "scaled" (i.e unitless) scalar (normalized by the max u/v/w norm in the vector field) or as "absolute" value (in the same units as the vector field). /// Sets the cones' anchor with respect to their x/y/z positions. Note that "cm" denote the cone's center of mass which corresponds to 1/4 from the tail to tip. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Cone( IEnumerable x, @@ -524,7 +564,9 @@ public static GenericChart Cone ShowScale = default, Optional ColorBar = default, Optional SizeMode = default, - Optional ConeAnchor = default, + Optional ConeAnchor = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -552,6 +594,8 @@ public static GenericChart ConeSets the colorbar /// The maximum number of displayed segments in a streamtube. /// Use this object to specify custom tube start positions + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart StreamTube( IEnumerable x, @@ -601,7 +647,9 @@ public static GenericChart StreamTube ShowScale = default, Optional ColorBar = default, Optional MaxDisplayed = default, - Optional TubeStarts = default, + Optional TubeStarts = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -629,6 +677,8 @@ public static GenericChart StreamTubeAdds Slices through the volume /// Sets the surface. /// Sets the opacityscale. The opacityscale must be an array containing arrays mapping a normalized value to an opacity value. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 1], [0.5, 0.2], [1, 1]]` means that higher/lower values would have higher opacity values and those in the middle would be more transparent Alternatively, `opacityscale` may be a palette name string of the following list: 'min', 'max', 'extremes' and 'uniform'. The default is 'uniform'. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Volume( IEnumerable x, @@ -677,7 +729,9 @@ public static GenericChart Volume Caps = default, Optional Slices = default, Optional Surface = default, - Optional>> OpacityScale = default, + Optional>> OpacityScale = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -706,6 +760,8 @@ public static GenericChart VolumeSets the caps (color-coded surfaces on the sides of the visualization domain) /// Adds Slices through the volume /// Sets the surface. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart IsoSurface( IEnumerable x, @@ -755,6 +813,8 @@ public static GenericChart IsoSurface( Optional Caps = default, Optional Slices = default, Optional Surface = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -781,6 +841,8 @@ public static GenericChart IsoSurface( Caps: Caps.ToOption(), Slices: Slices.ToOption(), Surface: Surface.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), UseDefaults: UseDefaults.ToOption() ); } diff --git a/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs b/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs index 354e756ef..1d3a0e2b7 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs @@ -34,7 +34,10 @@ public static partial class Chart /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each bar + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Specifies the direction at which succeeding sectors follow one another. /// Sets the fraction of the radius to cut out of the pie. Use this to make a donut chart. @@ -59,6 +62,9 @@ public static GenericChart Pie( Optional SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional Direction = default, @@ -89,6 +95,9 @@ public static GenericChart Pie( SectionOutlineWidth: SectionOutlineWidth.ToOption(), SectionOutlineMultiWidth: SectionOutlineMultiWidth.ToOption(), SectionOutline: SectionOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), TextInfo: TextInfo.ToOption(), Direction: Direction.ToOption(), @@ -121,7 +130,10 @@ public static GenericChart Pie( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Specifies the direction at which succeeding sectors follow one another. /// Instead of the first slice starting at 12 o'clock, rotate to some other angle. @@ -145,6 +157,9 @@ public static GenericChart Doughnut( Optional SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional Direction = default, @@ -175,6 +190,9 @@ public static GenericChart Doughnut( SectionOutlineWidth: SectionOutlineWidth.ToOption(), SectionOutlineMultiWidth: SectionOutlineMultiWidth.ToOption(), SectionOutline: SectionOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), TextInfo: TextInfo.ToOption(), Direction: Direction.ToOption(), @@ -205,7 +223,10 @@ public static GenericChart Doughnut( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// /// @@ -225,7 +246,10 @@ public static GenericChart FunnelArea( Optional SectionOutlineColor = default, Optional SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, - Optional SectionOutline = default, + Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional AspectRatio = default, @@ -252,6 +276,9 @@ public static GenericChart FunnelArea( SectionOutlineWidth: SectionOutlineWidth.ToOption(), SectionOutlineMultiWidth: SectionOutlineMultiWidth.ToOption(), SectionOutline: SectionOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), TextInfo: TextInfo.ToOption(), AspectRatio: AspectRatio.ToOption(), @@ -282,7 +309,10 @@ public static GenericChart FunnelArea( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Determines how the items in `values` are summed. When set to "total", items in `values` are taken to be value of all its descendants. When set to "remainder", items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. /// Determines default for `values` when it is not provided, by inferring a 1 for each of the "leaves" and/or "branches", otherwise 0. @@ -312,6 +342,9 @@ public static GenericChart Sunburst SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional BranchValues = default, @@ -349,6 +382,9 @@ public static GenericChart SunburstSets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Determines how the items in `values` are summed. When set to "total", items in `values` are taken to be value of all its descendants. When set to "remainder", items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. /// Determines default for `values` when it is not provided, by inferring a 1 for each of the "leaves" and/or "branches", otherwise 0. @@ -420,6 +459,9 @@ public static GenericChart Treemap SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional BranchValues = default, @@ -448,6 +490,8 @@ public static GenericChart Treemap( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines how the items in `values` are summed. When set to "total", items in `values` are taken to be value of all its descendants. When set to "remainder", items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. /// Determines default for `values` when it is not provided, by inferring a 1 for each of the "leaves" and/or "branches", otherwise 0. /// Sets the orientation of the tiling. @@ -774,6 +824,9 @@ public static GenericChart Icicle SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional BranchValues = default, @@ -804,6 +857,8 @@ public static GenericChart Icicle( /// Sets the longitude coordinates (in degrees East). /// Sets the latitude coordinates (in degrees North). /// Determines the drawing mode for this scatter trace. + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace @@ -443,6 +445,7 @@ public static GenericChart ScatterMapbox longitudes, IEnumerable latitudes, StyleParam.Mode mode, + Optional MapboxStyle = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -475,6 +478,7 @@ public static GenericChart ScatterMapboxSets the longitude coordinates (in degrees East). /// Sets the latitude coordinates (in degrees North). /// Sets the trace name. The trace name appear as the legend item and on hover + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace /// Sets the opactity of individual datum markers @@ -531,6 +536,7 @@ public static GenericChart PointMapbox( IEnumerable longitudes, IEnumerable latitudes, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> MultiOpacity = default, @@ -557,6 +563,7 @@ public static GenericChart PointMapbox( longitudes: longitudes, latitudes: latitudes, Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), MultiOpacity: MultiOpacity.ToOption(), @@ -587,6 +594,7 @@ public static GenericChart PointMapbox( /// Sets the latitude coordinates (in degrees North). /// /// Sets the trace name. The trace name appear as the legend item and on hover + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace /// Sets the opactity of individual datum markers @@ -612,6 +620,7 @@ public static GenericChart LineMapbox( IEnumerable latitudes, Optional ShowMarkers = default, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> MultiOpacity = default, @@ -642,6 +651,7 @@ public static GenericChart LineMapbox( latitudes: latitudes, ShowMarkers: ShowMarkers.ToOption(), Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), MultiOpacity: MultiOpacity.ToOption(), @@ -675,6 +685,7 @@ public static GenericChart LineMapbox( /// Sets the latitude coordinates (in degrees North). /// Sets the size of the points. /// Sets the trace name. The trace name appear as the legend item and on hover + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace /// Sets the opactity of individual datum markers @@ -695,6 +706,7 @@ public static GenericChart BubbleMapbox IEnumerable latitudes, IEnumerable sizes, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> MultiOpacity = default, @@ -720,6 +732,7 @@ public static GenericChart BubbleMapbox latitudes: latitudes, sizes: sizes, Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), MultiOpacity: MultiOpacity.ToOption(), @@ -752,6 +765,7 @@ public static GenericChart BubbleMapbox /// The color values for each location /// Sets the GeoJSON data associated with this trace. It can be set as a valid GeoJSON object or as a URL string. Note that we only accept GeoJSONs of type "FeatureCollection" or "Feature" with geometries of type "Polygon" or "MultiPolygon". /// Sets the trace name. The trace name appear as the legend item and on hover. + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Support nested property, for example "properties.name". /// Sets a text associated with each datum @@ -767,6 +781,7 @@ public static GenericChart ChoroplethMapbox( IEnumerable z, object geoJson, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional FeatureIdKey = default, Optional Text = default, @@ -785,6 +800,7 @@ public static GenericChart ChoroplethMapbox( locations: locations, z: z, Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), geoJson: geoJson, FeatureIdKey: FeatureIdKey.ToOption(), @@ -808,6 +824,7 @@ public static GenericChart ChoroplethMapbox( /// Sets the longitude coordinates (in degrees East). /// Sets the latitude coordinates (in degrees North). /// Sets the trace name. The trace name appear as the legend item and on hover. + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opacity of the trace /// Sets the points' weight. For example, a value of 10 would be equivalent to having 10 points of weight 1 in the same spot @@ -824,6 +841,7 @@ public static GenericChart DensityMapbox longitudes, IEnumerable latitudes, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> Z = default, @@ -846,6 +864,7 @@ public static GenericChart DensityMapbox OpenInBrowser = default ) => - Plotly.NET.Chart.SaveHtml( + Plotly.NET.Chart.saveHtml( path: path, OpenInBrowser: OpenInBrowser.ToOption() ).Invoke(gChart); @@ -44,7 +44,7 @@ public static void SaveHtml( /// Saves the given chart as a temporary html file and opens it in the browser. /// /// The chart to show in the browser - public static void Show(this GenericChart gChart) => Plotly.NET.Chart.Show(gChart); + public static void Show(this GenericChart gChart) => Plotly.NET.Chart.show(gChart); /// /// Sets trace information on the given chart. @@ -65,7 +65,7 @@ public static GenericChart WithTraceInfo( Optional LegendGroup = default, Optional LegendGroupTitle = default ) => - Plotly.NET.Chart.WithTraceInfo( + Plotly.NET.Chart.withTraceInfo( Name: Name.ToOption(), Visible: Visible.ToOption(), ShowLegend: ShowLegend.ToOption(), @@ -80,7 +80,7 @@ public static GenericChart WithSize( Optional<int> Width = default, Optional<int> Height = default ) => - Plotly.NET.Chart.WithSize(Width: Width.ToOption(), Height: Height.ToOption()).Invoke(gChart); + Plotly.NET.Chart.withSize(Width: Width.ToOption(), Height: Height.ToOption()).Invoke(gChart); /// <summary> /// Sets the given x axis styles on the input chart's layout. @@ -103,6 +103,7 @@ public static GenericChart WithSize( /// <param name="LineColor">Sets the axis line color.</param> /// <param name="ShowGrid">Determines whether or not grid lines are drawn. If "true", the grid lines are drawn at every tick mark.</param> /// <param name="GridColor">Sets the color of the grid lines.</param> + /// <param name="GridDash">Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").</param> /// <param name="ZeroLine">Determines whether or not a line is drawn at along the 0 value of this axis. If "true", the zero line is drawn on top of the grid lines.</param> /// <param name="ZeroLineColor">Sets the line color of the zero line.</param> /// <param name="Anchor">If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`.</param> @@ -134,6 +135,7 @@ public static GenericChart WithXAxisStyle<MinType, MaxType, CategoryArrayType>( Optional<Color> LineColor = default, Optional<bool> ShowGrid = default, Optional<Color> GridColor = default, + Optional<StyleParam.DrawingStyle> GridDash = default, Optional<bool> ZeroLine = default, Optional<Color> ZeroLineColor = default, Optional<StyleParam.LinearAxisId> Anchor = default, @@ -153,7 +155,7 @@ public static GenericChart WithXAxisStyle<MinType, MaxType, CategoryArrayType>( where MaxType : IConvertible where CategoryArrayType : IConvertible => - Plotly.NET.Chart.WithXAxisStyle<MinType, MaxType, CategoryArrayType>( + Plotly.NET.Chart.withXAxisStyle<MinType, MaxType, CategoryArrayType>( TitleText: TitleText.ToOption(), TitleFont: TitleFont.ToOption(), TitleStandoff: TitleStandoff.ToOption(), @@ -169,6 +171,7 @@ public static GenericChart WithXAxisStyle<MinType, MaxType, CategoryArrayType>( LineColor: LineColor.ToOption(), ShowGrid: ShowGrid.ToOption(), GridColor: GridColor.ToOption(), + GridDash: GridDash.ToOption(), ZeroLine: ZeroLine.ToOption(), ZeroLineColor: ZeroLineColor.ToOption(), Anchor: Anchor.ToOption(), @@ -191,7 +194,7 @@ public static GenericChart WithXAxisStyle<MinType, MaxType, CategoryArrayType>( /// /// If there is already an axis set at the given id, the styles are applied to it. If there is no axis present, a new LinearAxis object with the given styles will be set. /// </summary> - /// <param name="gChart">The chart in which to change the Y axis style</param> + /// <param name="gChart">The chart in which to change the X axis style</param> /// <param name="TitleText">Sets the text of the axis title.</param> /// <param name="TitleFont">Sets the font of the axis title.</param> /// <param name="TitleStandoff">Sets the standoff distance (in px) between the axis labels and the title text.</param> @@ -207,11 +210,14 @@ public static GenericChart WithXAxisStyle<MinType, MaxType, CategoryArrayType>( /// <param name="LineColor">Sets the axis line color.</param> /// <param name="ShowGrid">Determines whether or not grid lines are drawn. If "true", the grid lines are drawn at every tick mark.</param> /// <param name="GridColor">Sets the color of the grid lines.</param> + /// <param name="GridDash">Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").</param> /// <param name="ZeroLine">Determines whether or not a line is drawn at along the 0 value of this axis. If "true", the zero line is drawn on top of the grid lines.</param> /// <param name="ZeroLineColor">Sets the line color of the zero line.</param> /// <param name="Anchor">If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`.</param> /// <param name="Side">Determines whether a x (y) axis is positioned at the "bottom" ("left") or "top" ("right") of the plotting area.</param> /// <param name="Overlaying">If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If "false", this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible.</param> + /// <param name="AutoShift">Automatically reposition the axis to avoid overlap with other axes with the same `overlaying` value. This repositioning will account for any `shift` amount applied to other axes on the same side with `autoshift` is set to true. Only has an effect if `anchor` is set to "free".</param> + /// <param name="Shift">Moves the axis a given number of pixels from where it would have been otherwise. Accepts both positive and negative values, which will shift the axis either right or left, respectively. If `autoshift` is set to true, then this defaults to a padding of -3 if `side` is set to "left". and defaults to +3 if `side` is set to "right". Defaults to 0 if `autoshift` is set to false. Only has an effect if `anchor` is set to "free".</param> /// <param name="Domain">Tuple of (X*Y fractions). Sets the domain of this axis (in plot fraction).</param> /// <param name="Position">Sets the position of this axis in the plotting space (in normalized coordinates). Only has an effect if `anchor` is set to "free".</param> /// <param name="CategoryOrder">Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to "category ascending" or "category descending" if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to "array" to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the "trace" mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to "total ascending" or "total descending" if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values.</param> @@ -238,11 +244,14 @@ public static GenericChart WithYAxisStyle<MinType, MaxType, CategoryArrayType>( Optional<Color> LineColor = default, Optional<bool> ShowGrid = default, Optional<Color> GridColor = default, + Optional<StyleParam.DrawingStyle> GridDash = default, Optional<bool> ZeroLine = default, Optional<Color> ZeroLineColor = default, Optional<StyleParam.LinearAxisId> Anchor = default, Optional<StyleParam.Side> Side = default, Optional<StyleParam.LinearAxisId> Overlaying = default, + Optional<bool> AutoShift = default, + Optional<int> Shift = default, Optional<Tuple<double, double>> Domain = default, Optional<double> Position = default, Optional<StyleParam.CategoryOrder> CategoryOrder = default, @@ -257,7 +266,7 @@ public static GenericChart WithYAxisStyle<MinType, MaxType, CategoryArrayType>( where MaxType : IConvertible where CategoryArrayType : IConvertible => - Plotly.NET.Chart.WithYAxisStyle<MinType, MaxType, CategoryArrayType>( + Plotly.NET.Chart.withYAxisStyle<MinType, MaxType, CategoryArrayType>( TitleText: TitleText.ToOption(), TitleFont: TitleFont.ToOption(), TitleStandoff: TitleStandoff.ToOption(), @@ -273,11 +282,14 @@ public static GenericChart WithYAxisStyle<MinType, MaxType, CategoryArrayType>( LineColor: LineColor.ToOption(), ShowGrid: ShowGrid.ToOption(), GridColor: GridColor.ToOption(), + GridDash: GridDash.ToOption(), ZeroLine: ZeroLine.ToOption(), ZeroLineColor: ZeroLineColor.ToOption(), Anchor: Anchor.ToOption(), Side: Side.ToOption(), Overlaying: Overlaying.ToOption(), + AutoShift: AutoShift.ToOption(), + Shift: Shift.ToOption(), Domain: Domain.ToOption(), Position: Position.ToOption(), CategoryOrder: CategoryOrder.ToOption(), @@ -304,7 +316,7 @@ public static GenericChart WithMapbox( Optional<int> Id = default ) => - Plotly.NET.Chart.WithMapbox( + Plotly.NET.Chart.withMapbox( mapbox: mapbox, Id: Id.ToOption() ).Invoke(gChart); @@ -362,7 +374,7 @@ public static GenericChart WithXAxisRangeSlider( Optional<StyleParam.SubPlotId> Id = default ) => - Plotly.NET.Chart.WithXAxisRangeSlider( + Plotly.NET.Chart.withXAxisRangeSlider( rangeSlider: rangeSlider, Id: Id.ToOption() ).Invoke(gChart); @@ -374,21 +386,24 @@ public static GenericChart WithXAxisRangeSlider( /// </summary> /// <param name="gChart">The chart for which to set the legend</param> /// <param name="legend">The new Legend for the chart's layout</param> + /// <param name="Id">The target Legend id with which the Legend should be set. Default is 1.</param> public static GenericChart WithLegend( this GenericChart gChart, - Legend legend + Legend legend, + Optional<int> Id ) => - Plotly.NET.Chart.WithLegend( - legend: legend + Plotly.NET.Chart.withLegend( + legend: legend, + Id: Id.ToOption() ).Invoke(gChart); /// <summary> - /// Sets the given Legend styles on the input chart's Legend. + /// Sets the given Legend styles on the input chart's Legend, optionally passing a target Legend id. /// /// If there is already a Legend set , the styles are applied to it. If there is no Legend present, a new Legend object with the given styles will be set. /// </summary> - /// <param name="gChart">The chart for which to set the legend styles</param> + /// <param name="gChart">The chart for which to set the legend</param> /// <param name="BGColor">Sets the legend background color. Defaults to `layout.paper_bgcolor`.</param> /// <param name="BorderColor">Sets the color of the border enclosing the legend.</param> /// <param name="BorderWidth">Sets the width (in px) of the border enclosing the legend.</param> @@ -407,10 +422,14 @@ Legend legend /// <param name="TraceOrder">Determines the order at which the legend items are displayed. If "normal", the items are displayed top-to-bottom in the same order as the input data. If "reversed", the items are displayed in the opposite order as "normal". If "grouped", the items are displayed in groups (when a trace `legendgroup` is provided). if "grouped+reversed", the items are displayed in the opposite order as "grouped".</param> /// <param name="UIRevision">Controls persistence of legend-driven changes in trace and pie label visibility. Defaults to `layout.uirevision`.</param> /// <param name="VerticalAlign">Sets the vertical alignment of the symbols with respect to their associated text.</param> + /// <param name="Visible">Determines whether or not this legend is visible.</param> /// <param name="X">Sets the x position (in normalized coordinates) of the legend. Defaults to "1.02" for vertical legends and defaults to "0" for horizontal legends.</param> /// <param name="XAnchor">Sets the legend's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the legend. Value "auto" anchors legends to the right for `x` values greater than or equal to 2/3, anchors legends to the left for `x` values less than or equal to 1/3 and anchors legends with respect to their center otherwise.</param> + /// <param name="XRef">Sets the container `x` refers to. "container" spans the entire `width` of the plot. "paper" refers to the width of the plotting area only.</param> /// <param name="Y">Sets the y position (in normalized coordinates) of the legend. Defaults to "1" for vertical legends, defaults to "-0.1" for horizontal legends on graphs w/o range sliders and defaults to "1.1" for horizontal legends on graph with one or multiple range sliders.</param> /// <param name="YAnchor">Sets the legend's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the legend. Value "auto" anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise.</param> + /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> + /// <param name="Id">The target Legend id. Default is 1.</param> public static GenericChart WithLegendStyle( this GenericChart gChart, Optional<Color> BGColor = default, @@ -431,13 +450,17 @@ public static GenericChart WithLegendStyle( Optional<StyleParam.TraceOrder> TraceOrder = default, Optional<string> UIRevision = default, Optional<StyleParam.VerticalAlign> VerticalAlign = default, + Optional<bool> Visible = default, Optional<double> X = default, - Optional<StyleParam.XAnchorPosition> XAnchor = default, + Optional<StyleParam.XAnchorPosition> XAnchor = default, + Optional<string> XRef = default, Optional<double> Y = default, - Optional<StyleParam.YAnchorPosition> YAnchor = default + Optional<StyleParam.YAnchorPosition> YAnchor = default, + Optional<string> YRef = default, + Optional<int> Id = default ) => - Plotly.NET.Chart.WithLegendStyle( + Plotly.NET.Chart.withLegendStyle( BGColor: BGColor.ToOption(), BorderColor: BorderColor.ToOption(), BorderWidth: BorderWidth.ToOption(), @@ -456,10 +479,14 @@ public static GenericChart WithLegendStyle( TraceOrder: TraceOrder.ToOption(), UIRevision: UIRevision.ToOption(), VerticalAlign: VerticalAlign.ToOption(), + Visible: Visible.ToOption(), X: X.ToOption(), XAnchor: XAnchor.ToOption(), + XRef: XRef.ToOption(), Y: Y.ToOption(), - YAnchor: YAnchor.ToOption() + YAnchor: YAnchor.ToOption(), + YRef: YRef.ToOption(), + Id: Id.ToOption() ).Invoke(gChart); } diff --git a/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj b/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj index ffb85c5ac..d24db3566 100644 --- a/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj +++ b/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj @@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <AssemblyName>Plotly.NET.CSharp</AssemblyName> diff --git a/src/Plotly.NET.CSharp/RELEASE_NOTES.md b/src/Plotly.NET.CSharp/RELEASE_NOTES.md index fea9e13b0..71a460f58 100644 --- a/src/Plotly.NET.CSharp/RELEASE_NOTES.md +++ b/src/Plotly.NET.CSharp/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +### 0.13.0 - September 04 2024 + +- [Add C# wrapper for Chart.SingleStack](https://github.com/plotly/Plotly.NET/pull/467) thanks [@TheKiiiing](https://github.com/TheKiiiing)! + ### 0.12.0 - May 27 2024 - bump version range of Plotly.NET to [5.0.0, 6.0.0) diff --git a/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj b/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj index dad0e0988..c699dc965 100644 --- a/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj +++ b/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj @@ -36,8 +36,7 @@ <ItemGroup> <ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[5.0.0, 6.0.0)" /> - <PackageReference Include="DynamicObj" Version="2.0.0" /> - <PackageReference Include="PuppeteerSharp" Version="18.0.0" /> + <PackageReference Include="PuppeteerSharp" Version="20.0.5" /> </ItemGroup> <Target Name="UseExplicitPackageVersions" BeforeTargets="GenerateNuspec"> <ItemGroup> diff --git a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs index 3a49fc868..fedbbe8aa 100644 --- a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs +++ b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs @@ -31,12 +31,13 @@ type PuppeteerSharpRenderer() = gChart |> GenericChart.mapConfig (fun c -> - DynObj.setValue c "responsive" true - c) + c |> DynObj.withProperty "responsive" true + ) |> GenericChart.mapLayout (fun l -> - DynObj.setValue l "width" "100%" - DynObj.setValue l "height" "100%" - l) + l + |> DynObj.withProperty "width" "100%" + |> DynObj.withProperty "height" "100%" + ) |> GenericChart.toEmbeddedHTML // this should be done via regex, as this only captures the default width and height. |> fun html -> html.Replace("width: 600px; height: 600px;", "width: 100%; height: 100%;") diff --git a/src/Plotly.NET.ImageExport/RELEASE_NOTES.md b/src/Plotly.NET.ImageExport/RELEASE_NOTES.md index 90aac3fce..c4de2dff6 100644 --- a/src/Plotly.NET.ImageExport/RELEASE_NOTES.md +++ b/src/Plotly.NET.ImageExport/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +### 6.1.0 - September 04 2024 + +Remove explicit DynamicObj dependency (use transitive dependency from Plotly.NET) + ### 6.0.0 - May 27 2024 - BREAKING: [Add Scale option to all image export extensions](https://github.com/plotly/Plotly.NET/commit/5090570cb0fd8281a4c197421994cec719b82ac9) diff --git a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs b/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs deleted file mode 100644 index cf346c11a..000000000 --- a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs +++ /dev/null @@ -1,1044 +0,0 @@ -namespace Plotly.NET - -open Plotly.NET.LayoutObjects -open Plotly.NET.TraceObjects -open System -open System.IO -open Giraffe.ViewEngine - -open DynamicObj -open System.Runtime.InteropServices -open System.Runtime.CompilerServices - -///Extension methods for providing a Plotly.NET fluent interface pattern for C# -[<Extension>] -module GenericChartExtensions = - - type GenericChart with - - [<CompiledName("WithTraceInfo")>] - [<Extension>] - member this.WithTraceInfo - ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title - ) = - this - |> Chart.withTraceInfo ( - ?Name = Name, - ?Visible = Visible, - ?ShowLegend = ShowLegend, - ?LegendRank = LegendRank, - ?LegendGroup = LegendGroup, - ?LegendGroupTitle = LegendGroupTitle - ) - - /// Set the axis anchor id the trace is belonging to - [<CompiledName("WithAxisAnchor")>] - [<Extension>] - member this.WithAxisAnchor - ( - [<Optional; DefaultParameterValue(null)>] ?X, - [<Optional; DefaultParameterValue(null)>] ?Y - ) = - this |> Chart.withAxisAnchor (?X = X, ?Y = Y) - - /// Apply styling to the Marker(s) of the chart as Object. - [<CompiledName("WithMarker")>] - [<Extension>] - member this.WithMarker(marker: Marker) = this |> Chart.withMarker marker - - /// Apply styling to the Marker(s) of the chart. - [<CompiledName("WithMarkerStyle")>] - [<Extension>] - member this.WithMarkerStyle - ( - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Colors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?Gradient: Gradient, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Pattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?SizeMin: int, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.MarkerSizeMode, - [<Optional; DefaultParameterValue(null)>] ?SizeRef: int, - [<Optional; DefaultParameterValue(null)>] ?Symbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Symbol3D: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: int - ) = - this - |> Chart.withMarkerStyle ( - ?AutoColorScale = AutoColorScale, - ?CAuto = CAuto, - ?CMax = CMax, - ?CMid = CMid, - ?CMin = CMin, - ?Color = Color, - ?Colors = Colors, - ?ColorAxis = ColorAxis, - ?ColorBar = ColorBar, - ?Colorscale = Colorscale, - ?Gradient = Gradient, - ?Outline = Outline, - ?Size = Size, - ?MultiSize = MultiSize, - ?Opacity = Opacity, - ?Pattern = Pattern, - ?MultiOpacity = MultiOpacity, - ?Symbol = Symbol, - ?MultiSymbol = MultiSymbol, - ?Symbol3D = Symbol3D, - ?MultiSymbol3D = MultiSymbol3D, - ?OutlierColor = OutlierColor, - ?OutlierWidth = OutlierWidth, - ?MaxDisplayed = MaxDisplayed, - ?ReverseScale = ReverseScale, - ?ShowScale = ShowScale, - ?SizeMin = SizeMin, - ?SizeMode = SizeMode, - ?SizeRef = SizeRef - ) - - /// Apply styling to the Line(s) of the chart as Object. - [<CompiledName("WithLine")>] - [<Extension>] - member this.WithLine(line: Line) = this |> Chart.withLine line - - /// Apply styling to the Line(s) of the chart. - [<CompiledName("WithLineStyle")>] - [<Extension>] - member this.WithLineStyle - ( - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Dash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.Shape, - [<Optional; DefaultParameterValue(null)>] ?Simplify: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: float - ) = - this - |> Chart.withLineStyle ( - ?AutoColorScale = AutoColorScale, - ?CAuto = CAuto, - ?CMax = CMax, - ?CMid = CMid, - ?CMin = CMin, - ?Color = Color, - ?ColorAxis = ColorAxis, - ?Colorscale = Colorscale, - ?ReverseScale = ReverseScale, - ?ShowScale = ShowScale, - ?ColorBar = ColorBar, - ?Dash = Dash, - ?Shape = Shape, - ?Simplify = Simplify, - ?Smoothing = Smoothing, - ?Width = Width, - ?MultiWidth = MultiWidth, - ?OutlierColor = OutlierColor, - ?OutlierWidth = OutlierWidth - ) - - /// Apply styling to the xError(s) of the chart as Object - [<CompiledName("WithXError")>] - [<Extension>] - member this.WithXError(xError: Error) = this |> Chart.withXError xError - - /// Apply styling to the xError(s) of the chart as Object - [<CompiledName("WithXErrorStyle")>] - [<Extension>] - member this.WithXErrorStyle - ( - [<Optional; DefaultParameterValue(null)>] ?Array, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus, - [<Optional; DefaultParameterValue(null)>] ?Symmetric, - [<Optional; DefaultParameterValue(null)>] ?Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness, - [<Optional; DefaultParameterValue(null)>] ?Width - ) = - let error = - Error.init ( - ?Array = Array, - ?Arrayminus = Arrayminus, - ?Symmetric = Symmetric, - ?Color = Color, - ?Thickness = Thickness, - ?Width = Width - ) - - this |> Chart.withXError error - - /// Apply styling to the yError(s) of the chart as Object - [<CompiledName("WithYError")>] - [<Extension>] - member this.WithYError(yError: Error) = this |> Chart.withYError (yError) - - /// Apply styling to the yError(s) of the chart as Object - [<CompiledName("WithYErrorStyle")>] - [<Extension>] - member this.WithYErrorStyle - ( - [<Optional; DefaultParameterValue(null)>] ?Array, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus, - [<Optional; DefaultParameterValue(null)>] ?Symmetric, - [<Optional; DefaultParameterValue(null)>] ?Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness, - [<Optional; DefaultParameterValue(null)>] ?Width - ) = - let error = - Error.init ( - ?Array = Array, - ?Arrayminus = Arrayminus, - ?Symmetric = Symmetric, - ?Color = Color, - ?Thickness = Thickness, - ?Width = Width - ) - - this |> Chart.withYError error - - /// Apply styling to the zError(s) of the chart as Object - [<CompiledName("WithZError")>] - [<Extension>] - member this.WithZError(zError: Error) = this |> Chart.withZError (zError) - - - /// Apply styling to the zError(s) of the chart as Object - [<CompiledName("WithZErrorStyle")>] - [<Extension>] - member this.WithZErrorStyle - ( - [<Optional; DefaultParameterValue(null)>] ?Array, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus, - [<Optional; DefaultParameterValue(null)>] ?Symmetric, - [<Optional; DefaultParameterValue(null)>] ?Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness, - [<Optional; DefaultParameterValue(null)>] ?Width - ) = - let error = - Error.init ( - ?Array = Array, - ?Arrayminus = Arrayminus, - ?Symmetric = Symmetric, - ?Color = Color, - ?Thickness = Thickness, - ?Width = Width - ) - - this |> Chart.withZError error - - - // ############################################################ - // ####################### Apply to layout - - // Sets x-Axis of 2d and 3d- Charts - [<CompiledName("WithXAxis")>] - [<Extension>] - member this.WithXAxis(xAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId) = - this |> Chart.withXAxis (xAxis, ?Id = Id) - - // Sets x-Axis of 2d and 3d- Charts - [<CompiledName("WithXAxisStyle")>] - [<Extension>] - member this.WithXAxisStyle - ( - title, - [<Optional; DefaultParameterValue(null)>] ?MinMax, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid, - [<Optional; DefaultParameterValue(null)>] ?ShowLine, - [<Optional; DefaultParameterValue(null)>] ?Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying, - [<Optional; DefaultParameterValue(null)>] ?Id, - [<Optional; DefaultParameterValue(null)>] ?Domain, - [<Optional; DefaultParameterValue(null)>] ?Position, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine, - [<Optional; DefaultParameterValue(null)>] ?Anchor - ) = - let range = - if MinMax.IsSome then - Some(StyleParam.Range.MinMax(MinMax.Value)) - else - None - - let domain = - if Domain.IsSome then - Some(StyleParam.Range.MinMax(Domain.Value)) - else - None - - let xaxis = - LinearAxis.init ( - Title = title, - ?Range = range, - ?ShowGrid = ShowGrid, - ?ShowLine = ShowLine, - ?Anchor = Anchor, - ?Side = Side, - ?Domain = domain, - ?Overlaying = Overlaying, - ?Position = Position, - ?ZeroLine = ZeroLine - ) - - this |> Chart.withXAxis (xaxis, ?Id = Id) - - /// Sets the range slider for the xAxis - [<CompiledName("WithXAxisRangeSlider")>] - [<Extension>] - member this.WithXAxisRangeSlider(rangeSlider: RangeSlider, [<Optional; DefaultParameterValue(null)>] ?Id) = - let xaxis = - LinearAxis.init (RangeSlider = rangeSlider) - - this |> Chart.withXAxis (xaxis, ?Id = Id) - - // Sets y-Axis of 2d and 3d- Charts - [<CompiledName("WithYAxis")>] - [<Extension>] - member this.WithYAxis(yAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId) = - this |> Chart.withYAxis (yAxis, ?Id = Id) - - // Sets y-Axis of 3d- Charts - [<CompiledName("WithYAxisStyle")>] - [<Extension>] - member this.WithYAxisStyle - ( - title, - [<Optional; DefaultParameterValue(null)>] ?MinMax, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid, - [<Optional; DefaultParameterValue(null)>] ?ShowLine, - [<Optional; DefaultParameterValue(null)>] ?Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying, - [<Optional; DefaultParameterValue(null)>] ?Id, - [<Optional; DefaultParameterValue(null)>] ?Domain, - [<Optional; DefaultParameterValue(null)>] ?Position, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine, - [<Optional; DefaultParameterValue(null)>] ?Anchor - ) = - let range = - if MinMax.IsSome then - Some(StyleParam.Range.MinMax(MinMax.Value)) - else - None - - let domain = - if Domain.IsSome then - Some(StyleParam.Range.MinMax(Domain.Value)) - else - None - - let yaxis = - LinearAxis.init ( - Title = title, - ?Range = range, - ?ShowGrid = ShowGrid, - ?ShowLine = ShowLine, - ?Anchor = Anchor, - ?Side = Side, - ?Domain = domain, - ?Overlaying = Overlaying, - ?Position = Position, - ?ZeroLine = ZeroLine - ) - - this |> Chart.withYAxis (yaxis, ?Id = Id) - - - // Sets z-Axis of 3d- Charts - [<CompiledName("WithZAxis")>] - [<Extension>] - member this.WithZAxis(zAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = - this |> Chart.withZAxis (zAxis, ?Id = Id) - - - - // Sets z-Axis style with ... - [<CompiledName("WithZAxisStyle")>] - [<Extension>] - member this.WithZAxisStyle - ( - title, - [<Optional; DefaultParameterValue(null)>] ?MinMax, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid, - [<Optional; DefaultParameterValue(null)>] ?ShowLine, - [<Optional; DefaultParameterValue(null)>] ?Domain, - [<Optional; DefaultParameterValue(null)>] ?Anchor - ) = - let range = - if MinMax.IsSome then - Some(StyleParam.Range.MinMax(MinMax.Value)) - else - None - - let domain = - if Domain.IsSome then - Some(StyleParam.Range.MinMax(Domain.Value)) - else - None - - let zaxis = - LinearAxis.init ( - Title = title, - ?Range = range, - ?ShowGrid = ShowGrid, - ?ShowLine = ShowLine, - ?Anchor = Anchor, - ?Domain = domain - ) - - this |> Chart.withZAxis (zaxis) - - [<CompiledName("WithColorBar")>] - [<Extension>] - member this.withColorBar(colorbar: ColorBar) = - this - |> GenericChart.mapTrace (fun t -> - colorbar |> DynObj.setValue t "colorbar" - t) - - [<CompiledName("WithColorbar")>] - [<Extension>] - member this.WithColorBarStyle - ( - title, - [<Optional; DefaultParameterValue(null)>] ?Length, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor, - [<Optional; DefaultParameterValue(null)>] ?BorderColor, - [<Optional; DefaultParameterValue(null)>] ?BGColor - ) = - let colorbar = - ColorBar.init ( - Title = title, - ?Len = Length, - ?OutlineColor = OutlineColor, - ?BGColor = BGColor, - ?BorderColor = BorderColor - ) - - this |> Chart.withColorBar (colorbar) - - // Set the Layout options of a Chart - [<CompiledName("WithLayout")>] - [<Extension>] - member this.WithLayout(layout: Layout) = GenericChart.addLayout layout this - - // Set the Layout style of a Chart - [<CompiledName("WithLayoutStyle")>] - member this.WithLayoutStyle - ( - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Margin: Margin, - [<Optional; DefaultParameterValue(null)>] ?AutoSize: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: int, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?UniformText: UniformText, - [<Optional; DefaultParameterValue(null)>] ?Separators: string, - [<Optional; DefaultParameterValue(null)>] ?PaperBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?PlotBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: DefaultColorScales, - [<Optional; DefaultParameterValue(null)>] ?Colorway: Color, - [<Optional; DefaultParameterValue(null)>] ?ModeBar: ModeBar, - [<Optional; DefaultParameterValue(null)>] ?HoverMode: StyleParam.HoverMode, - [<Optional; DefaultParameterValue(null)>] ?ClickMode: StyleParam.ClickMode, - [<Optional; DefaultParameterValue(null)>] ?DragMode: StyleParam.DragMode, - [<Optional; DefaultParameterValue(null)>] ?SelectDirection: StyleParam.SelectDirection, - [<Optional; DefaultParameterValue(null)>] ?HoverDistance: int, - [<Optional; DefaultParameterValue(null)>] ?SpikeDistance: int, - [<Optional; DefaultParameterValue(null)>] ?Hoverlabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Transition: Transition, - [<Optional; DefaultParameterValue(null)>] ?DataRevision: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?EditRevision: string, - [<Optional; DefaultParameterValue(null)>] ?SelectRevision: string, - [<Optional; DefaultParameterValue(null)>] ?Template: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?Computed: string, - [<Optional; DefaultParameterValue(null)>] ?Grid: LayoutGrid, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?NewShape: NewShape, - [<Optional; DefaultParameterValue(null)>] ?ActiveShape: ActiveShape, - [<Optional; DefaultParameterValue(null)>] ?HideSources: bool, - [<Optional; DefaultParameterValue(null)>] ?BarGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarMode: StyleParam.BarMode, - [<Optional; DefaultParameterValue(null)>] ?BarNorm: StyleParam.BarNorm, - [<Optional; DefaultParameterValue(null)>] ?ExtendPieColors: bool, - [<Optional; DefaultParameterValue(null)>] ?HiddenLabels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?PieColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?BoxGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxMode: StyleParam.BoxMode, - [<Optional; DefaultParameterValue(null)>] ?ViolinGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinMode: StyleParam.ViolinMode, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallMode: StyleParam.WaterfallMode, - [<Optional; DefaultParameterValue(null)>] ?FunnelGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelMode: StyleParam.FunnelMode, - [<Optional; DefaultParameterValue(null)>] ?ExtendFunnelAreaColors: bool, - [<Optional; DefaultParameterValue(null)>] ?FunnelAreaColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendSunBurstColors: bool, - [<Optional; DefaultParameterValue(null)>] ?SunBurstColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendTreeMapColors: bool, - [<Optional; DefaultParameterValue(null)>] ?TreeMapColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendIcicleColors: bool, - [<Optional; DefaultParameterValue(null)>] ?IcicleColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?Annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(null)>] ?Shapes: seq<Shape>, - [<Optional; DefaultParameterValue(null)>] ?Images: seq<LayoutImage>, - [<Optional; DefaultParameterValue(null)>] ?Sliders: seq<Slider>, - [<Optional; DefaultParameterValue(null)>] ?UpdateMenus: seq<UpdateMenu> - ) = - this - |> Chart.withLayoutStyle ( - ?Title = Title, - ?ShowLegend = ShowLegend, - ?Margin = Margin, - ?AutoSize = AutoSize, - ?Width = Width, - ?Height = Height, - ?Font = Font, - ?UniformText = UniformText, - ?Separators = Separators, - ?PaperBGColor = PaperBGColor, - ?PlotBGColor = PlotBGColor, - ?AutoTypeNumbers = AutoTypeNumbers, - ?Colorscale = Colorscale, - ?Colorway = Colorway, - ?ModeBar = ModeBar, - ?HoverMode = HoverMode, - ?ClickMode = ClickMode, - ?DragMode = DragMode, - ?SelectDirection = SelectDirection, - ?HoverDistance = HoverDistance, - ?SpikeDistance = SpikeDistance, - ?Hoverlabel = Hoverlabel, - ?Transition = Transition, - ?DataRevision = DataRevision, - ?UIRevision = UIRevision, - ?EditRevision = EditRevision, - ?SelectRevision = SelectRevision, - ?Template = Template, - ?Meta = Meta, - ?Computed = Computed, - ?Grid = Grid, - ?Calendar = Calendar, - ?NewShape = NewShape, - ?ActiveShape = ActiveShape, - ?HideSources = HideSources, - ?BarGap = BarGap, - ?BarGroupGap = BarGroupGap, - ?BarMode = BarMode, - ?BarNorm = BarNorm, - ?ExtendPieColors = ExtendPieColors, - ?HiddenLabels = HiddenLabels, - ?PieColorWay = PieColorWay, - ?BoxGap = BoxGap, - ?BoxGroupGap = BoxGroupGap, - ?BoxMode = BoxMode, - ?ViolinGap = ViolinGap, - ?ViolinGroupGap = ViolinGroupGap, - ?ViolinMode = ViolinMode, - ?WaterfallGap = WaterfallGap, - ?WaterfallGroupGap = WaterfallGroupGap, - ?WaterfallMode = WaterfallMode, - ?FunnelGap = FunnelGap, - ?FunnelGroupGap = FunnelGroupGap, - ?FunnelMode = FunnelMode, - ?ExtendFunnelAreaColors = ExtendFunnelAreaColors, - ?FunnelAreaColorWay = FunnelAreaColorWay, - ?ExtendSunBurstColors = ExtendSunBurstColors, - ?SunBurstColorWay = SunBurstColorWay, - ?ExtendTreeMapColors = ExtendTreeMapColors, - ?TreeMapColorWay = TreeMapColorWay, - ?ExtendIcicleColors = ExtendIcicleColors, - ?IcicleColorWay = IcicleColorWay, - ?Annotations = Annotations, - ?Shapes = Shapes, - ?Images = Images, - ?Sliders = Sliders, - ?UpdateMenus = UpdateMenus - ) - - // Set the LayoutGrid options of a Chart - [<CompiledName("WithLayoutGrid")>] - [<Extension>] - member this.WithLayoutGrid(layoutGrid: LayoutGrid) = - let layout = - GenericChart.getLayout this |> Layout.setLayoutGrid layoutGrid - - GenericChart.setLayout layout this - - // Set the LayoutGrid options of a Chart - [<CompiledName("WithLegend")>] - member this.WithLegend(legend: Legend, [<Optional; DefaultParameterValue(null)>] ?Id: int) = - this |> Chart.withLegend (legend, ?Id = Id) - - /// Sets a map for the given chart (will only work with traces supporting geo, e.g. choropleth, scattergeo) - [<CompiledName("WithMap")>] - [<Extension>] - member this.WithGeo(geo: Geo, [<Optional; DefaultParameterValue(null)>] ?Id: int) = - this |> Chart.withGeo (geo, ?Id = Id) - - /// Sets a mapbox for the given chart (will only work with traces supporting mapboxes, e.g. choroplethmapbox, scattermapbox) - [<CompiledName("WithMapbox")>] - [<Extension>] - member this.withMapbox(mapBox: Mapbox, [<Optional; DefaultParameterValue(null)>] ?Id: int) = - this |> Chart.withMapbox (mapBox, ?Id = Id) - - - /// Sets the map style for the given chart (will only work with traces supporting geo, e.g. choropleth, scattergeo) - /// - /// Parameters : - /// - /// FitBounds : Determines if and how this subplot's view settings are auto-computed to fit trace data - /// - /// Resolution : Sets the resolution of the base layers - /// - /// Scope : Set the scope of the map. - /// - /// Projection : Determines the type of projection used to display the map - /// - /// Center : Sets the (lon,lat) coordinates of the map's center. By default, the map's longitude center lies at the middle of the longitude range for scoped projection and above `projection.rotation.lon` otherwise. For all projection types, the map's latitude center lies at the middle of the latitude range by default. - /// - /// Visible : Whether or not the base layers are visible - /// - /// Domain : The domain of this geo subplot - /// - /// ShowCoastLine : Sets whether or not the coastlines are drawn. - /// - /// CoastLineColor : Sets the coastline color. - /// - /// CoastLineWidth : Sets the coastline stroke width (in px). - /// - /// ShowLand : Sets whether or not land masses are filled in color. - /// - /// LandColor : Sets the land mass color. - /// - /// ShowOcean : Sets whether or not oceans are filled in color. - /// - /// OceanColor : Sets the ocean color - /// - /// ShowLakes : Sets whether or not lakes are drawn. - /// - /// LakeColor : Sets the color of the lakes. - /// - /// ShowRivers : Sets whether or not rivers are drawn. - /// - /// RiverColor : Sets color of the rivers. - /// - /// RiverWidth : Sets the stroke width (in px) of the rivers. - /// - /// ShowCountries : Sets whether or not country boundaries are drawn. - /// - /// CountryColor : Sets line color of the country boundaries. - /// - /// CountryWidth : Sets line width (in px) of the country boundaries. - /// - /// ShowSubunits : Sets whether or not boundaries of subunits within countries (e.g. states, provinces) are drawn. - /// - /// SubunitColor : Sets the color of the subunits boundaries. - /// - /// SubunitWidth : Sets the stroke width (in px) of the subunits boundaries. - /// - /// ShowFrame : Sets whether or not a frame is drawn around the map. - /// - /// FrameColor : Sets the color the frame. - /// - /// FrameWidth : Sets the stroke width (in px) of the frame. - /// - /// BgColor : Set the background color of the map - /// - /// LatAxis : Sets the latitudinal axis for this geo trace - /// - /// LonAxis : Sets the longitudinal axis for this geo trace - [<CompiledName("WithGeoStyle")>] - [<Extension>] - member this.WithGeoStyle - ( - [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?FitBounds: StyleParam.GeoFitBounds, - [<Optional; DefaultParameterValue(null)>] ?Resolution: StyleParam.GeoResolution, - [<Optional; DefaultParameterValue(null)>] ?Scope: StyleParam.GeoScope, - [<Optional; DefaultParameterValue(null)>] ?Projection: GeoProjection, - [<Optional; DefaultParameterValue(null)>] ?Center: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?ShowCoastLines: bool, - [<Optional; DefaultParameterValue(null)>] ?CoastLineColor, - [<Optional; DefaultParameterValue(null)>] ?CoastLineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowLand: bool, - [<Optional; DefaultParameterValue(null)>] ?LandColor, - [<Optional; DefaultParameterValue(null)>] ?ShowOcean: bool, - [<Optional; DefaultParameterValue(null)>] ?OceanColor, - [<Optional; DefaultParameterValue(null)>] ?ShowLakes: bool, - [<Optional; DefaultParameterValue(null)>] ?LakeColor, - [<Optional; DefaultParameterValue(null)>] ?ShowRivers: bool, - [<Optional; DefaultParameterValue(null)>] ?RiverColor, - [<Optional; DefaultParameterValue(null)>] ?RiverWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowCountries: bool, - [<Optional; DefaultParameterValue(null)>] ?CountryColor, - [<Optional; DefaultParameterValue(null)>] ?CountryWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowSubunits: bool, - [<Optional; DefaultParameterValue(null)>] ?SubunitColor, - [<Optional; DefaultParameterValue(null)>] ?SubunitWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowFrame: bool, - [<Optional; DefaultParameterValue(null)>] ?FrameColor, - [<Optional; DefaultParameterValue(null)>] ?FrameWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BgColor, - [<Optional; DefaultParameterValue(null)>] ?LatAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?LonAxis: LinearAxis - ) = - this - |> Chart.withGeoStyle ( - ?FitBounds = FitBounds, - ?Resolution = Resolution, - ?Scope = Scope, - ?Projection = Projection, - ?Center = Center, - ?Visible = Visible, - ?Domain = Domain, - ?ShowCoastLines = ShowCoastLines, - ?CoastLineColor = CoastLineColor, - ?CoastLineWidth = CoastLineWidth, - ?ShowLand = ShowLand, - ?LandColor = LandColor, - ?ShowOcean = ShowOcean, - ?OceanColor = OceanColor, - ?ShowLakes = ShowLakes, - ?LakeColor = LakeColor, - ?ShowRivers = ShowRivers, - ?RiverColor = RiverColor, - ?RiverWidth = RiverWidth, - ?ShowCountries = ShowCountries, - ?CountryColor = CountryColor, - ?CountryWidth = CountryWidth, - ?ShowSubunits = ShowSubunits, - ?SubunitColor = SubunitColor, - ?SubunitWidth = SubunitWidth, - ?ShowFrame = ShowFrame, - ?FrameColor = FrameColor, - ?FrameWidth = FrameWidth, - ?BgColor = BgColor, - ?LatAxis = LatAxis, - ?LonAxis = LonAxis - ) - - [<CompiledName("WithGeoProjection")>] - [<Extension>] - member this.WithMapProjection - ( - projectionType: StyleParam.GeoProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Rotation, - [<Optional; DefaultParameterValue(null)>] ?Parallels, - [<Optional; DefaultParameterValue(null)>] ?Scale, - [<Optional; DefaultParameterValue(null)>] ?Id - ) = - this - |> Chart.withGeoProjection ( - projectionType = projectionType, - ?Rotation = Rotation, - ?Parallels = Parallels, - ?Scale = Scale - ) - - - // Set the LayoutGrid options of a Chart - [<CompiledName("WithLayoutGridStyle")>] - [<Extension>] - member this.WithLayoutGridStyle - ( - [<Optional; DefaultParameterValue(null)>] ?SubPlots: - (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [<Optional; DefaultParameterValue(null)>] ?XAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?YAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?Rows: int, - [<Optional; DefaultParameterValue(null)>] ?Columns: int, - [<Optional; DefaultParameterValue(null)>] ?RowOrder: StyleParam.LayoutGridRowOrder, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.LayoutGridPattern, - [<Optional; DefaultParameterValue(null)>] ?XGap: float, - [<Optional; DefaultParameterValue(null)>] ?YGap: float, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?XSide: StyleParam.LayoutGridXSide, - [<Optional; DefaultParameterValue(null)>] ?YSide: StyleParam.LayoutGridYSide - ) = - - let layout = GenericChart.getLayout this in - - let updatedGrid = - let currentGrid = - match layout.TryGetTypedValue<LayoutGrid> "grid" with - | Some grid -> grid - | None -> LayoutGrid() - - currentGrid - |> LayoutGrid.style ( - ?SubPlots = SubPlots, - ?XAxes = XAxes, - ?YAxes = YAxes, - ?Rows = Rows, - ?Columns = Columns, - ?RowOrder = RowOrder, - ?Pattern = Pattern, - ?XGap = XGap, - ?YGap = YGap, - ?Domain = Domain, - ?XSide = XSide, - ?YSide = YSide - ) in - - let updatedLayout = - layout |> Layout.setLayoutGrid updatedGrid in - - GenericChart.setLayout updatedLayout this - - [<CompiledName("WithConfig")>] - [<Extension>] - member this.WithConfig(config: Config) = GenericChart.setConfig config this - - [<CompiledName("WithAnnotation")>] - [<Extension>] - member this.WithAnnotation(annotation: Annotation, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = - this |> Chart.withAnnotation (annotation, ?Append = Append) - - [<CompiledName("WithAnnotations")>] - [<Extension>] - member this.WithAnnotations - ( - annotations: Annotation seq, - [<Optional; DefaultParameterValue(true)>] ?Append: bool - ) = - this |> Chart.withAnnotations (annotations, ?Append = Append) - - // Set the title of a Chart - [<CompiledName("WithTitle")>] - [<Extension>] - member this.WithTitle(title, [<Optional; DefaultParameterValue(null)>] ?TitleFont) = - let layout = - Layout() |> Layout.style (Title = Title.init (Text = title, ?Font = TitleFont)) - - GenericChart.addLayout layout this - - // Set showLegend of a Chart - [<CompiledName("WithLegend")>] - [<Extension>] - member this.WithLegend(showlegend) = - let layout = - Layout() |> Layout.style (ShowLegend = showlegend) - - GenericChart.addLayout layout this - - // Set the size of a Chart - [<CompiledName("WithSize")>] - [<Extension>] - member this.WithSize(width, height) = - let layout = - GenericChart.getLayout this |> Layout.style (Width = width, Height = height) - - GenericChart.setLayout layout this - - // Set the margin of a Chart - [<CompiledName("WithMargin")>] - [<Extension>] - member this.WithMargin(margin: Margin) = - let layout = - GenericChart.getLayout this |> Layout.style (Margin = margin) - - GenericChart.setLayout layout this - - // Set the margin of a Chart - [<CompiledName("WithMarginSize")>] - [<Extension>] - member this.WithMarginSize - ( - [<Optional; DefaultParameterValue(null)>] ?Left, - [<Optional; DefaultParameterValue(null)>] ?Right, - [<Optional; DefaultParameterValue(null)>] ?Top, - [<Optional; DefaultParameterValue(null)>] ?Bottom, - [<Optional; DefaultParameterValue(null)>] ?Pad, - [<Optional; DefaultParameterValue(null)>] ?Autoexpand - ) = - let margin = - Margin.init ( - ?Left = Left, - ?Right = Right, - ?Top = Top, - ?Bottom = Bottom, - ?Pad = Pad, - ?Autoexpand = Autoexpand - ) - - this |> Chart.withMargin (margin) - - [<CompiledName("WithTemplate")>] - [<Extension>] - member this.WithTemplate(template: Template) = - this - |> GenericChart.mapLayout (fun l -> - template |> DynObj.setValue l "template" - l) - - // TODO: Include withLegend & withLegendStyle - - //Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) If "circle", a circle is drawn from - //((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) If "rect", a rectangle is drawn linking - //(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) - [<CompiledName("WithShape")>] - [<Extension>] - member this.WithShape(shape: Shape, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = - this |> Chart.withShape (shape, ?Append = Append) - - [<CompiledName("WithShapes")>] - [<Extension>] - member this.WithShapes(shapes: Shape seq, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = - this |> Chart.withShapes (shapes, ?Append = Append) - - // ############################################################ - // ####################### Apply to DisplayOptions - - /// Show chart in browser - [<CompiledName("WithDescription")>] - [<Extension>] - member this.WithDescription(description: XmlNode list) = - this |> Chart.withDescription description - - /// Adds the given additional script tags on the chart's DisplayOptions. They will be included in the document's <head> - [<CompiledName("WithAdditionalHeadTags")>] - [<Extension>] - member this.WithAdditionalHeadTags(additionalHeadTags: XmlNode list) = - this |> Chart.withAdditionalHeadTags additionalHeadTags - - /// Sets the given additional script tags on the chart's DisplayOptions. They will be included in the document's <head> - [<CompiledName("WithHeadTags")>] - [<Extension>] - member this.WithHeadTags(headTags: XmlNode list) = this |> Chart.withHeadTags headTags - - /// Adds the necessary script tags to render tex strings to the chart's DisplayOptions - [<CompiledName("WithMathTex")>] - [<Extension>] - member this.WithMathTex - ( - [<Optional; DefaultParameterValue(true)>] ?AppendTags: bool, - [<Optional; DefaultParameterValue(3)>] ?MathJaxVersion: int - ) = - let append = - Option.defaultValue true AppendTags - - this |> Chart.withMathTex (AppendTags = append, ?MathJaxVersion = MathJaxVersion) - - - /// Save chart as html single page - [<CompiledName("SaveHtml")>] - [<Extension>] - member this.SaveHtml(path: string, [<Optional; DefaultParameterValue(null)>] ?OpenInBrowser: bool) = - this |> Chart.saveHtml (path, ?OpenInBrowser = OpenInBrowser) - - /// Show chart in browser - [<CompiledName("Show")>] - [<Extension>] - member this.Show() = this |> Chart.show - - /// Sets the polar object with the given id on the chart layout - [<CompiledName("WithPolar")>] - member this.WithPolar(polar: Polar, [<Optional; DefaultParameterValue(null)>] ?Id) = - this |> Chart.withPolar (polar, ?Id = Id) - - /// Sets the angular axis of the polar object with the given id on the chart layout - [<CompiledName("WithAngularAxis")>] - member this.WithAngularAxis(angularAxis: AngularAxis, [<Optional; DefaultParameterValue(null)>] ?Id) = - this |> Chart.withAngularAxis (angularAxis, ?Id = Id) - - /// Sets the radial axis of the polar object with the given id on the chart layout - [<CompiledName("WithRadialAxis")>] - member this.WithRadialAxis(radialAxis: RadialAxis, [<Optional; DefaultParameterValue(null)>] ?Id) = - this |> Chart.withRadialAxis (radialAxis, ?Id = Id) - - /// Sets the color axis of the color axis with the given id on the chart layout - [<CompiledName("WithColorAxis")>] - member this.WithColorAxis(colorAxis: ColorAxis, [<Optional; DefaultParameterValue(null)>] ?Id) = - this |> Chart.withColorAxis (colorAxis, ?Id = Id) - - /// Sets the scene object with the given id on the chart layout - [<CompiledName("WithScene")>] - member this.WithScene(scene: Scene, [<Optional; DefaultParameterValue(null)>] ?Id) = - this |> Chart.withScene (scene, ?Id = Id) - - /// Sets the scene object with the given id on the chart layout - [<CompiledName("WithTernary")>] - member this.WithTernary(ternary: Ternary, [<Optional; DefaultParameterValue(null)>] ?Id) = - this |> Chart.withTernary (ternary, ?Id = Id) - - - [<CompiledName("WithLayoutImage")>] - [<Extension>] - member this.WithLayoutImage(image: LayoutImage, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = - this |> Chart.withLayoutImage (image, ?Append = Append) - - [<CompiledName("WithLayoutImages")>] - [<Extension>] - member this.WithLayoutImages - ( - images: seq<LayoutImage>, - [<Optional; DefaultParameterValue(true)>] ?Append: bool - ) = - this |> Chart.withLayoutImages (images, ?Append = Append) - - [<CompiledName("WithUpdateMenu")>] - [<Extension>] - member this.WithUpdateMenu(updateMenu: UpdateMenu, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = - this |> Chart.withUpdateMenu (updateMenu, ?Append = Append) - - [<CompiledName("WithUpdateMenus")>] - [<Extension>] - member this.WithUpdateMenus - ( - updateMenus: seq<UpdateMenu>, - [<Optional; DefaultParameterValue(true)>] ?Append: bool - ) = - this |> Chart.withUpdateMenus (updateMenus, ?Append = Append) - - [<CompiledName("WithSlider")>] - [<Extension>] - member this.WithSlider(slider: Slider) = this |> Chart.withSlider (slider) - - [<CompiledName("WithSliders")>] - [<Extension>] - member this.WithSliders(sliders: seq<Slider>) = this |> Chart.withSliders sliders diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index 151c896ea..5574d5700 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -23,8 +23,7 @@ type Chart = /// </summary> /// <param name="path">The path to save the chart html at.</param> /// <param name="OpenInBrowser">Whether or not to open the generated file in the browser (default: false)</param> - [<CompiledName("SaveHtml")>] - static member saveHtml(path: string, [<Optional; DefaultParameterValue(null)>] ?OpenInBrowser: bool) = + static member saveHtml(path: string, ?OpenInBrowser: bool) = fun (ch: GenericChart) -> let show = defaultArg OpenInBrowser false @@ -45,7 +44,6 @@ type Chart = /// Saves the given chart as a temporary html file and opens it in the browser. /// </summary> /// <param name="ch">The chart to show in the browser</param> - [<CompiledName("Show")>] static member show(ch: GenericChart) = let guid = Guid.NewGuid().ToString() let tempPath = Path.GetTempPath() @@ -55,7 +53,6 @@ type Chart = // ####################### /// Create a combined chart with the given charts merged - [<CompiledName("Combine")>] static member combine(gCharts: seq<GenericChart>) = GenericChart.combine gCharts //============================================================================================================== @@ -68,7 +65,7 @@ type Chart = LinearAxis.init (ShowGrid = false, ShowLine = false, ShowTickLabels = false, ZeroLine = false) let trace = Trace2D.initScatter (id) - trace.Remove("type") |> ignore + trace.RemoveProperty("type") |> ignore GenericChart.ofTraceObject false trace |> GenericChart.mapLayout (fun l -> @@ -89,15 +86,14 @@ type Chart = /// <param name="LegendRank">Sets the legend rank for the chart's trace(s). Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.</param> /// <param name="LegendGroup">Sets the legend group for the chart's trace(s). Traces part of the same legend group hide/show at the same time when toggling legend items.</param> /// <param name="LegendGroupTitle">Sets the title for the chart's trace legend group </param> - [<CompiledName("WithTraceInfo")>] static member withTraceInfo ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title ) = fun (ch: GenericChart) -> ch @@ -123,11 +119,10 @@ type Chart = /// </summary> /// <param name="X">The new x axis anchor id for the chart's cartesian and/or carpet trace(s)</param> /// <param name="Y">The new x axis anchor id for the chart's cartesian and/or carpet trace(s)</param> - [<CompiledName("WithAxisAnchor")>] static member withAxisAnchor ( - [<Optional; DefaultParameterValue(null)>] ?X, - [<Optional; DefaultParameterValue(null)>] ?Y + ?X, + ?Y ) = let idx = X |> Option.map StyleParam.LinearAxisId.X @@ -150,7 +145,6 @@ type Chart = /// Sets the color axis id for the chart's trace(s). /// </summary> /// <param name="id">The new color axis id for the chart's trace(s)</param> - [<CompiledName("WithColorAxisAnchor")>] static member withColorAxisAnchor(id: int) = fun (ch: GenericChart) -> ch |> GenericChart.mapTrace (Trace.setColorAxisAnchor id) @@ -158,7 +152,6 @@ type Chart = /// Sets the legend id for the chart's trace(s). /// </summary> /// <param name="id">The new Legend id for the chart's trace(s)</param> - [<CompiledName("WithLegendAnchor")>] static member withLegendAnchor(id: int) = fun (ch: GenericChart) -> ch |> GenericChart.mapTrace (Trace.setLegendAnchor id) @@ -167,7 +160,6 @@ type Chart = /// </summary> /// <param name="marker">The new marker for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already a marker (default is false)</param> - [<CompiledName("SetMarker")>] static member setMarker(marker: Marker, ?Combine: bool) = let combine = defaultArg Combine false @@ -183,7 +175,6 @@ type Chart = /// If there is already a marker set, the objects are combined. /// </summary> /// <param name="marker">The new marker for the chart's trace(s)</param> - [<CompiledName("WithMarker")>] static member withMarker(marker: Marker) = (fun (ch: GenericChart) -> ch |> Chart.setMarker (marker, true)) @@ -224,43 +215,42 @@ type Chart = /// <param name="MultiSymbol3D">Sets the individual marker symbols for 3d traces.</param> /// <param name="OutlierColor">Sets the color of the outlier sample points.</param> /// <param name="OutlierWidth">Sets the width of the outlier sample points.</param> - [<CompiledName("WithMarkerStyle")>] static member withMarkerStyle ( - [<Optional; DefaultParameterValue(null)>] ?Angle: float, - [<Optional; DefaultParameterValue(null)>] ?AngleRef: StyleParam.AngleRef, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Colors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?CornerRadius: int, - [<Optional; DefaultParameterValue(null)>] ?Gradient: Gradient, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Pattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?SizeMin: int, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.MarkerSizeMode, - [<Optional; DefaultParameterValue(null)>] ?SizeRef: int, - [<Optional; DefaultParameterValue(null)>] ?StandOff: float, - [<Optional; DefaultParameterValue(null)>] ?MultiStandOff: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Symbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Symbol3D: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: int + ?Angle: float, + ?AngleRef: StyleParam.AngleRef, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?Colors: seq<Color>, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?Colorscale: StyleParam.Colorscale, + ?CornerRadius: int, + ?Gradient: Gradient, + ?Outline: Line, + ?MaxDisplayed: int, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Pattern: Pattern, + ?ReverseScale: bool, + ?ShowScale: bool, + ?Size: int, + ?MultiSize: seq<int>, + ?SizeMin: int, + ?SizeMode: StyleParam.MarkerSizeMode, + ?SizeRef: int, + ?StandOff: float, + ?MultiStandOff: seq<float>, + ?Symbol: StyleParam.MarkerSymbol, + ?MultiSymbol: seq<StyleParam.MarkerSymbol>, + ?Symbol3D: StyleParam.MarkerSymbol3D, + ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, + ?OutlierColor: Color, + ?OutlierWidth: int ) = fun (ch: GenericChart) -> ch @@ -308,7 +298,6 @@ type Chart = /// </summary> /// <param name="line">The new Line for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already a Line (default is false)</param> - [<CompiledName("SetLine")>] static member setLine(line: Line, ?Combine: bool) = let combine = defaultArg Combine false @@ -324,7 +313,6 @@ type Chart = /// If there is already a Line set, the objects are combined. /// </summary> /// <param name="line">The new line for the chart's trace(s)</param> - [<CompiledName("WithLine")>] static member withLine(line: Line) = (fun (ch: GenericChart) -> ch |> Chart.setLine (line, true)) @@ -351,29 +339,28 @@ type Chart = /// <param name="MultiWidth">Sets the individual line width (in px).</param> /// <param name="OutlierColor">Sets the color of the outline of outliers</param> /// <param name="OutlierWidth">Sets the width of the outline of outliers</param> - [<CompiledName("WithLineStyle")>] static member withLineStyle ( - [<Optional; DefaultParameterValue(null)>] ?BackOff: StyleParam.BackOff, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Dash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.Shape, - [<Optional; DefaultParameterValue(null)>] ?Simplify: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq<float>, + ?OutlierColor: Color, + ?OutlierWidth: float ) = fun (ch: GenericChart) -> ch @@ -407,7 +394,6 @@ type Chart = /// </summary> /// <param name="xError">The new Error in the x dimension for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Error object set (default is false)</param> - [<CompiledName("SetXError")>] static member setXError(xError: Error, ?Combine: bool) = let combine = defaultArg Combine false @@ -423,7 +409,6 @@ type Chart = /// If there is already an error set, the objects are combined. /// </summary> /// <param name="xError">The new error for the chart's trace(s)</param> - [<CompiledName("WithXError")>] static member withXError(xError: Error) = (fun (ch: GenericChart) -> ch |> Chart.setXError (xError, true)) @@ -443,22 +428,21 @@ type Chart = /// <param name ="Color">Sets the stoke color of the error bars.</param> /// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param> /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> - [<CompiledName("WithXErrorStyle")>] static member withXErrorStyle ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = fun (ch: GenericChart) -> ch @@ -485,7 +469,6 @@ type Chart = /// </summary> /// <param name="yError">The new Error in the x dimension for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Error object set (default is false)</param> - [<CompiledName("SetYError")>] static member setYError(yError: Error, ?Combine: bool) = let combine = defaultArg Combine false @@ -501,7 +484,6 @@ type Chart = /// If there is already an error set, the objects are combined. /// </summary> /// <param name="yError">The new error for the chart's trace(s)</param> - [<CompiledName("WithYError")>] static member withYError(yError: Error) = (fun (ch: GenericChart) -> ch |> Chart.setYError (yError, true)) @@ -521,22 +503,21 @@ type Chart = /// <param name ="Color">Sets the stoke color of the error bars.</param> /// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param> /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> - [<CompiledName("WithYErrorStyle")>] static member withYErrorStyle ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = fun (ch: GenericChart) -> ch @@ -563,7 +544,6 @@ type Chart = /// </summary> /// <param name="zError">The new Error in the x dimension for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Error object set (default is false)</param> - [<CompiledName("SetZError")>] static member setZError(zError: Error, ?Combine: bool) = let combine = defaultArg Combine false @@ -579,7 +559,6 @@ type Chart = /// If there is already an error set, the objects are combined. /// </summary> /// <param name="zError">The new error for the chart's trace(s)</param> - [<CompiledName("WithZError")>] static member withZError(zError: Error) = (fun (ch: GenericChart) -> ch |> Chart.setZError (zError, true)) @@ -599,22 +578,21 @@ type Chart = /// <param name ="Color">Sets the stoke color of the error bars.</param> /// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param> /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> - [<CompiledName("WithZErrorStyle")>] static member withZErrorStyle ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = fun (ch: GenericChart) -> ch @@ -641,7 +619,6 @@ type Chart = /// </summary> /// <param name="colorBar">The new ColorBar for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already a ColorBar object set (default is false)</param> - [<CompiledName("SetColorBar")>] static member setColorBar(colorBar: ColorBar, ?Combine: bool) = let combine = defaultArg Combine false @@ -657,13 +634,16 @@ type Chart = /// If there is already a ColorBar set, the objects are combined. /// </summary> /// <param name="colorbar">The new ColorBar for the chart's trace(s)</param> - [<CompiledName("WithColorBar")>] static member withColorBar(colorbar: ColorBar) = (fun (ch: GenericChart) -> ch |> Chart.setColorBar (colorbar, true)) /// <summary> /// Applies the given styles to the ColorBar object(s) of the chart's trace(s). Overwrites attributes with the same name that are already set. /// </summary> + /// <param name="TitleText">Sets the colorbar's title</param> + /// <param name="TitleFont">Sets the title font.</param> + /// <param name="TitleStandoff">Sets the standoff distance (in px) between the axis labels and the title text The default value is a function of the axis tick labels, the title `font.size` and the axis `linewidth`. Note that the axis title position is always constrained within the margins, so the actual standoff distance is always less than the set or default value. By setting `standoff` and turning on `automargin`, plotly.js will push the margins to fit the axis title at given standoff distance.</param> + /// <param name="Title">Sets the Title object (use this for more finegrained control than the other title-associated arguments)</param> /// <param name="BGColor">Sets the color of padded area.</param> /// <param name="BorderColor">Sets the axis line color.</param> /// <param name="BorderWidth">Sets the width (in px) or the border enclosing this color bar.</param> @@ -700,7 +680,6 @@ type Chart = /// <param name="TickText">Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`.</param> /// <param name="TickVals">Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`.</param> /// <param name="TickWidth">Sets the tick width (in px).</param> - /// <param name="Title">Sets the ColorBar title.</param> /// <param name="X">Sets the x position of the color bar (in plot fraction).</param> /// <param name="XAnchor">Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar.</param> /// <param name="XPad">Sets the amount of padding (in px) along the x direction.</param> @@ -709,58 +688,57 @@ type Chart = /// <param name="YAnchor">Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar.</param> /// <param name="YPad">Sets the amount of padding (in px) along the y direction.</param> /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> - [<CompiledName("WithColorbarStyle")>] static member withColorBarStyle ( - [<Optional; DefaultParameterValue(null)>] ?TitleText: string, - [<Optional; DefaultParameterValue(null)>] ?TitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TitleStandoff: int, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?DTick: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Len: float, - [<Optional; DefaultParameterValue(null)>] ?LenMode: StyleParam.UnitMode, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?ThicknessMode: StyleParam.UnitMode, - [<Optional; DefaultParameterValue(null)>] ?Tick0: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [<Optional; DefaultParameterValue(null)>] ?TickLabelPosition: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?TickLen: float, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: float, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.HorizontalAlign, - [<Optional; DefaultParameterValue(null)>] ?XPad: float, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?YPad: float, - [<Optional; DefaultParameterValue(null)>] ?YRef: string + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?DTick: IConvertible, + ?ExponentFormat: StyleParam.ExponentFormat, + ?LabelAlias: DynamicObj, + ?Len: float, + ?LenMode: StyleParam.UnitMode, + ?MinExponent: float, + ?NTicks: int, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Thickness: float, + ?ThicknessMode: StyleParam.UnitMode, + ?Tick0: IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLen: float, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: float, + ?X: float, + ?XAnchor: StyleParam.HorizontalAlign, + ?XPad: float, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.VerticalAlign, + ?YPad: float, + ?YRef: string ) = let title = @@ -829,7 +807,6 @@ type Chart = /// /// If there is already an layout set, the object is replaced. /// </summary> - [<CompiledName("SetLayout")>] static member setLayout(layout: Layout) = (fun (ch: GenericChart) -> GenericChart.setLayout layout ch) @@ -838,7 +815,6 @@ type Chart = /// /// If there is already an layout set, the objects are combined. /// </summary> - [<CompiledName("WithLayout")>] static member withLayout(layout: Layout) = (fun (ch: GenericChart) -> GenericChart.addLayout layout ch) @@ -919,83 +895,82 @@ type Chart = /// <param name="Images">A collection containing all Images of this layout. </param> /// <param name="Sliders">A collection containing all Sliders of this layout. </param> /// <param name="UpdateMenus">A collection containing all UpdateMenus of this layout. </param> - [<CompiledName("WithLayoutStyle")>] static member withLayoutStyle ( - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Margin: Margin, - [<Optional; DefaultParameterValue(null)>] ?AutoSize: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: int, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?UniformText: UniformText, - [<Optional; DefaultParameterValue(null)>] ?Separators: string, - [<Optional; DefaultParameterValue(null)>] ?PaperBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?PlotBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: DefaultColorScales, - [<Optional; DefaultParameterValue(null)>] ?Colorway: Color, - [<Optional; DefaultParameterValue(null)>] ?ModeBar: ModeBar, - [<Optional; DefaultParameterValue(null)>] ?HoverMode: StyleParam.HoverMode, - [<Optional; DefaultParameterValue(null)>] ?ClickMode: StyleParam.ClickMode, - [<Optional; DefaultParameterValue(null)>] ?DragMode: StyleParam.DragMode, - [<Optional; DefaultParameterValue(null)>] ?SelectDirection: StyleParam.SelectDirection, - [<Optional; DefaultParameterValue(null)>] ?ActiveSelection: ActiveSelection, - [<Optional; DefaultParameterValue(null)>] ?NewSelection: NewSelection, - [<Optional; DefaultParameterValue(null)>] ?HoverDistance: int, - [<Optional; DefaultParameterValue(null)>] ?SpikeDistance: int, - [<Optional; DefaultParameterValue(null)>] ?Hoverlabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Transition: Transition, - [<Optional; DefaultParameterValue(null)>] ?DataRevision: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?EditRevision: string, - [<Optional; DefaultParameterValue(null)>] ?SelectRevision: string, - [<Optional; DefaultParameterValue(null)>] ?Template: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?Computed: string, - [<Optional; DefaultParameterValue(null)>] ?Grid: LayoutGrid, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?MinReducedHeight: int, - [<Optional; DefaultParameterValue(null)>] ?MinReducedWidth: int, - [<Optional; DefaultParameterValue(null)>] ?NewShape: NewShape, - [<Optional; DefaultParameterValue(null)>] ?ActiveShape: ActiveShape, - [<Optional; DefaultParameterValue(null)>] ?HideSources: bool, - [<Optional; DefaultParameterValue(null)>] ?ScatterGap: float, - [<Optional; DefaultParameterValue(null)>] ?ScatterMode: StyleParam.ScatterMode, - [<Optional; DefaultParameterValue(null)>] ?BarGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarMode: StyleParam.BarMode, - [<Optional; DefaultParameterValue(null)>] ?BarNorm: StyleParam.BarNorm, - [<Optional; DefaultParameterValue(null)>] ?ExtendPieColors: bool, - [<Optional; DefaultParameterValue(null)>] ?HiddenLabels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?PieColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?BoxGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxMode: StyleParam.BoxMode, - [<Optional; DefaultParameterValue(null)>] ?ViolinGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinMode: StyleParam.ViolinMode, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallMode: StyleParam.WaterfallMode, - [<Optional; DefaultParameterValue(null)>] ?FunnelGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelMode: StyleParam.FunnelMode, - [<Optional; DefaultParameterValue(null)>] ?ExtendFunnelAreaColors: bool, - [<Optional; DefaultParameterValue(null)>] ?FunnelAreaColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendSunBurstColors: bool, - [<Optional; DefaultParameterValue(null)>] ?SunBurstColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendTreeMapColors: bool, - [<Optional; DefaultParameterValue(null)>] ?TreeMapColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendIcicleColors: bool, - [<Optional; DefaultParameterValue(null)>] ?IcicleColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?Annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(null)>] ?Shapes: seq<Shape>, - [<Optional; DefaultParameterValue(null)>] ?Selections: seq<Selection>, - [<Optional; DefaultParameterValue(null)>] ?Images: seq<LayoutImage>, - [<Optional; DefaultParameterValue(null)>] ?Sliders: seq<Slider>, - [<Optional; DefaultParameterValue(null)>] ?UpdateMenus: seq<UpdateMenu> + ?Title: Title, + ?ShowLegend: bool, + ?Margin: Margin, + ?AutoSize: bool, + ?Width: int, + ?Height: int, + ?Font: Font, + ?UniformText: UniformText, + ?Separators: string, + ?PaperBGColor: Color, + ?PlotBGColor: Color, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?Colorscale: DefaultColorScales, + ?Colorway: Color, + ?ModeBar: ModeBar, + ?HoverMode: StyleParam.HoverMode, + ?ClickMode: StyleParam.ClickMode, + ?DragMode: StyleParam.DragMode, + ?SelectDirection: StyleParam.SelectDirection, + ?ActiveSelection: ActiveSelection, + ?NewSelection: NewSelection, + ?HoverDistance: int, + ?SpikeDistance: int, + ?Hoverlabel: Hoverlabel, + ?Transition: Transition, + ?DataRevision: string, + ?UIRevision: string, + ?EditRevision: string, + ?SelectRevision: string, + ?Template: DynamicObj, + ?Meta: string, + ?Computed: string, + ?Grid: LayoutGrid, + ?Calendar: StyleParam.Calendar, + ?MinReducedHeight: int, + ?MinReducedWidth: int, + ?NewShape: NewShape, + ?ActiveShape: ActiveShape, + ?HideSources: bool, + ?ScatterGap: float, + ?ScatterMode: StyleParam.ScatterMode, + ?BarGap: float, + ?BarGroupGap: float, + ?BarMode: StyleParam.BarMode, + ?BarNorm: StyleParam.BarNorm, + ?ExtendPieColors: bool, + ?HiddenLabels: seq<#IConvertible>, + ?PieColorWay: Color, + ?BoxGap: float, + ?BoxGroupGap: float, + ?BoxMode: StyleParam.BoxMode, + ?ViolinGap: float, + ?ViolinGroupGap: float, + ?ViolinMode: StyleParam.ViolinMode, + ?WaterfallGap: float, + ?WaterfallGroupGap: float, + ?WaterfallMode: StyleParam.WaterfallMode, + ?FunnelGap: float, + ?FunnelGroupGap: float, + ?FunnelMode: StyleParam.FunnelMode, + ?ExtendFunnelAreaColors: bool, + ?FunnelAreaColorWay: Color, + ?ExtendSunBurstColors: bool, + ?SunBurstColorWay: Color, + ?ExtendTreeMapColors: bool, + ?TreeMapColorWay: Color, + ?ExtendIcicleColors: bool, + ?IcicleColorWay: Color, + ?Annotations: seq<Annotation>, + ?Shapes: seq<Shape>, + ?Selections: seq<Selection>, + ?Images: seq<LayoutImage>, + ?Sliders: seq<Slider>, + ?UpdateMenus: seq<UpdateMenu> ) = (fun (ch: GenericChart) -> @@ -1086,13 +1061,12 @@ type Chart = /// <param name="id">The target axis id with which the axis should be set.</param> /// <param name="SceneAxis">If set on a scene, define whether it is the x, y or z axis. default is x.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetAxis")>] static member setAxis ( axis: LinearAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?SceneAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?SceneAxis: StyleParam.SubPlotId, + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1131,8 +1105,7 @@ type Chart = | StyleParam.SubPlotId.ZAxis -> scene |> Scene.getZAxis | _ -> failwith "invalid scene axis id" - let updatedAxis = - (DynObj.combine currentAxis axis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis axis let updatedScene = scene @@ -1167,8 +1140,7 @@ type Chart = /// </summary> /// <param name="xAxis">The x axis to set on the chart's layout</param> /// <param name="Id">The target axis id with which the axis should be set. Default is 1.</param> - [<CompiledName("WithXAxis")>] - static member withXAxis(xAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId) = + static member withXAxis(xAxis: LinearAxis, ?Id: StyleParam.SubPlotId) = let id = defaultArg Id (StyleParam.SubPlotId.XAxis 1) @@ -1210,39 +1182,38 @@ type Chart = /// <param name="BackgroundColor">Sets the background color of this axis' wall. (Only has an effect on 3D scenes)</param> /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> /// <param name="Id">The target axis id on which the styles should be applied. Default is 1.</param> - [<CompiledName("WithXAxisStyle")>] static member withXAxisStyle ( - [<Optional; DefaultParameterValue(null)>] ?TitleText: string, - [<Optional; DefaultParameterValue(null)>] ?TitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TitleStandoff: int, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?MinMax: #IConvertible * #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Mirror: StyleParam.Mirror, - [<Optional; DefaultParameterValue(null)>] ?ShowSpikes: bool, - [<Optional; DefaultParameterValue(null)>] ?SpikeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SpikeThickness: int, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Anchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Domain: float * float, - [<Optional; DefaultParameterValue(null)>] ?Position: float, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?RangeSlider: RangeSlider, - [<Optional; DefaultParameterValue(null)>] ?RangeSelector: RangeSelector, - [<Optional; DefaultParameterValue(null)>] ?BackgroundColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowBackground: bool, - [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?Color: Color, + ?AxisType: StyleParam.AxisType, + ?MinMax: #IConvertible * #IConvertible, + ?Mirror: StyleParam.Mirror, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?ShowLine: bool, + ?LineColor: Color, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?Domain: float * float, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?BackgroundColor: Color, + ?ShowBackground: bool, + ?Id: StyleParam.SubPlotId ) = let range = MinMax |> Option.map StyleParam.Range.ofMinMax @@ -1289,8 +1260,7 @@ type Chart = Chart.withXAxis (xaxis, ?Id = Id) /// Sets the range slider for the xAxis - [<CompiledName("WithXAxisRangeSlider")>] - static member withXAxisRangeSlider(rangeSlider: RangeSlider, [<Optional; DefaultParameterValue(null)>] ?Id) = + static member withXAxisRangeSlider(rangeSlider: RangeSlider, ?Id) = let xaxis = LinearAxis.init (RangeSlider = rangeSlider) @@ -1303,8 +1273,7 @@ type Chart = /// </summary> /// <param name="yAxis">The y axis to set on the chart's layout</param> /// <param name="Id">The target axis id with which the axis should be set. Default is 1.</param> - [<CompiledName("WithYAxis")>] - static member withYAxis(yAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId) = + static member withYAxis(yAxis: LinearAxis, ?Id: StyleParam.SubPlotId) = let id = defaultArg Id (StyleParam.SubPlotId.YAxis 1) @@ -1348,41 +1317,40 @@ type Chart = /// <param name="BackgroundColor">Sets the background color of this axis' wall. (Only has an effect on 3D scenes)</param> /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> /// <param name="Id">The target axis id on which the styles should be applied. Default is 1.</param> - [<CompiledName("WithYAxisStyle")>] static member withYAxisStyle ( - [<Optional; DefaultParameterValue(null)>] ?TitleText: string, - [<Optional; DefaultParameterValue(null)>] ?TitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TitleStandoff: int, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?MinMax: #IConvertible * #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Mirror: StyleParam.Mirror, - [<Optional; DefaultParameterValue(null)>] ?ShowSpikes: bool, - [<Optional; DefaultParameterValue(null)>] ?SpikeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SpikeThickness: int, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Anchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?AutoShift: bool, - [<Optional; DefaultParameterValue(null)>] ?Shift: int, - [<Optional; DefaultParameterValue(null)>] ?Domain: float * float, - [<Optional; DefaultParameterValue(null)>] ?Position: float, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?RangeSlider: RangeSlider, - [<Optional; DefaultParameterValue(null)>] ?RangeSelector: RangeSelector, - [<Optional; DefaultParameterValue(null)>] ?BackgroundColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowBackground: bool, - [<Optional; DefaultParameterValue(null)>] ?Id: StyleParam.SubPlotId + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?Color: Color, + ?AxisType: StyleParam.AxisType, + ?MinMax: #IConvertible * #IConvertible, + ?Mirror: StyleParam.Mirror, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?ShowLine: bool, + ?LineColor: Color, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?AutoShift: bool, + ?Shift: int, + ?Domain: float * float, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?BackgroundColor: Color, + ?ShowBackground: bool, + ?Id: StyleParam.SubPlotId ) = let range = MinMax |> Option.map StyleParam.Range.ofMinMax @@ -1437,8 +1405,7 @@ type Chart = /// </summary> /// <param name="zAxis">The z axis to set on the chart's layout</param> /// <param name="Id">The target scene id on which the axis should be set. Default is 1.</param> - [<CompiledName("WithZAxis")>] - static member withZAxis(zAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withZAxis(zAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Scene @@ -1479,38 +1446,37 @@ type Chart = /// <param name="BackgroundColor">Sets the background color of this axis' wall. (Only has an effect on 3D scenes)</param> /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> /// <param name="Id">The target scene id on which the axis styles should be applied. Default is 1.</param> - [<CompiledName("WithZAxisStyle")>] static member withZAxisStyle ( - [<Optional; DefaultParameterValue(null)>] ?TitleText: string, - [<Optional; DefaultParameterValue(null)>] ?TitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TitleStandoff: int, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?MinMax: #IConvertible * #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Mirror: StyleParam.Mirror, - [<Optional; DefaultParameterValue(null)>] ?ShowSpikes: bool, - [<Optional; DefaultParameterValue(null)>] ?SpikeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SpikeThickness: int, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Anchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Domain: float * float, - [<Optional; DefaultParameterValue(null)>] ?Position: float, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?RangeSlider: RangeSlider, - [<Optional; DefaultParameterValue(null)>] ?RangeSelector: RangeSelector, - [<Optional; DefaultParameterValue(null)>] ?BackgroundColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowBackground: bool, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?Color: Color, + ?AxisType: StyleParam.AxisType, + ?MinMax: #IConvertible * #IConvertible, + ?Mirror: StyleParam.Mirror, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?ShowLine: bool, + ?LineColor: Color, + ?ShowGrid: bool, + ?GridColor: Color, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?Domain: float * float, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?BackgroundColor: Color, + ?ShowBackground: bool, + ?Id: int ) = let range = MinMax |> Option.map StyleParam.Range.ofMinMax @@ -1561,12 +1527,11 @@ type Chart = /// <param name="scene">The Scene object to set on the chart's layout</param> /// <param name="id">The target scene id with which the Scene object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Scene set (default is false)</param> - [<CompiledName("SetScene")>] static member setScene ( scene: Scene, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -1584,8 +1549,7 @@ type Chart = /// </summary> /// <param name="scene">The Scene to set on the chart's layout</param> /// <param name="Id">The target scene id on which the scene should be set. Default is 1.</param> - [<CompiledName("WithScene")>] - static member withScene(scene: Scene, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withScene(scene: Scene, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Scene @@ -1609,22 +1573,21 @@ type Chart = /// <param name="YAxis">Sets this scene's yaxis</param> /// <param name="ZAxis">Sets this scene's zaxis</param> /// <param name="Id">The target scene id</param> - [<CompiledName("WithSceneStyle")>] static member withSceneStyle ( - [<Optional; DefaultParameterValue(null)>] ?Annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(null)>] ?AspectMode: StyleParam.AspectMode, - [<Optional; DefaultParameterValue(null)>] ?AspectRatio: AspectRatio, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?DragMode: StyleParam.DragMode, - [<Optional; DefaultParameterValue(null)>] ?HoverMode: StyleParam.HoverMode, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?XAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?YAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?ZAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?Annotations: seq<Annotation>, + ?AspectMode: StyleParam.AspectMode, + ?AspectRatio: AspectRatio, + ?BGColor: Color, + ?Camera: Camera, + ?Domain: Domain, + ?DragMode: StyleParam.DragMode, + ?HoverMode: StyleParam.HoverMode, + ?UIRevision: string, + ?XAxis: LinearAxis, + ?YAxis: LinearAxis, + ?ZAxis: LinearAxis, + ?Id: int ) = (fun (ch: GenericChart) -> let scene = @@ -1651,12 +1614,11 @@ type Chart = /// <param name="polar">The Polar object to set on the chart's layout</param> /// <param name="id">The target polar id with which the Polar object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Polar set (default is false)</param> - [<CompiledName("SetPolar")>] static member setPolar ( polar: Polar, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -1674,8 +1636,7 @@ type Chart = /// </summary> /// <param name="polar">The new Polar for the chart's layout</param> /// <param name="Id">The target polar id on which the polar object should be set. Default is 1.</param> - [<CompiledName("WithPolar")>] - static member withPolar(polar: Polar, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withPolar(polar: Polar, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1695,18 +1656,17 @@ type Chart = /// <param name="GridShape">Determines if the radial axis grid lines and angular axis line are drawn as "circular" sectors or as "linear" (polygon) sectors. Has an effect only when the angular axis has `type` "category". Note that `radialaxis.angle` is snapped to the angle of the closest vertex when `gridshape` is "circular" (so that radial axis scale is the same as the data scale).</param> /// <param name="UIRevision">Controls persistence of user-driven changes in axis attributes, if not overridden in the individual axes. Defaults to `layout.uirevision`.</param> /// <param name="Id">The target polar id</param> - [<CompiledName("WithPolarStyle")>] static member withPolarStyle ( - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Sector: float * float, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RadialAxis: RadialAxis, - [<Optional; DefaultParameterValue(null)>] ?AngularAxis: AngularAxis, - [<Optional; DefaultParameterValue(null)>] ?GridShape: StyleParam.PolarGridShape, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?Domain: Domain, + ?Sector: float * float, + ?Hole: float, + ?BGColor: Color, + ?RadialAxis: RadialAxis, + ?AngularAxis: AngularAxis, + ?GridShape: StyleParam.PolarGridShape, + ?UIRevision: string, + ?Id: int ) = (fun (ch: GenericChart) -> let polar = @@ -1729,12 +1689,11 @@ type Chart = /// <param name="angularAxis">The AngularAxis to set on the target polar object on the chart's layout</param> /// <param name="id">The target polar id with which the AngularAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetAngularAxis")>] static member setAngularAxis ( angularAxis: AngularAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1752,8 +1711,7 @@ type Chart = let currentAxis = polar |> Polar.getAngularAxis - let updatedAxis = - (DynObj.combine currentAxis angularAxis) :?> AngularAxis + let updatedAxis = DynObj.combine currentAxis angularAxis |> unbox<AngularAxis> let updatedPolar = polar |> Polar.setAngularAxis updatedAxis @@ -1775,8 +1733,7 @@ type Chart = /// </summary> /// <param name="angularAxis">The new AngularAxis for the chart layout's polar object</param> /// <param name="Id">The target polar id on which the AngularAxis should be set. Default is 1.</param> - [<CompiledName("WithAngularAxis")>] - static member withAngularAxis(angularAxis: AngularAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withAngularAxis(angularAxis: AngularAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1788,12 +1745,11 @@ type Chart = /// <param name="radialAxis">The RadialAxis to set on the target polar object on the chart's layout</param> /// <param name="id">The target polar id with which the RadialAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetRadialAxis")>] static member setRadialAxis ( radialAxis: RadialAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1812,7 +1768,7 @@ type Chart = polar |> Polar.getRadialAxis let updatedAxis = - (DynObj.combine currentAxis radialAxis) :?> RadialAxis + DynObj.combine currentAxis radialAxis |> unbox<RadialAxis> let updatedPolar = polar |> Polar.setRadialAxis updatedAxis @@ -1834,8 +1790,7 @@ type Chart = /// </summary> /// <param name="radialAxis">The new RadialAxis for the chart layout's polar object</param> /// <param name="Id">The target polar id on which the RadialAxis should be set. Default is 1.</param> - [<CompiledName("WithRadialAxis")>] - static member withRadialAxis(radialAxis: RadialAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withRadialAxis(radialAxis: RadialAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1847,12 +1802,11 @@ type Chart = /// <param name="smith">The Smith object to set on the chart's layout</param> /// <param name="id">The target smith id with which the Smith object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Smith set (default is false)</param> - [<CompiledName("SetSmith")>] static member setSmith ( smith: Smith, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -1870,8 +1824,7 @@ type Chart = /// </summary> /// <param name="smith">The new Smith for the chart's layout</param> /// <param name="Id">The target smith id on which the smith object should be set. Default is 1.</param> - [<CompiledName("WithSmith")>] - static member withSmith(smith: Smith, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withSmith(smith: Smith, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -1882,15 +1835,13 @@ type Chart = /// /// If there is already a Smith set, the styles are applied to it. If there is no Smith present, a new Smith object with the given styles will be set. /// </summary> - - [<CompiledName("WithSmithStyle")>] static member withSmithStyle ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?ImaginaryAxis: ImaginaryAxis, - [<Optional; DefaultParameterValue(null)>] ?RealAxis: RealAxis, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?BGColor: Color, + ?Domain: Domain, + ?ImaginaryAxis: ImaginaryAxis, + ?RealAxis: RealAxis, + ?Id: int ) = (fun (ch: GenericChart) -> let smith = @@ -1904,12 +1855,11 @@ type Chart = /// <param name="imaginaryAxis">The ImaginaryAxis to set on the target polar object on the chart's layout</param> /// <param name="id">The target polar id with which the ImaginaryAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetImaginaryAxis")>] static member setImaginaryAxis ( imaginaryAxis: ImaginaryAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1927,11 +1877,10 @@ type Chart = let currentAxis = smith |> Smith.getImaginaryAxis - let updatedAxis = - (DynObj.combine currentAxis imaginaryAxis) :?> ImaginaryAxis + let updatedAxis = DynObj.combine currentAxis imaginaryAxis |> unbox<ImaginaryAxis> let updatedSmith = - smith |> Smith.setImaginaryAxis updatedAxis + smith |> Smith.setImaginaryAxis updatedAxis layout |> Layout.updateSmithById (id, updatedSmith) @@ -1950,8 +1899,7 @@ type Chart = /// </summary> /// <param name="imaginaryAxis">The new ImaginaryAxis for the chart layout's smith object</param> /// <param name="Id">The target smith id on which the ImaginaryAxis should be set. Default is 1.</param> - [<CompiledName("WithImaginaryAxis")>] - static member withImaginaryAxis(imaginaryAxis: ImaginaryAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withImaginaryAxis(imaginaryAxis: ImaginaryAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -1963,12 +1911,11 @@ type Chart = /// <param name="realAxis">The RealAxis to set on the target smith object on the chart's layout</param> /// <param name="id">The target smith id with which the RealAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetRealAxis")>] static member setRealAxis ( realAxis: RealAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1985,11 +1932,10 @@ type Chart = if combine then let currentAxis = smith |> Smith.getRealAxis - let updatedAxis = - (DynObj.combine currentAxis realAxis) :?> RealAxis + let updatedAxis = DynObj.combine currentAxis realAxis |> unbox<RealAxis> let updatedSmith = - smith |> Smith.setRealAxis updatedAxis + smith |> Smith.setRealAxis updatedAxis layout |> Layout.updateSmithById (id, updatedSmith) @@ -2008,8 +1954,7 @@ type Chart = /// </summary> /// <param name="realAxis">The new RealAxis for the chart layout's smith object</param> /// <param name="Id">The target smith id on which the RealAxis should be set. Default is 1.</param> - [<CompiledName("WithRealAxis")>] - static member withRealAxis(realAxis: RealAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withRealAxis(realAxis: RealAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -2021,8 +1966,7 @@ type Chart = /// <param name="geo">The Geo object to set on the chart's layout</param> /// <param name="id">The target Geo id with which the Geo object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Geo set (default is false)</param> - [<CompiledName("SetGeo")>] - static member setGeo(geo: Geo, id: StyleParam.SubPlotId, [<Optional; DefaultParameterValue(null)>] ?Combine: bool) = + static member setGeo(geo: Geo, id: StyleParam.SubPlotId, ?Combine: bool) = let combine = defaultArg Combine false @@ -2039,8 +1983,7 @@ type Chart = /// </summary> /// <param name="geo">The new Geo for the chart's layout</param> /// <param name="Id">The target geo id on which the Geo should be set. Default is 1.</param> - [<CompiledName("WithGeo")>] - static member withGeo(geo: Geo, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withGeo(geo: Geo, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Geo @@ -2083,41 +2026,40 @@ type Chart = /// <param name="LatAxis">Sets the latitudinal axis for this geo trace</param> /// <param name="LonAxis">Sets the longitudinal axis for this geo trace</param> /// <param name="Id">the target geo id</param> - [<CompiledName("WithGeoStyle")>] static member withGeoStyle ( - [<Optional; DefaultParameterValue(null)>] ?FitBounds: StyleParam.GeoFitBounds, - [<Optional; DefaultParameterValue(null)>] ?Resolution: StyleParam.GeoResolution, - [<Optional; DefaultParameterValue(null)>] ?Scope: StyleParam.GeoScope, - [<Optional; DefaultParameterValue(null)>] ?Projection: GeoProjection, - [<Optional; DefaultParameterValue(null)>] ?Center: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?ShowCoastLines: bool, - [<Optional; DefaultParameterValue(null)>] ?CoastLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CoastLineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowLand: bool, - [<Optional; DefaultParameterValue(null)>] ?LandColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowOcean: bool, - [<Optional; DefaultParameterValue(null)>] ?OceanColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowLakes: bool, - [<Optional; DefaultParameterValue(null)>] ?LakeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowRivers: bool, - [<Optional; DefaultParameterValue(null)>] ?RiverColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RiverWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowCountries: bool, - [<Optional; DefaultParameterValue(null)>] ?CountryColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CountryWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowSubunits: bool, - [<Optional; DefaultParameterValue(null)>] ?SubunitColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SubunitWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowFrame: bool, - [<Optional; DefaultParameterValue(null)>] ?FrameColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FrameWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BgColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LatAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?LonAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?FitBounds: StyleParam.GeoFitBounds, + ?Resolution: StyleParam.GeoResolution, + ?Scope: StyleParam.GeoScope, + ?Projection: GeoProjection, + ?Center: (float * float), + ?Visible: bool, + ?Domain: Domain, + ?ShowCoastLines: bool, + ?CoastLineColor: Color, + ?CoastLineWidth: float, + ?ShowLand: bool, + ?LandColor: Color, + ?ShowOcean: bool, + ?OceanColor: Color, + ?ShowLakes: bool, + ?LakeColor: Color, + ?ShowRivers: bool, + ?RiverColor: Color, + ?RiverWidth: float, + ?ShowCountries: bool, + ?CountryColor: Color, + ?CountryWidth: float, + ?ShowSubunits: bool, + ?SubunitColor: Color, + ?SubunitWidth: float, + ?ShowFrame: bool, + ?FrameColor: Color, + ?FrameWidth: float, + ?BgColor: Color, + ?LatAxis: LinearAxis, + ?LonAxis: LinearAxis, + ?Id: int ) = (fun (ch: GenericChart) -> let geo = @@ -2167,14 +2109,13 @@ type Chart = /// <param name="Parallels">For conic projection types only. Sets the parallels (tangent, secant) where the cone intersects the sphere.</param> /// <param name="Scale">Zooms in or out on the map view. A scale of "1" corresponds to the largest zoom level that fits the map's lon and lat ranges.</param> /// <param name="Id">the target geo id</param> - [<CompiledName("WithGeoProjection")>] static member withGeoProjection ( projectionType: StyleParam.GeoProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Rotation, - [<Optional; DefaultParameterValue(null)>] ?Parallels, - [<Optional; DefaultParameterValue(null)>] ?Scale, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?Rotation, + ?Parallels, + ?Scale, + ?Id: int ) = (fun (ch: GenericChart) -> @@ -2196,12 +2137,11 @@ type Chart = /// <param name="mapbox">The Mapbox object to set on the chart's layout</param> /// <param name="id">The target Mapbox id with which the Mapbox object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Mapbox set (default is false)</param> - [<CompiledName("SetMapbox")>] static member setMapbox ( mapbox: Mapbox, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -2219,8 +2159,7 @@ type Chart = /// </summary> /// <param name="mapbox">The Mapbox to set on the chart's layout</param> /// <param name="Id">The target mapbox id on which the Mapbox should be set. Default is 1.</param> - [<CompiledName("WithMapbox")>] - static member withMapbox(mapbox: Mapbox, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withMapbox(mapbox: Mapbox, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Mapbox @@ -2242,15 +2181,15 @@ type Chart = /// <param name="Id">The target mapbox id</param> static member withMapboxStyle ( - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?AccessToken: string, - [<Optional; DefaultParameterValue(null)>] ?Style: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?Center: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Zoom: float, - [<Optional; DefaultParameterValue(null)>] ?Bearing: float, - [<Optional; DefaultParameterValue(null)>] ?Pitch: float, - [<Optional; DefaultParameterValue(null)>] ?Layers: seq<MapboxLayer>, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?Domain: Domain, + ?AccessToken: string, + ?Style: StyleParam.MapboxStyle, + ?Center: (float * float), + ?Zoom: float, + ?Bearing: float, + ?Pitch: float, + ?Layers: seq<MapboxLayer>, + ?Id: int ) = (fun (ch: GenericChart) -> let mapbox = @@ -2273,12 +2212,11 @@ type Chart = /// <param name="ternary">The Ternary object to set on the chart's layout</param> /// <param name="id">The target Ternary id with which the Ternary object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Ternary set (default is false)</param> - [<CompiledName("SetTernary")>] static member setTernary ( ternary: Ternary, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -2296,8 +2234,7 @@ type Chart = /// </summary> /// <param name="ternary">The Ternary to set on the chart's layout</param> /// <param name="Id">The target ternary id on which the Ternary should be set. Default is 1.</param> - [<CompiledName("WithTernary")>] - static member withTernary(ternary: Ternary, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withTernary(ternary: Ternary, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2317,13 +2254,13 @@ type Chart = /// <param name="Id">The target Ternary id</param> static member withTernaryStyle ( - [<Optional; DefaultParameterValue(null)>] ?AAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?BAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?CAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?CAxis: LinearAxis, + ?Domain: Domain, + ?Sum: #IConvertible, + ?BGColor: Color, + ?Id: int ) = (fun (ch: GenericChart) -> let ternary = @@ -2344,12 +2281,11 @@ type Chart = /// <param name="aAxis">The a Axis to set on the target ternary object on the chart's layout</param> /// <param name="id">The target ternary id with which the a Axis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetAAxis")>] static member setAAxis ( aAxis: LinearAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -2368,11 +2304,10 @@ type Chart = let currentAxis = ternary |> Ternary.getAAxis - let updatedAxis = - (DynObj.combine currentAxis aAxis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis aAxis |> unbox<LinearAxis> let updatedTernary = - ternary |> Ternary.setAAxis updatedAxis + ternary |> Ternary.setAAxis updatedAxis layout |> Layout.updateTernaryById (id, updatedTernary) @@ -2391,8 +2326,7 @@ type Chart = /// </summary> /// <param name="aAxis">The new a axis for the chart layout's ternary object</param> /// <param name="Id">The target ternary id on which the a axis should be set. Default is 1.</param> - [<CompiledName("WithAAxis")>] - static member withAAxis(aAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withAAxis(aAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2404,12 +2338,11 @@ type Chart = /// <param name="bAxis">The b Axis to set on the target ternary object on the chart's layout</param> /// <param name="id">The target ternary id with which the b Axis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetBAxis")>] static member setBAxis ( bAxis: LinearAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -2428,8 +2361,7 @@ type Chart = let currentAxis = ternary |> Ternary.getBAxis - let updatedAxis = - (DynObj.combine currentAxis bAxis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis bAxis |> unbox<LinearAxis> let updatedTernary = ternary |> Ternary.setBAxis updatedAxis @@ -2451,8 +2383,7 @@ type Chart = /// </summary> /// <param name="bAxis">The new b axis for the chart layout's ternary object</param> /// <param name="Id">The target ternary id on which the b axis should be set. Default is 1.</param> - [<CompiledName("WithBAxis")>] - static member withBAxis(bAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withBAxis(bAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2464,12 +2395,11 @@ type Chart = /// <param name="cAxis">The c Axis to set on the target ternary object on the chart's layout</param> /// <param name="id">The target ternary id with which the c Axis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetCAxis")>] static member setCAxis ( cAxis: LinearAxis, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -2488,8 +2418,7 @@ type Chart = let currentAxis = ternary |> Ternary.getCAxis - let updatedAxis = - (DynObj.combine currentAxis cAxis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis cAxis |> unbox<LinearAxis> let updatedTernary = ternary |> Ternary.setCAxis updatedAxis @@ -2511,8 +2440,7 @@ type Chart = /// </summary> /// <param name="cAxis">The new c axis for the chart layout's ternary object</param> /// <param name="Id">The target ternary id on which the c axis should be set. Default is 1.</param> - [<CompiledName("WithCAxis")>] - static member withCAxis(cAxis: LinearAxis, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withCAxis(cAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2523,7 +2451,6 @@ type Chart = /// </summary> /// <param name="layoutGrid">The new LayoutGrid for the chart's layout</param> /// <param name="Combine">Whether or not to combine the objects if there is already a ColorBar object set (default is false)</param> - [<CompiledName("SetLayoutGrid")>] static member setLayoutGrid(layoutGrid: LayoutGrid, ?Combine: bool) = let combine = defaultArg Combine false @@ -2539,7 +2466,6 @@ type Chart = /// If there is already a LayoutGrid set, the objects are combined. /// </summary> /// <param name="layoutGrid">The new LayoutGrid for the chart's layout</param> - [<CompiledName("WithLayoutGrid")>] static member withLayoutGrid(layoutGrid: LayoutGrid) = (fun (ch: GenericChart) -> ch |> Chart.setLayoutGrid (layoutGrid, true)) @@ -2560,21 +2486,20 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("WithLayoutGridStyle")>] static member withLayoutGridStyle ( - [<Optional; DefaultParameterValue(null)>] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [<Optional; DefaultParameterValue(null)>] ?XAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?YAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?Rows: int, - [<Optional; DefaultParameterValue(null)>] ?Columns: int, - [<Optional; DefaultParameterValue(null)>] ?RowOrder: StyleParam.LayoutGridRowOrder, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.LayoutGridPattern, - [<Optional; DefaultParameterValue(null)>] ?XGap: float, - [<Optional; DefaultParameterValue(null)>] ?YGap: float, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?XSide: StyleParam.LayoutGridXSide, - [<Optional; DefaultParameterValue(null)>] ?YSide: StyleParam.LayoutGridYSide + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?Rows: int, + ?Columns: int, + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = (fun (ch: GenericChart) -> let grid = @@ -2602,12 +2527,11 @@ type Chart = /// <param name="legend">The Legend to set on the chart's layout</param> /// <param name="id">The target Legend id with which the Legend should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Legend set (default is false)</param> - [<CompiledName("SetLegend")>] static member setLegend ( legend: Legend, id: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -2625,8 +2549,7 @@ type Chart = /// </summary> /// <param name="legend">The Legend to set on the chart's layout</param> /// <param name="Id">The target Legend id with which the Legend should be set. Default is 1.</param> - [<CompiledName("WithLegend")>] - static member withLegend(legend: Legend, [<Optional; DefaultParameterValue(null)>] ?Id: int) = + static member withLegend(legend: Legend, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Legend @@ -2663,35 +2586,35 @@ type Chart = /// <param name="Y">Sets the y position (in normalized coordinates) of the legend. Defaults to "1" for vertical legends, defaults to "-0.1" for horizontal legends on graphs w/o range sliders and defaults to "1.1" for horizontal legends on graph with one or multiple range sliders.</param> /// <param name="YAnchor">Sets the legend's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the legend. Value "auto" anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise.</param> /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> - [<CompiledName("WithLegendStyle")>] + /// <param name="Id">The target Legend id. Default is 1.</param> static member withLegendStyle ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?EntryWidth: float, - [<Optional; DefaultParameterValue(null)>] ?EntryWidthMode: StyleParam.EntryWidthMode, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?GroupClick: StyleParam.TraceGroupClickOptions, - [<Optional; DefaultParameterValue(null)>] ?GroupTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ItemClick: StyleParam.TraceItemClickOptions, - [<Optional; DefaultParameterValue(null)>] ?ItemDoubleClick: StyleParam.TraceItemClickOptions, - [<Optional; DefaultParameterValue(null)>] ?ItemSizing: StyleParam.TraceItemSizing, - [<Optional; DefaultParameterValue(null)>] ?ItemWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?TraceGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?TraceOrder: StyleParam.TraceOrder, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?VerticalAlign: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YRef: string, - [<Optional; DefaultParameterValue(null)>] ?Id: int + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?EntryWidth: float, + ?EntryWidthMode: StyleParam.EntryWidthMode, + ?Font: Font, + ?GroupClick: StyleParam.TraceGroupClickOptions, + ?GroupTitleFont: Font, + ?ItemClick: StyleParam.TraceItemClickOptions, + ?ItemDoubleClick: StyleParam.TraceItemClickOptions, + ?ItemSizing: StyleParam.TraceItemSizing, + ?ItemWidth: int, + ?Orientation: StyleParam.Orientation, + ?Title: Title, + ?TraceGroupGap: float, + ?TraceOrder: StyleParam.TraceOrder, + ?UIRevision: string, + ?VerticalAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string, + ?Id: int ) = (fun (ch: GenericChart) -> let legend = @@ -2726,15 +2649,14 @@ type Chart = ch |> Chart.withLegend(legend, ?Id = Id)) /// <summary> - /// + /// Sets the given annotations on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already annotations set. /// </summary> /// <param name="annotations">The annotations to add to the input charts layout</param> /// <param name="Append">If true, the input annotations will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithAnnotations")>] static member withAnnotations ( annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(true)>] ?Append: bool + ?Append: bool ) = let append = defaultArg Append true @@ -2746,7 +2668,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue<seq<Annotation>>("annotations") + layout.TryGetTypedPropertyValue<seq<Annotation>>("annotations") |> Option.defaultValue Seq.empty |> Seq.append annotations @@ -2755,13 +2677,16 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Annotations = annotations')) - [<CompiledName("WithAnnotation")>] - static member withAnnotation(annotation: Annotation, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <summary> + /// Sets the given annotation on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already annotations set. + /// </summary> + /// <param name="annotation">The annotations to add to the input charts layout</param> + /// <param name="Append">If true, the input annotation will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> + static member withAnnotation(annotation: Annotation, ?Append: bool) = Chart.withAnnotations ([ annotation ], ?Append = Append) // Set the title of a Chart - [<CompiledName("WithTitle")>] - static member withTitle(title, [<Optional; DefaultParameterValue(null)>] ?TitleFont) = + static member withTitle(title, ?TitleFont) = (fun (ch: GenericChart) -> let layout = Layout() |> Layout.style (Title = Title.init (Text = title, ?Font = TitleFont)) @@ -2769,7 +2694,6 @@ type Chart = GenericChart.addLayout layout ch) // Set the title of a Chart - [<CompiledName("WithTitle")>] static member withTitle(title) = (fun (ch: GenericChart) -> let layout = @@ -2778,11 +2702,10 @@ type Chart = GenericChart.addLayout layout ch) /// Sets the size of a Chart (in pixels) - [<CompiledName("WithSize")>] static member withSize ( - [<Optional; DefaultParameterValue(null)>] ?Width: int, - [<Optional; DefaultParameterValue(null)>] ?Height: int + ?Width: int, + ?Height: int ) = fun (ch: GenericChart) -> @@ -2794,12 +2717,10 @@ type Chart = // Set the size of a Chart - [<CompiledName("WithSize")>] static member withSize(width: float, height: float) = Chart.withSize (Width = int width, Height = int height) // Set the margin of a Chart - [<CompiledName("WithMargin")>] static member withMargin(margin: Margin) = (fun (ch: GenericChart) -> let layout = @@ -2808,15 +2729,14 @@ type Chart = GenericChart.setLayout layout ch) // Set the margin of a Chart - [<CompiledName("WithMarginSize")>] static member withMarginSize ( - [<Optional; DefaultParameterValue(null)>] ?Left, - [<Optional; DefaultParameterValue(null)>] ?Right, - [<Optional; DefaultParameterValue(null)>] ?Top, - [<Optional; DefaultParameterValue(null)>] ?Bottom, - [<Optional; DefaultParameterValue(null)>] ?Pad, - [<Optional; DefaultParameterValue(null)>] ?Autoexpand + ?Left, + ?Right, + ?Top, + ?Bottom, + ?Pad, + ?Autoexpand ) = let margin = Margin.init ( @@ -2830,23 +2750,15 @@ type Chart = Chart.withMargin (margin) - [<CompiledName("WithTemplate")>] static member withTemplate(template: Template) = (fun (ch: GenericChart) -> ch |> GenericChart.mapLayout (Layout.style (Template = (template :> DynamicObj)))) - // TODO: Include withLegend & withLegendStyle - - //Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) If "circle", a circle is drawn from - //((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) If "rect", a rectangle is drawn linking - //(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) - /// <summary> - /// + /// Sets the given shapes on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already shapes set. /// </summary> /// <param name="shapes">The shapes to add to the input charts layout</param> - /// <param name="Append">If true, the input annotations will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithShapes")>] - static member withShapes(shapes: seq<Shape>, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <param name="Append">If true, the input shapes will be appended to existing shapes, otherwise existing shapes will be removed (default: true)</param> + static member withShapes(shapes: seq<Shape>, ?Append: bool) = let append = defaultArg Append true fun (ch: GenericChart) -> @@ -2857,24 +2769,27 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue<seq<Shape>>("shapes") |> Option.defaultValue Seq.empty |> Seq.append shapes + layout.TryGetTypedPropertyValue<seq<Shape>>("shapes") |> Option.defaultValue Seq.empty |> Seq.append shapes else shapes ch |> GenericChart.mapLayout (Layout.style (Shapes = shapes')) - [<CompiledName("WithShape")>] - static member withShape(shape: Shape, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <summary> + /// Sets the given shape on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already shapes set. + /// </summary> + /// <param name="shape">The shapes to add to the input charts layout</param> + /// <param name="Append">If true, the input shape will be appended to existing shapes, otherwise existing annotations will be shapes (default: true)</param> + static member withShape(shape: Shape, ?Append: bool) = Chart.withShapes ([ shape ], ?Append = Append) /// <summary> - /// + /// Sets the given selections on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already selections set. /// </summary> /// <param name="selections">The selections to add to the input charts layout</param> - /// <param name="Append">If true, the input selections will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithSelections")>] - static member withSelections(selections: seq<Selection>, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <param name="Append">If true, the input selections will be appended to existing selections, otherwise existing selections will be removed (default: true)</param> + static member withSelections(selections: seq<Selection>, ?Append: bool) = let append = defaultArg Append true fun (ch: GenericChart) -> @@ -2885,7 +2800,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue<seq<Selection>>("selections") + layout.TryGetTypedPropertyValue<seq<Selection>>("selections") |> Option.defaultValue Seq.empty |> Seq.append selections @@ -2894,8 +2809,12 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Selections = selections')) - [<CompiledName("WithSelection")>] - static member withSelection(selection: Selection, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <summary> + /// Sets the given selection on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already selections set. + /// </summary> + /// <param name="selection">The selections to add to the input charts layout</param> + /// <param name="Append">If true, the input selection will be appended to existing selections, otherwise existing selections will be removed (default: true)</param> + static member withSelection(selection: Selection, ?Append: bool) = Chart.withSelections ([ selection ], ?Append = Append) //============================================================================================================== @@ -2907,7 +2826,6 @@ type Chart = /// /// If there is already a config set, the object is replaced. /// </summary> - [<CompiledName("SetConfig")>] static member setConfig(config: Config) = (fun (ch: GenericChart) -> GenericChart.setConfig config ch) @@ -2916,7 +2834,6 @@ type Chart = /// /// If there is already a config set, the objects are combined. /// </summary> - [<CompiledName("WithConfig")>] static member withConfig(config: Config) = (fun (ch: GenericChart) -> GenericChart.addConfig config ch) @@ -2982,48 +2899,47 @@ type Chart = /// instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored /// for our automatic number formatting, but can be used in custom formats. /// </param> - [<CompiledName("WithConfigStyle")>] static member withConfigStyle ( - [<Optional; DefaultParameterValue(null)>] ?StaticPlot: bool, - [<Optional; DefaultParameterValue(null)>] ?TypesetMath: bool, - [<Optional; DefaultParameterValue(null)>] ?PlotlyServerUrl: string, - [<Optional; DefaultParameterValue(null)>] ?Editable: bool, - [<Optional; DefaultParameterValue(null)>] ?Edits: Edits, - [<Optional; DefaultParameterValue(null)>] ?EditSelection: bool, - [<Optional; DefaultParameterValue(null)>] ?Autosizable: bool, - [<Optional; DefaultParameterValue(null)>] ?Responsive: bool, - [<Optional; DefaultParameterValue(null)>] ?FillFrame: bool, - [<Optional; DefaultParameterValue(null)>] ?FrameMargins: float, - [<Optional; DefaultParameterValue(null)>] ?ScrollZoom: StyleParam.ScrollZoom, - [<Optional; DefaultParameterValue(null)>] ?DoubleClick: StyleParam.DoubleClick, - [<Optional; DefaultParameterValue(null)>] ?DoubleClickDelay: int, - [<Optional; DefaultParameterValue(null)>] ?ShowAxisDragHandles: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowAxisRangeEntryBoxes: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTips: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLink: bool, - [<Optional; DefaultParameterValue(null)>] ?LinkText: string, - [<Optional; DefaultParameterValue(null)>] ?SendData: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowSources: obj, - [<Optional; DefaultParameterValue(null)>] ?DisplayModeBar: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowSendToCloud: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowEditInChartStudio: bool, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtonsToRemove: seq<StyleParam.ModeBarButton>, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtonsToAdd: seq<StyleParam.ModeBarButton>, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtons: seq<seq<StyleParam.ModeBarButton>>, - [<Optional; DefaultParameterValue(null)>] ?ToImageButtonOptions: ToImageButtonOptions, - [<Optional; DefaultParameterValue(null)>] ?Displaylogo: bool, - [<Optional; DefaultParameterValue(null)>] ?Watermark: bool, - [<Optional; DefaultParameterValue(null)>] ?plotGlPixelRatio: float, - [<Optional; DefaultParameterValue(null)>] ?SetBackground: obj, - [<Optional; DefaultParameterValue(null)>] ?TopojsonURL: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxAccessToken: string, - [<Optional; DefaultParameterValue(null)>] ?Logging: int, - [<Optional; DefaultParameterValue(null)>] ?NotifyOnLogging: int, - [<Optional; DefaultParameterValue(null)>] ?QueueLength: int, - [<Optional; DefaultParameterValue(null)>] ?GlobalTransforms: obj, - [<Optional; DefaultParameterValue(null)>] ?Locale: string, - [<Optional; DefaultParameterValue(null)>] ?Locales: obj + ?StaticPlot: bool, + ?TypesetMath: bool, + ?PlotlyServerUrl: string, + ?Editable: bool, + ?Edits: Edits, + ?EditSelection: bool, + ?Autosizable: bool, + ?Responsive: bool, + ?FillFrame: bool, + ?FrameMargins: float, + ?ScrollZoom: StyleParam.ScrollZoom, + ?DoubleClick: StyleParam.DoubleClick, + ?DoubleClickDelay: int, + ?ShowAxisDragHandles: bool, + ?ShowAxisRangeEntryBoxes: bool, + ?ShowTips: bool, + ?ShowLink: bool, + ?LinkText: string, + ?SendData: bool, + ?ShowSources: obj, + ?DisplayModeBar: bool, + ?ShowSendToCloud: bool, + ?ShowEditInChartStudio: bool, + ?ModeBarButtonsToRemove: seq<StyleParam.ModeBarButton>, + ?ModeBarButtonsToAdd: seq<StyleParam.ModeBarButton>, + ?ModeBarButtons: seq<seq<StyleParam.ModeBarButton>>, + ?ToImageButtonOptions: ToImageButtonOptions, + ?Displaylogo: bool, + ?Watermark: bool, + ?plotGlPixelRatio: float, + ?SetBackground: obj, + ?TopojsonURL: string, + ?MapboxAccessToken: string, + ?Logging: int, + ?NotifyOnLogging: int, + ?QueueLength: int, + ?GlobalTransforms: obj, + ?Locale: string, + ?Locales: obj ) = (fun (ch: GenericChart) -> @@ -3108,24 +3024,23 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("Grid")>] static member Grid ( nRows: int, nCols: int, - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitles: #seq<string>, - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitleOffset: float, - [<Optional; DefaultParameterValue(null)>] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [<Optional; DefaultParameterValue(null)>] ?XAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?YAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?RowOrder: StyleParam.LayoutGridRowOrder, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.LayoutGridPattern, - [<Optional; DefaultParameterValue(null)>] ?XGap: float, - [<Optional; DefaultParameterValue(null)>] ?YGap: float, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?XSide: StyleParam.LayoutGridXSide, - [<Optional; DefaultParameterValue(null)>] ?YSide: StyleParam.LayoutGridYSide + ?SubPlotTitles: #seq<string>, + ?SubPlotTitleFont: Font, + ?SubPlotTitleOffset: float, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = fun (gCharts: #seq<GenericChart>) -> @@ -3183,8 +3098,9 @@ type Chart = calculateSubplotTitlePositions 0. 1. xGap yGap nRows nCols reversed titles - |> Seq.zip positions[0 .. (Seq.length titles) - 1] - |> Seq.map (fun (((rowIndex, colIndex), (x, y)), title) -> + |> Array.ofSeq + |> Array.zip positions[0 .. (Seq.length titles) - 1] + |> Array.map (fun (((rowIndex, colIndex), (x, y)), title) -> Annotation.init( X = x, XRef = "paper", @@ -3206,7 +3122,8 @@ type Chart = gCharts |> Seq.zip gridCoordinates - |> Seq.mapi (fun i ((rowIndex, colIndex), gChart) -> + |> Array.ofSeq + |> Array.mapi (fun i ((rowIndex, colIndex), gChart) -> let layout = gChart |> GenericChart.getLayout @@ -3219,17 +3136,17 @@ type Chart = | TraceID.Carpet -> let xAxis = - layout.TryGetTypedValue<LinearAxis> "xaxis" |> Option.defaultValue (LinearAxis.init ()) + layout.TryGetTypedPropertyValue<LinearAxis> "xaxis" |> Option.defaultValue (LinearAxis.init ()) let yAxis = - layout.TryGetTypedValue<LinearAxis> "yaxis" |> Option.defaultValue (LinearAxis.init ()) + layout.TryGetTypedPropertyValue<LinearAxis> "yaxis" |> Option.defaultValue (LinearAxis.init ()) - let allXAxes = Layout.getXAxes layout |> Seq.map fst - let allYAxes = Layout.getYAxes layout |> Seq.map fst + let allXAxes = Layout.getXAxes layout |> Array.map fst + let allYAxes = Layout.getYAxes layout |> Array.map fst // remove all axes from layout. Only cartesian axis in each dimension is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allXAxes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) - allYAxes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allXAxes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allYAxes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let xAnchor, yAnchor = if hasSharedAxes then @@ -3237,22 +3154,23 @@ type Chart = else i + 1, i + 1 - gChart - |> Chart.withAxisAnchor (xAnchor, yAnchor) // set adapted axis anchors - |> Chart.withXAxis (xAxis, (StyleParam.SubPlotId.XAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) - |> Chart.withYAxis (yAxis, (StyleParam.SubPlotId.YAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) - + let lol = + gChart + |> Chart.withAxisAnchor (xAnchor, yAnchor) // set adapted axis anchors + |> Chart.withXAxis (xAxis, (StyleParam.SubPlotId.XAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) + |> Chart.withYAxis (yAxis, (StyleParam.SubPlotId.YAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) + lol | TraceID.Cartesian3D -> let scene = - layout.TryGetTypedValue<Scene> "scene" + layout.TryGetTypedPropertyValue<Scene> "scene" |> Option.defaultValue (Scene.init ()) |> Scene.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allScenes = Layout.getScenes layout |> Seq.map fst + let allScenes = Layout.getScenes layout |> Array.map fst // remove all scenes from layout. Only one scene is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allScenes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allScenes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let sceneAnchor = StyleParam.SubPlotId.Scene(i + 1) @@ -3263,14 +3181,14 @@ type Chart = | TraceID.Polar -> let polar = - layout.TryGetTypedValue<Polar> "polar" + layout.TryGetTypedPropertyValue<Polar> "polar" |> Option.defaultValue (Polar.init ()) |> Polar.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allPolars = Layout.getPolars layout |> Seq.map fst + let allPolars = Layout.getPolars layout |> Array.map fst // remove all polar subplots from layout. Only one polar subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allPolars |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allPolars |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let polarAnchor = StyleParam.SubPlotId.Polar(i + 1) @@ -3283,14 +3201,14 @@ type Chart = | TraceID.Smith -> let smith = - layout.TryGetTypedValue<Smith> "smith" + layout.TryGetTypedPropertyValue<Smith> "smith" |> Option.defaultValue (Smith.init ()) |> Smith.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allSmiths = Layout.getSmiths layout |> Seq.map fst + let allSmiths = Layout.getSmiths layout |> Array.map fst // remove all smith subplots from layout. Only one smith subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allSmiths |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allSmiths |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let polarAnchor = StyleParam.SubPlotId.Smith(i + 1) @@ -3302,14 +3220,14 @@ type Chart = | TraceID.Geo -> let geo = - layout.TryGetTypedValue<Geo> "geo" + layout.TryGetTypedPropertyValue<Geo> "geo" |> Option.defaultValue (Geo.init ()) |> Geo.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allGeos = Layout.getGeos layout |> Seq.map fst + let allGeos = Layout.getGeos layout |> Array.map fst // remove all geo subplots from layout. Only one geo subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allGeos |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allGeos |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let geoAnchor = StyleParam.SubPlotId.Geo(i + 1) @@ -3320,16 +3238,16 @@ type Chart = | TraceID.Mapbox -> let mapbox = - layout.TryGetTypedValue<Mapbox> "mapbox" + layout.TryGetTypedPropertyValue<Mapbox> "mapbox" |> Option.defaultValue (Mapbox.init ()) |> Mapbox.style ( Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1) ) - let allMapboxes = Layout.getMapboxes layout |> Seq.map fst + let allMapboxes = Layout.getMapboxes layout |> Array.map fst // remove all mapbox subplots from layout. Only one mapbox subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allMapboxes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allMapboxes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let geoAnchor = StyleParam.SubPlotId.Geo(i + 1) @@ -3345,16 +3263,16 @@ type Chart = | TraceID.Ternary -> let ternary = - layout.TryGetTypedValue<Ternary> "ternary" + layout.TryGetTypedPropertyValue<Ternary> "ternary" |> Option.defaultValue (Ternary.init ()) |> Ternary.style ( Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1) ) - let allTernaries = Layout.getTernaries layout |> Seq.map fst + let allTernaries = Layout.getTernaries layout |> Array.map fst // remove all ternary subplots from layout. Only one ternary subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allTernaries |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allTernaries |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let ternaryAnchor = StyleParam.SubPlotId.Ternary(i + 1) @@ -3426,22 +3344,21 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("Grid")>] static member Grid ( - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitles: #seq<string>, - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitleOffset: float, - [<Optional; DefaultParameterValue(null)>] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [<Optional; DefaultParameterValue(null)>] ?XAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?YAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?RowOrder: StyleParam.LayoutGridRowOrder, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.LayoutGridPattern, - [<Optional; DefaultParameterValue(null)>] ?XGap: float, - [<Optional; DefaultParameterValue(null)>] ?YGap: float, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?XSide: StyleParam.LayoutGridXSide, - [<Optional; DefaultParameterValue(null)>] ?YSide: StyleParam.LayoutGridYSide + ?SubPlotTitles: #seq<string>, + ?SubPlotTitleFont: Font, + ?SubPlotTitleOffset: float, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = fun (gCharts: #seq<#seq<GenericChart>>) -> @@ -3543,22 +3460,21 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("SingleStack")>] static member SingleStack ( - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitles: #seq<string>, - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SubPlotTitleOffset: float, - [<Optional; DefaultParameterValue(null)>] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [<Optional; DefaultParameterValue(null)>] ?XAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?YAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?RowOrder: StyleParam.LayoutGridRowOrder, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.LayoutGridPattern, - [<Optional; DefaultParameterValue(null)>] ?XGap: float, - [<Optional; DefaultParameterValue(null)>] ?YGap: float, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?XSide: StyleParam.LayoutGridXSide, - [<Optional; DefaultParameterValue(null)>] ?YSide: StyleParam.LayoutGridYSide + ?SubPlotTitles: #seq<string>, + ?SubPlotTitleFont: Font, + ?SubPlotTitleOffset: float, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = fun (gCharts: #seq<GenericChart>) -> @@ -3584,8 +3500,7 @@ type Chart = /// Sets the color axis with the given id on the chart layout - [<CompiledName("WithColorAxis")>] - static member withColorAxis(colorAxis: ColorAxis, [<Optional; DefaultParameterValue(null)>] ?Id) = + static member withColorAxis(colorAxis: ColorAxis, ?Id) = (fun (ch: GenericChart) -> let layout = let id = @@ -3596,12 +3511,11 @@ type Chart = GenericChart.setLayout layout ch) /// <summary> - /// + /// Sets the given images on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already images set. /// </summary> /// <param name="images">The images to add to the input charts layout</param> - /// <param name="Append">If true, the input images will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithLayoutImages")>] - static member withLayoutImages(images: seq<LayoutImage>, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <param name="Append">If true, the input images will be appended to existing images, otherwise existing images will be removed (default: true)</param> + static member withLayoutImages(images: seq<LayoutImage>, ?Append: bool) = let append = defaultArg Append true fun (ch: GenericChart) -> @@ -3612,7 +3526,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue<seq<LayoutImage>>("images") + layout.TryGetTypedPropertyValue<seq<LayoutImage>>("images") |> Option.defaultValue Seq.empty |> Seq.append images @@ -3621,21 +3535,24 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Images = images')) - [<CompiledName("WithLayoutImage")>] - static member withLayoutImage(image: LayoutImage, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <summary> + /// Sets the given image on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already images set. + /// </summary> + /// <param name="image">The images to add to the input charts layout</param> + /// <param name="Append">If true, the input image will be appended to existing images, otherwise existing images will be removed (default: true)</param> + static member withLayoutImage(image: LayoutImage, ?Append: bool) = Chart.withLayoutImages ([ image ], ?Append = Append) /// <summary> - /// + /// Sets the given update menus on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. /// </summary> /// <param name="updateMenus">The updatmenus to add to the input charts layout</param> - /// <param name="Append">If true, the input images will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithUpdateMenus")>] + /// <param name="Append">If true, the update menus will be appended to existing update menus, otherwise existing update menus will be removed (default: true)</param> static member withUpdateMenus ( updateMenus: seq<UpdateMenu>, - [<Optional; DefaultParameterValue(true)>] ?Append: bool + ?Append: bool ) = let append = defaultArg Append true @@ -3647,7 +3564,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue<seq<UpdateMenu>>("updatemenus") + layout.TryGetTypedPropertyValue<seq<UpdateMenu>>("updatemenus") |> Option.defaultValue Seq.empty |> Seq.append updateMenus @@ -3656,17 +3573,49 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (UpdateMenus = updateMenus')) - [<CompiledName("WithUpdateMenu")>] - static member withUpdateMenu(updateMenu: UpdateMenu, [<Optional; DefaultParameterValue(true)>] ?Append: bool) = + /// <summary> + /// Sets the given update menu on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. + /// </summary> + /// <param name="updateMenu">The updatmenus to add to the input charts layout</param> + /// <param name="Append">If true, the update menu will be appended to existing update menus, otherwise existing update menus will be removed (default: true)</param> + static member withUpdateMenu(updateMenu: UpdateMenu, ?Append: bool) = Chart.withUpdateMenus ([ updateMenu ], ?Append = Append) - [<CompiledName("WithSliders")>] - static member withSliders(sliders: seq<Slider>) = - fun (ch: GenericChart) -> ch |> GenericChart.mapLayout (Layout.style (Sliders = sliders)) + /// <summary> + /// Sets the given sliders on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. + /// </summary> + /// <param name="sliders">The sliders to add to the input charts layout</param> + /// <param name="Append">If true, the sliders will be appended to existing sliders, otherwise existing sliders will be removed (default: true)</param> + static member withSliders( + sliders: seq<Slider>, + ?Append: bool + ) = + let append = defaultArg Append true + + fun (ch: GenericChart) -> + + let sliders' = - [<CompiledName("WithSlider")>] - static member withSlider(slider: Slider) = Chart.withSliders ([ slider ]) + if append then + + let layout = GenericChart.getLayout ch + + layout.TryGetTypedPropertyValue<seq<Slider>>("sliders") + |> Option.defaultValue Seq.empty + |> Seq.append sliders + + else + sliders + + ch |> GenericChart.mapLayout (Layout.style (Sliders = sliders')) + + /// <summary> + /// Sets the given slider on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. + /// </summary> + /// <param name="slider">The slider to add to the input charts layout</param> + /// <param name="Append">If true, the slider will be appended to existing sliders, otherwise existing sliders will be removed (default: true)</param> + static member withSlider(slider: Slider, ?Append: bool) = Chart.withSliders ([ slider ], ?Append = Append) // ############################################################ @@ -3677,7 +3626,6 @@ type Chart = /// /// If there is already an DisplayOptions set, the object is replaced. /// </summary> - [<CompiledName("SetDisplayOptions")>] static member setDisplayOptions(displayOpts: DisplayOptions) = (fun (ch: GenericChart) -> GenericChart.setDisplayOptions displayOpts ch) @@ -3686,27 +3634,37 @@ type Chart = /// /// If there is already an DisplayOptions set, the objects are combined. /// </summary> - [<CompiledName("WithDisplayOptions")>] static member withDisplayOptions(displayOpts: DisplayOptions) = (fun (ch: GenericChart) -> GenericChart.addDisplayOptions displayOpts ch) /// <summary> /// Applies the given styles to the chart's DisplayOptions object. Overwrites attributes with the same name that are already set. /// </summary> + /// <param name="DocumentTitle">The title metadata for the document</param> + /// <param name="DocumentCharset">The document charset</param> + /// <param name="DocumentDescription">The description metadata for the document</param> + /// <param name="DocumentFavicon">base64 encoded favicon image</param> /// <param name="AdditionalHeadTags">Additional tags that will be included in the document's head </param> - /// <param name="Description">HTML tags that appear below the chart in HTML docs</param> + /// <param name="ChartDescription">HTML tags that appear below the chart in HTML docs</param> /// <param name="PlotlyJSReference">Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline</param> - [<CompiledName("WithDisplayOptionsStyle")>] static member withDisplayOptionsStyle ( - [<Optional; DefaultParameterValue(null)>] ?AdditionalHeadTags: XmlNode list, - [<Optional; DefaultParameterValue(null)>] ?ChartDescription: XmlNode list, - [<Optional; DefaultParameterValue(null)>] ?PlotlyJSReference: PlotlyJSReference + ?DocumentTitle: string, + ?DocumentCharset: string, + ?DocumentDescription: string, + ?DocumentFavicon: XmlNode, + ?AdditionalHeadTags: XmlNode list, + ?ChartDescription: XmlNode list, + ?PlotlyJSReference: PlotlyJSReference ) = (fun (ch: GenericChart) -> let displayOpts' = DisplayOptions.init ( + ?DocumentTitle = DocumentTitle, + ?DocumentCharset = DocumentCharset, + ?DocumentDescription = DocumentDescription, + ?DocumentFavicon = DocumentFavicon, ?AdditionalHeadTags = AdditionalHeadTags, ?ChartDescription = ChartDescription, ?PlotlyJSReference = PlotlyJSReference @@ -3720,27 +3678,23 @@ type Chart = /// </summary> /// <param name="chartDescription">The chart description to add to the given chart's DisplayOptions object</param> /// <param name="ch">The chart to add a description to</param> - [<CompiledName("WithDescription")>] static member withDescription (chartDescription: XmlNode list) (ch: GenericChart) = ch |> GenericChart.mapDisplayOptions (DisplayOptions.addChartDescription chartDescription) /// Adds the given additional html tags on the chart's DisplayOptions. They will be included in the document's head - [<CompiledName("WithAdditionalHeadTags")>] static member withAdditionalHeadTags (additionalHeadTags: XmlNode list) (ch: GenericChart) = ch |> GenericChart.mapDisplayOptions (DisplayOptions.addAdditionalHeadTags additionalHeadTags) /// Sets the given additional head tags on the chart's DisplayOptions. They will be included in the document's head - [<CompiledName("WithHeadTags")>] static member withHeadTags (additionalHeadTags: XmlNode list) (ch: GenericChart) = ch |> GenericChart.mapDisplayOptions (DisplayOptions.setAdditionalHeadTags additionalHeadTags) /// Adds the necessary script tags to render tex strings to the chart's DisplayOptions - [<CompiledName("WithMathTex")>] static member withMathTex ( - [<Optional; DefaultParameterValue(true)>] ?AppendTags: bool, - [<Optional; DefaultParameterValue(3)>] ?MathJaxVersion: int + ?AppendTags: bool, + ?MathJaxVersion: int ) = let version = MathJaxVersion |> Option.defaultValue 3 diff --git a/src/Plotly.NET/ChartAPI/Chart2D.fs b/src/Plotly.NET/ChartAPI/Chart2D.fs index d3f56a8af..3be2daff7 100644 --- a/src/Plotly.NET/ChartAPI/Chart2D.fs +++ b/src/Plotly.NET/ChartAPI/Chart2D.fs @@ -70,40 +70,40 @@ module Chart2D = [<Extension>] static member Scatter ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Mode: StyleParam.Mode, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -204,35 +204,35 @@ module Chart2D = x: seq<#IConvertible>, y: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = Chart.Scatter( X = x, @@ -308,35 +308,35 @@ module Chart2D = ( xy: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -407,27 +407,27 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = // if text position or font is set, then show labels (not only when hovering) @@ -489,27 +489,27 @@ module Chart2D = static member Point ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -578,36 +578,36 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = // if text position or font is set than show labels (not only when hovering) @@ -694,36 +694,36 @@ module Chart2D = static member Line ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -803,37 +803,37 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = // if text position set then show labels (not only when hovering) @@ -943,37 +943,37 @@ module Chart2D = static member Spline ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -1051,32 +1051,32 @@ module Chart2D = x: seq<#IConvertible>, y: seq<#IConvertible>, sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -1166,32 +1166,32 @@ module Chart2D = static member Bubble ( xysizes: seq<#IConvertible * #IConvertible * int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y, sizes = Seq.unzip3 xysizes @@ -1279,39 +1279,39 @@ module Chart2D = upper: seq<#IConvertible>, lower: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?GroupName: string, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?UpperMarker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LowerMarker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UpperLine: Line, - [<Optional; DefaultParameterValue(null)>] ?LowerLine: Line, - [<Optional; DefaultParameterValue(null)>] ?RangeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RangePattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?UpperText: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiUpperText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?LowerText: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiLowerText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue("lower")>] ?LowerName: string, - [<Optional; DefaultParameterValue("upper")>] ?UpperName: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?GroupName: string, + ?ShowMarkers: bool, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UpperMarker: Marker, + ?LowerMarker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UpperLine: Line, + ?LowerLine: Line, + ?RangeColor: Color, + ?RangePattern: Pattern, + ?UpperText: #IConvertible, + ?MultiUpperText: seq<#IConvertible>, + ?LowerText: #IConvertible, + ?MultiLowerText: seq<#IConvertible>, + ?TextFont: Font, + ?LowerName: string, + ?UpperName: string, + ?UseDefaults: bool ) = let useDefaults = @@ -1471,39 +1471,39 @@ module Chart2D = upper: seq<#IConvertible>, lower: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?GroupName: string, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?UpperMarker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LowerMarker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UpperLine: Line, - [<Optional; DefaultParameterValue(null)>] ?LowerLine: Line, - [<Optional; DefaultParameterValue(null)>] ?RangeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RangePattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?UpperText: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiUpperText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?LowerText: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiLowerText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue("lower")>] ?LowerName: string, - [<Optional; DefaultParameterValue("upper")>] ?UpperName: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?GroupName: string, + ?ShowMarkers: bool, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UpperMarker: Marker, + ?LowerMarker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UpperLine: Line, + ?LowerLine: Line, + ?RangeColor: Color, + ?RangePattern: Pattern, + ?UpperText: #IConvertible, + ?MultiUpperText: seq<#IConvertible>, + ?LowerText: #IConvertible, + ?MultiLowerText: seq<#IConvertible>, + ?TextFont: Font, + ?LowerName: string, + ?UpperName: string, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -1586,36 +1586,36 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let fillpattern = @@ -1696,36 +1696,36 @@ module Chart2D = static member Area ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -1805,37 +1805,37 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let fillpattern = @@ -1916,37 +1916,37 @@ module Chart2D = static member SplineArea ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -2022,33 +2022,33 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let fillpattern = @@ -2122,33 +2122,33 @@ module Chart2D = static member StackedArea ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -2222,30 +2222,30 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?Offset: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?ConnectorLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ConnectorLineStyle: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ConnectorFillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ConnectorLine: Line, - [<Optional; DefaultParameterValue(null)>] ?Connector: FunnelConnector, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Width: float, + ?Offset: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?MarkerColor: Color, + ?MarkerOutline: Line, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?ConnectorLineColor: Color, + ?ConnectorLineStyle: StyleParam.DrawingStyle, + ?ConnectorFillColor: Color, + ?ConnectorLine: Line, + ?Connector: FunnelConnector, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?UseDefaults: bool ) = let useDefaults = @@ -2327,30 +2327,30 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?Offset: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?ConnectorLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ConnectorLineStyle: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ConnectorFillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ConnectorLine: Line, - [<Optional; DefaultParameterValue(null)>] ?Connector: FunnelConnector, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Width: float, + ?Offset: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?MarkerColor: Color, + ?MarkerOutline: Line, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?ConnectorLineColor: Color, + ?ConnectorLineStyle: StyleParam.DrawingStyle, + ?ConnectorFillColor: Color, + ?ConnectorLine: Line, + ?Connector: FunnelConnector, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?UseDefaults: bool ) = Chart.Funnel( x = x, @@ -2418,29 +2418,29 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?TotalsColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Totals: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?Base: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Connector: WaterfallConnector, - [<Optional; DefaultParameterValue(null)>] ?Measure: StyleParam.WaterfallMeasure seq, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(true)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TotalsColor: Color, + ?Totals: FinanceMarker, + ?Base: float, + ?Width: float, + ?MultiWidth: seq<float>, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextFont: Font, + ?Connector: WaterfallConnector, + ?Measure: StyleParam.WaterfallMeasure seq, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Orientation: StyleParam.Orientation, + ?UseDefaults: bool ) = let useDefaults = @@ -2522,29 +2522,29 @@ module Chart2D = static member Waterfall ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?TotalsColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Totals: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?Base: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Connector: WaterfallConnector, - [<Optional; DefaultParameterValue(null)>] ?Measure: StyleParam.WaterfallMeasure seq, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(true)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TotalsColor: Color, + ?Totals: FinanceMarker, + ?Base: float, + ?Width: float, + ?MultiWidth: seq<float>, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextFont: Font, + ?Connector: WaterfallConnector, + ?Measure: StyleParam.WaterfallMeasure seq, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Orientation: StyleParam.Orientation, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -2609,28 +2609,28 @@ module Chart2D = static member Waterfall ( xymeasures: seq<#IConvertible * #IConvertible * StyleParam.WaterfallMeasure>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?TotalsColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Totals: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?Base: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Connector: WaterfallConnector, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(true)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TotalsColor: Color, + ?Totals: FinanceMarker, + ?Base: float, + ?Width: float, + ?MultiWidth: seq<float>, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextFont: Font, + ?Connector: WaterfallConnector, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Orientation: StyleParam.Orientation, + ?UseDefaults: bool ) = let x, y, measure = Seq.unzip3 xymeasures @@ -2694,27 +2694,27 @@ module Chart2D = static member Bar ( values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Keys: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiKeys: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = let useDefaults = @@ -2787,25 +2787,25 @@ module Chart2D = static member Bar ( keysValues: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -2867,27 +2867,27 @@ module Chart2D = static member StackedBar ( values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Keys: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiKeys: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = Chart.Bar( @@ -2947,25 +2947,25 @@ module Chart2D = static member StackedBar ( keysValues: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -3025,27 +3025,27 @@ module Chart2D = static member Column ( values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Keys: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiKeys: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = let useDefaults = @@ -3119,25 +3119,25 @@ module Chart2D = static member Column ( keysValues: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -3199,27 +3199,27 @@ module Chart2D = static member StackedColumn ( values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Keys: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiKeys: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = Chart.Column( @@ -3279,25 +3279,25 @@ module Chart2D = static member StackedColumn ( keysValues: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -3371,39 +3371,39 @@ module Chart2D = [<Extension>] static member Histogram ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?BinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?XError: Error, - [<Optional; DefaultParameterValue(null)>] ?YError: Error, - [<Optional; DefaultParameterValue(null)>] ?Cumulative: Cumulative, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Orientation: StyleParam.Orientation, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBins: Bins, + ?YBins: Bins, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Line: Line, + ?XError: Error, + ?YError: Error, + ?Cumulative: Cumulative, + ?HoverLabel: Hoverlabel, + ?UseDefaults: bool ) = let useDefaults = @@ -3494,28 +3494,28 @@ module Chart2D = ( data: seq<#IConvertible>, orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?BinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?XError: Error, - [<Optional; DefaultParameterValue(null)>] ?YError: Error, - [<Optional; DefaultParameterValue(null)>] ?Cumulative: Cumulative, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBins: Bins, + ?YBins: Bins, + ?MarkerColor: Color, + ?Marker: Marker, + ?Line: Line, + ?XError: Error, + ?YError: Error, + ?Cumulative: Cumulative, + ?HoverLabel: Hoverlabel, + ?UseDefaults: bool ) = let useDefaults = @@ -3583,28 +3583,28 @@ module Chart2D = [<Extension>] static member Histogram2D ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Z: seq<#seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?XBins: Bins, + ?YBins: Bins, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = let useDefaults = @@ -3667,24 +3667,24 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Z: seq<#seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?XBins: Bins, + ?YBins: Bins, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = Chart.Histogram2D( @@ -3749,34 +3749,34 @@ module Chart2D = [<Extension>] static member BoxPlot ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BoxPoints: StyleParam.BoxPoints, - [<Optional; DefaultParameterValue(null)>] ?BoxMean: StyleParam.BoxMean, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Notched: bool, - [<Optional; DefaultParameterValue(null)>] ?NotchWidth: float, - [<Optional; DefaultParameterValue(null)>] ?QuartileMethod: StyleParam.QuartileMethod, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.BoxSizeMode, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?MarkerColor: Color, + ?Marker: Marker, + ?Opacity: float, + ?WhiskerWidth: float, + ?BoxPoints: StyleParam.BoxPoints, + ?BoxMean: StyleParam.BoxMean, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Notched: bool, + ?NotchWidth: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SizeMode: StyleParam.BoxSizeMode, + ?UseDefaults: bool ) = let useDefaults = @@ -3860,29 +3860,29 @@ module Chart2D = ( data: seq<#IConvertible>, orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BoxPoints: StyleParam.BoxPoints, - [<Optional; DefaultParameterValue(null)>] ?BoxMean: StyleParam.BoxMean, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Notched: bool, - [<Optional; DefaultParameterValue(null)>] ?NotchWidth: float, - [<Optional; DefaultParameterValue(null)>] ?QuartileMethod: StyleParam.QuartileMethod, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.BoxSizeMode, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?MarkerColor: Color, + ?Marker: Marker, + ?Opacity: float, + ?WhiskerWidth: float, + ?BoxPoints: StyleParam.BoxPoints, + ?BoxMean: StyleParam.BoxMean, + ?Jitter: float, + ?PointPos: float, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Notched: bool, + ?NotchWidth: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SizeMode: StyleParam.BoxSizeMode, + ?UseDefaults: bool ) = let boxplot = @@ -3953,30 +3953,30 @@ module Chart2D = static member BoxPlot ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BoxPoints: StyleParam.BoxPoints, - [<Optional; DefaultParameterValue(null)>] ?BoxMean: StyleParam.BoxMean, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Notched: bool, - [<Optional; DefaultParameterValue(null)>] ?NotchWidth: float, - [<Optional; DefaultParameterValue(null)>] ?QuartileMethod: StyleParam.QuartileMethod, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.BoxSizeMode, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?MarkerColor: Color, + ?Marker: Marker, + ?Opacity: float, + ?WhiskerWidth: float, + ?BoxPoints: StyleParam.BoxPoints, + ?BoxMean: StyleParam.BoxMean, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Notched: bool, + ?NotchWidth: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SizeMode: StyleParam.BoxSizeMode, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -4055,40 +4055,40 @@ module Chart2D = [<Extension>] static member Violin ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Points: StyleParam.JitterPoints, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?ShowBox: bool, - [<Optional; DefaultParameterValue(null)>] ?BoxWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BoxFillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Box: Box, - [<Optional; DefaultParameterValue(null)>] ?BandWidth: float, - [<Optional; DefaultParameterValue(null)>] ?MeanLine: MeanLine, - [<Optional; DefaultParameterValue(null)>] ?ScaleGroup: string, - [<Optional; DefaultParameterValue(null)>] ?ScaleMode: StyleParam.ScaleMode, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.ViolinSide, - [<Optional; DefaultParameterValue(null)>] ?Span: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?SpanMode: StyleParam.SpanMode, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?Opacity: float, + ?Points: StyleParam.JitterPoints, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?Width: float, + ?MarkerColor: Color, + ?Marker: Marker, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?ShowBox: bool, + ?BoxWidth: float, + ?BoxFillColor: Color, + ?Box: Box, + ?BandWidth: float, + ?MeanLine: MeanLine, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UseDefaults: bool ) = let useDefaults = @@ -4185,35 +4185,35 @@ module Chart2D = ( data: seq<#IConvertible>, orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Points: StyleParam.JitterPoints, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?ShowBox: bool, - [<Optional; DefaultParameterValue(null)>] ?BoxWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BoxFillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Box: Box, - [<Optional; DefaultParameterValue(null)>] ?BandWidth: float, - [<Optional; DefaultParameterValue(null)>] ?MeanLine: MeanLine, - [<Optional; DefaultParameterValue(null)>] ?ScaleGroup: string, - [<Optional; DefaultParameterValue(null)>] ?ScaleMode: StyleParam.ScaleMode, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.ViolinSide, - [<Optional; DefaultParameterValue(null)>] ?Span: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?SpanMode: StyleParam.SpanMode, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?Opacity: float, + ?Points: StyleParam.JitterPoints, + ?Jitter: float, + ?PointPos: float, + ?Width: float, + ?MarkerColor: Color, + ?Marker: Marker, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?ShowBox: bool, + ?BoxWidth: float, + ?BoxFillColor: Color, + ?Box: Box, + ?BandWidth: float, + ?MeanLine: MeanLine, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UseDefaults: bool ) = let violin = @@ -4295,36 +4295,36 @@ module Chart2D = static member Violin ( xy: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Points: StyleParam.JitterPoints, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?ShowBox: bool, - [<Optional; DefaultParameterValue(null)>] ?BoxWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BoxFillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Box: Box, - [<Optional; DefaultParameterValue(null)>] ?BandWidth: float, - [<Optional; DefaultParameterValue(null)>] ?MeanLine: MeanLine, - [<Optional; DefaultParameterValue(null)>] ?ScaleGroup: string, - [<Optional; DefaultParameterValue(null)>] ?ScaleMode: StyleParam.ScaleMode, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.ViolinSide, - [<Optional; DefaultParameterValue(null)>] ?Span: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?SpanMode: StyleParam.SpanMode, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?Opacity: float, + ?Points: StyleParam.JitterPoints, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?Width: float, + ?MarkerColor: Color, + ?Marker: Marker, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?ShowBox: bool, + ?BoxWidth: float, + ?BoxFillColor: Color, + ?Box: Box, + ?BandWidth: float, + ?MeanLine: MeanLine, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -4397,8 +4397,8 @@ module Chart2D = /// <param name="ContoursColoring">Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace.</param> /// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param> /// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param> - /// <param name="ShowContourLabels">Determines whether to label the contour lines with their values.</param> - /// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> + /// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param> + /// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> /// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param> /// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param> /// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param> @@ -4411,44 +4411,44 @@ module Chart2D = [<Extension>] static member Histogram2DContour ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?BinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesSmoothing: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLines: Line, - [<Optional; DefaultParameterValue(null)>] ?ShowContourLines: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursColoring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?ContoursOperation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ContoursType: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?ShowContoursLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursLabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ContoursStart: float, - [<Optional; DefaultParameterValue(null)>] ?ContoursEnd: float, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?NContours: int, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#seq<#IConvertible>>, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?NContours: int, + ?UseDefaults: bool ) = let useDefaults = @@ -4544,8 +4544,8 @@ module Chart2D = /// <param name="ContoursColoring">Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace.</param> /// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param> /// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param> - /// <param name="ShowContourLabels">Determines whether to label the contour lines with their values.</param> - /// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> + /// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param> + /// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> /// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param> /// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param> /// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param> @@ -4553,7 +4553,6 @@ module Chart2D = /// <param name="ColorScale">Sets the colorscale for this trace.</param> /// <param name="ShowScale">Whether or not to show the colorscale/colorbar</param> /// <param name="ReverseScale">Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color.</param> - /// <param name="Contours">Sets the style of the contours</param> /// <param name="NContours">Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing.</param> /// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param> [<Extension>] @@ -4561,40 +4560,40 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?BinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesSmoothing: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLines: Line, - [<Optional; DefaultParameterValue(null)>] ?ShowContourLines: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursColoring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?ContoursOperation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ContoursType: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?ShowContoursLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursLabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ContoursStart: float, - [<Optional; DefaultParameterValue(null)>] ?ContoursEnd: float, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?NContours: int, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#seq<#IConvertible>>, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?NContours: int, + ?UseDefaults: bool ) = Chart.Histogram2DContour( X = x, @@ -4665,26 +4664,26 @@ module Chart2D = static member Heatmap ( zData: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(false)>] ?ReverseYAxis: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -4754,22 +4753,22 @@ module Chart2D = zData: seq<#seq<#IConvertible>>, colNames: seq<string>, rowNames: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(false)>] ?ReverseYAxis: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = Chart.Heatmap( @@ -4828,26 +4827,26 @@ module Chart2D = ( zData: seq<#seq<#IConvertible>>, annotationText: seq<#seq<string>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(false)>] ?ReverseYAxis: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -4932,26 +4931,26 @@ module Chart2D = static member AnnotatedHeatmap ( dataAnnotations: seq<#seq<#IConvertible * string>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(false)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(false)>] ?ReverseYAxis: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = let zData = @@ -5002,17 +5001,17 @@ module Chart2D = [<Extension>] static member Image ( - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#seq<int>>>, - [<Optional; DefaultParameterValue(null)>] ?Source: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorModel: StyleParam.ColorModel, - [<Optional; DefaultParameterValue(null)>] ?ZMax: StyleParam.ColorComponentBound, - [<Optional; DefaultParameterValue(null)>] ?ZMin: StyleParam.ColorComponentBound, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Z: seq<#seq<#seq<int>>>, + ?Source: string, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?ColorModel: StyleParam.ColorModel, + ?ZMax: StyleParam.ColorComponentBound, + ?ZMin: StyleParam.ColorComponentBound, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = let useDefaults = @@ -5050,14 +5049,14 @@ module Chart2D = static member Image ( z: seq<#seq<ARGB>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ZMax: StyleParam.ColorComponentBound, - [<Optional; DefaultParameterValue(null)>] ?ZMin: StyleParam.ColorComponentBound, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?ZMax: StyleParam.ColorComponentBound, + ?ZMin: StyleParam.ColorComponentBound, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = let useDefaults = @@ -5122,8 +5121,8 @@ module Chart2D = /// <param name="ContoursColoring">Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace.</param> /// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param> /// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param> - /// <param name="ShowContourLabels">Determines whether to label the contour lines with their values.</param> - /// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> + /// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param> + /// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> /// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param> /// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param> /// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param> @@ -5134,37 +5133,37 @@ module Chart2D = static member Contour ( zData: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesSmoothing: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLines: Line, - [<Optional; DefaultParameterValue(null)>] ?ShowContourLines: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursColoring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?ContoursOperation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ContoursType: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?ShowContoursLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursLabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ContoursStart: float, - [<Optional; DefaultParameterValue(null)>] ?ContoursEnd: float, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?NContours: int, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Transpose: bool, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?FillColor: Color, + ?NContours: int, + ?UseDefaults: bool ) = let useDefaults = @@ -5255,21 +5254,21 @@ module Chart2D = high: #IConvertible seq, low: #IConvertible seq, close: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: float, - [<Optional; DefaultParameterValue(true)>] ?ShowXAxisRangeSlider: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TickWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5344,19 +5343,19 @@ module Chart2D = low: #IConvertible seq, close: #IConvertible seq, x: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: float, - [<Optional; DefaultParameterValue(true)>] ?ShowXAxisRangeSlider: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TickWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = Chart.OHLC( @@ -5403,19 +5402,19 @@ module Chart2D = static member OHLC ( stockTimeSeries: seq<System.DateTime * StockData>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: float, - [<Optional; DefaultParameterValue(true)>] ?ShowXAxisRangeSlider: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TickWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = Chart.OHLC( @@ -5471,21 +5470,21 @@ module Chart2D = high: #IConvertible seq, low: #IConvertible seq, close: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(true)>] ?ShowXAxisRangeSlider: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?WhiskerWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5560,19 +5559,19 @@ module Chart2D = low: #IConvertible seq, close: #IConvertible seq, x: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(true)>] ?ShowXAxisRangeSlider: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?WhiskerWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = Chart.Candlestick( @@ -5619,19 +5618,19 @@ module Chart2D = static member Candlestick ( stockTimeSeries: seq<System.DateTime * StockData>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?IncreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?DecreasingColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(true)>] ?ShowXAxisRangeSlider: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?WhiskerWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5684,22 +5683,22 @@ module Chart2D = static member Splom ( dimensions: seq<Dimension>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?ShowDiagonal: bool, - [<Optional; DefaultParameterValue(null)>] ?Diagonal: SplomDiagonal, - [<Optional; DefaultParameterValue(null)>] ?ShowLowerHalf: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowUpperHalf: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?ShowDiagonal: bool, + ?Diagonal: SplomDiagonal, + ?ShowLowerHalf: bool, + ?ShowUpperHalf: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5763,22 +5762,22 @@ module Chart2D = static member Splom ( keyValues: seq<string * #seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?ShowDiagonal: bool, - [<Optional; DefaultParameterValue(null)>] ?Diagonal: SplomDiagonal, - [<Optional; DefaultParameterValue(null)>] ?ShowLowerHalf: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowUpperHalf: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?ShowDiagonal: bool, + ?Diagonal: SplomDiagonal, + ?ShowLowerHalf: bool, + ?ShowUpperHalf: bool, + ?UseDefaults: bool ) = let dims = @@ -5817,7 +5816,6 @@ module Chart2D = /// <param name="PointMarkerColor">Sets the marker color of the point trace.</param> /// <param name="PointMarkerSymbol">Sets the marker symbol of the point trace.</param> /// <param name="PointMarkerSize">Sets the marker size of the point trace.</param> - /// <param name="ContourLinesDash">Sets the contour line dash style</param> /// <param name="ContourLinesColor">Sets the contour line color</param> /// <param name="ContourLinesSmoothing">Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing.</param> @@ -5827,12 +5825,14 @@ module Chart2D = /// <param name="ContoursColoring">Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace.</param> /// <param name="ContoursOperation">Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.</param> /// <param name="ContoursType">If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters.</param> - /// <param name="ShowContourLabels">Determines whether to label the contour lines with their values.</param> - /// <param name="ContourLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> + /// <param name="ShowContoursLabels">Determines whether to label the contour lines with their values.</param> + /// <param name="ContoursLabelFont">Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.</param> /// <param name="ContoursStart">Sets the starting contour level value. Must be less than `contours.end`</param> /// <param name="ContoursEnd">Sets the end contour level value. Must be more than `contours.start`</param> /// <param name="Contours">Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments).</param> - + /// <param name="NContours">Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing.</param> + /// <param name="HistNorm">Specifies the type of normalization used for this histogram trace. If "", the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If "percent" / "probability", the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If "density", the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If "probability density", the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1).</param> + /// <param name="ContourOpacity">Sets the opacity of the histogram2dcontour trace.</param> /// <param name="ColorBar">Sets the color bar.</param> /// <param name="ColorScale">Sets the colorscale of the histogram2dcontour trace.</param> /// <param name="ShowScale">whether or not to show the colorbar</param> @@ -5842,31 +5842,31 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?PointOpacity: float, - [<Optional; DefaultParameterValue(null)>] ?PointMarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?PointMarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?PointMarkerSize: int, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesSmoothing: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLinesWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLines: Line, - [<Optional; DefaultParameterValue(null)>] ?ShowContourLines: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursColoring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?ContoursOperation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ContoursType: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?ShowContoursLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ContoursLabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ContoursStart: float, - [<Optional; DefaultParameterValue(null)>] ?ContoursEnd: float, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?NContours: int, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?ContourOpacity: float, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?PointOpacity: float, + ?PointMarkerColor: Color, + ?PointMarkerSymbol: StyleParam.MarkerSymbol, + ?PointMarkerSize: int, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?NContours: int, + ?HistNorm: StyleParam.HistNorm, + ?ContourOpacity: float, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?UseDefaults: bool ) = let showContourLines = @@ -5952,9 +5952,9 @@ module Chart2D = static member Pareto ( keysValues: seq<#IConvertible * float> - , [<Optional; DefaultParameterValue(null)>] ?Name: string - , [<Optional; DefaultParameterValue(null)>] ?Label: string - , [<Optional; DefaultParameterValue(true)>] ?ShowGrid: bool + , ?Name: string + , ?Label: string + , ?ShowGrid: bool ) = let orderedLabels, orderedValues = keysValues @@ -6010,8 +6010,8 @@ module Chart2D = ( labels: seq<#IConvertible> , values: seq<float> - , [<Optional; DefaultParameterValue(null)>] ?Name: string - , [<Optional; DefaultParameterValue(null)>] ?Label: string - , [<Optional; DefaultParameterValue(true)>] ?ShowGrid: bool + , ?Name: string + , ?Label: string + , ?ShowGrid: bool ) = Chart.Pareto(Seq.zip labels values, ?Name=Name, ?Label=Label, ?ShowGrid=ShowGrid) \ No newline at end of file diff --git a/src/Plotly.NET/ChartAPI/Chart3D.fs b/src/Plotly.NET/ChartAPI/Chart3D.fs index 6836add97..e08deb784 100644 --- a/src/Plotly.NET/ChartAPI/Chart3D.fs +++ b/src/Plotly.NET/ChartAPI/Chart3D.fs @@ -59,29 +59,29 @@ module Chart3D = y: seq<#IConvertible>, z: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let useDefaults = @@ -179,29 +179,29 @@ module Chart3D = ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let useDefaults = @@ -271,24 +271,24 @@ module Chart3D = x: seq<#IConvertible>, y: seq<#IConvertible>, z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = // if text position or font is set, then show labels (not only when hovering) @@ -348,24 +348,24 @@ module Chart3D = static member Point3D ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -433,30 +433,30 @@ module Chart3D = x: seq<#IConvertible>, y: seq<#IConvertible>, z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let changeMode = let isShowMarker = @@ -532,30 +532,30 @@ module Chart3D = static member Line3D ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -625,24 +625,24 @@ module Chart3D = y: seq<#IConvertible>, z: seq<#IConvertible>, sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let useDefaults = @@ -726,24 +726,24 @@ module Chart3D = ( xyz, sizes, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -802,24 +802,24 @@ module Chart3D = static member Bubble3D ( xyzsizes, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z, sizes = @@ -881,19 +881,19 @@ module Chart3D = static member Surface ( zData, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Contours: Contours, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -968,24 +968,24 @@ module Chart3D = x: seq<#IConvertible>, y: seq<#IConvertible>, z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?I: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?J: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?K: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Contour: Contour, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?FlatShading: bool, - [<Optional; DefaultParameterValue(null)>] ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?I: seq<#IConvertible>, + ?J: seq<#IConvertible>, + ?K: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Color: Color, + ?Contour: Contour, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?FlatShading: bool, + ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1062,24 +1062,24 @@ module Chart3D = static member Mesh3D ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?I: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?J: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?K: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Contour: Contour, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?FlatShading: bool, - [<Optional; DefaultParameterValue(null)>] ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?I: seq<#IConvertible>, + ?J: seq<#IConvertible>, + ?K: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Color: Color, + ?Contour: Contour, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?FlatShading: bool, + ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -1147,19 +1147,19 @@ module Chart3D = u: seq<#IConvertible>, v: seq<#IConvertible>, w: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.ConeSizeMode, - [<Optional; DefaultParameterValue(null)>] ?ConeAnchor: StyleParam.ConeAnchor, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?SizeMode: StyleParam.ConeSizeMode, + ?ConeAnchor: StyleParam.ConeAnchor, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1229,19 +1229,19 @@ module Chart3D = ( coneXYZ: seq<#IConvertible * #IConvertible * #IConvertible>, coneUVW: seq<#IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.ConeSizeMode, - [<Optional; DefaultParameterValue(null)>] ?ConeAnchor: StyleParam.ConeAnchor, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?SizeMode: StyleParam.ConeSizeMode, + ?ConeAnchor: StyleParam.ConeAnchor, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 coneXYZ @@ -1299,19 +1299,19 @@ module Chart3D = ( xyzuvw: seq<#IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.ConeSizeMode, - [<Optional; DefaultParameterValue(null)>] ?ConeAnchor: StyleParam.ConeAnchor, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?SizeMode: StyleParam.ConeSizeMode, + ?ConeAnchor: StyleParam.ConeAnchor, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z, u, v, w = @@ -1385,19 +1385,19 @@ module Chart3D = u, v, w, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?TubeStarts: StreamTubeStarts, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?MaxDisplayed: int, + ?TubeStarts: StreamTubeStarts, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1469,19 +1469,19 @@ module Chart3D = ( streamTubeXYZ: seq<#IConvertible * #IConvertible * #IConvertible>, streamTubeUVW: seq<#IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?TubeStarts: StreamTubeStarts, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?MaxDisplayed: int, + ?TubeStarts: StreamTubeStarts, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1545,19 +1545,19 @@ module Chart3D = ( xyzuvw: seq<#IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?TubeStarts: StreamTubeStarts, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?MaxDisplayed: int, + ?TubeStarts: StreamTubeStarts, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z, u, v, w = @@ -1627,23 +1627,23 @@ module Chart3D = y, z, value, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?IsoMin: float, - [<Optional; DefaultParameterValue(null)>] ?IsoMax: float, - [<Optional; DefaultParameterValue(null)>] ?Caps: Caps, - [<Optional; DefaultParameterValue(null)>] ?Slices: Slices, - [<Optional; DefaultParameterValue(null)>] ?Surface: Surface, - [<Optional; DefaultParameterValue(null)>] ?OpacityScale: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?IsoMin: float, + ?IsoMax: float, + ?Caps: Caps, + ?Slices: Slices, + ?Surface: Surface, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1722,22 +1722,22 @@ module Chart3D = y, z, value, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?IsoMin: float, - [<Optional; DefaultParameterValue(null)>] ?IsoMax: float, - [<Optional; DefaultParameterValue(null)>] ?Caps: Caps, - [<Optional; DefaultParameterValue(null)>] ?Slices: Slices, - [<Optional; DefaultParameterValue(null)>] ?Surface: Surface, - [<Optional; DefaultParameterValue(null)>] ?CameraProjectionType: StyleParam.CameraProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?IsoMin: float, + ?IsoMax: float, + ?Caps: Caps, + ?Slices: Slices, + ?Surface: Surface, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = diff --git a/src/Plotly.NET/ChartAPI/ChartCarpet.fs b/src/Plotly.NET/ChartAPI/ChartCarpet.fs index a2df9c975..44bb9c21c 100644 --- a/src/Plotly.NET/ChartAPI/ChartCarpet.fs +++ b/src/Plotly.NET/ChartAPI/ChartCarpet.fs @@ -55,22 +55,22 @@ module ChartCarpet = static member Carpet ( carpetId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?AAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?BAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?CheaterSlope: float, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq<#seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<#seq<#IConvertible>>, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Color: Color, + ?CheaterSlope: float, + ?UseDefaults: bool ) = let useDefaults = @@ -138,26 +138,26 @@ module ChartCarpet = b: seq<#IConvertible>, mode: StyleParam.Mode, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -242,26 +242,26 @@ module ChartCarpet = ab: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -325,21 +325,21 @@ module ChartCarpet = a: seq<#IConvertible>, b: seq<#IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UseDefaults: bool ) = let useDefaults = @@ -400,21 +400,21 @@ module ChartCarpet = ( ab: seq<#IConvertible * #IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -477,27 +477,27 @@ module ChartCarpet = a: seq<#IConvertible>, b: seq<#IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let changeMode = @@ -571,27 +571,27 @@ module ChartCarpet = ( ab: seq<#IConvertible * #IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -662,28 +662,28 @@ module ChartCarpet = a: seq<#IConvertible>, b: seq<#IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -779,28 +779,28 @@ module ChartCarpet = ( ab: seq<#IConvertible * #IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -873,26 +873,26 @@ module ChartCarpet = b: seq<#IConvertible>, sizes: seq<int>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -978,26 +978,26 @@ module ChartCarpet = ( absizes: seq<#IConvertible * #IConvertible * int>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, sizes = Seq.unzip3 absizes @@ -1064,29 +1064,29 @@ module ChartCarpet = ( z: seq<#IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(null)>] ?ContourLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ContourLineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ContourLineSmoothing: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLine: Line, - [<Optional; DefaultParameterValue(null)>] ?ContoursColoring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?ContoursOperation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ContoursType: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?ShowContourLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ContourLabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Transpose: bool, + ?ContourLineColor: Color, + ?ContourLineDash: StyleParam.DrawingStyle, + ?ContourLineSmoothing: float, + ?ContourLine: Line, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContourLabels: bool, + ?ContourLabelFont: Font, + ?Contours: Contours, + ?UseDefaults: bool ) = let useDefaults = @@ -1166,27 +1166,27 @@ module ChartCarpet = ( abz: seq<#IConvertible * #IConvertible * #IConvertible>, carpetAnchorId: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(null)>] ?ContourLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ContourLineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?ContourLineSmoothing: float, - [<Optional; DefaultParameterValue(null)>] ?ContourLine: Line, - [<Optional; DefaultParameterValue(null)>] ?ContoursColoring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?ContoursOperation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ContoursType: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?ShowContourLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ContourLabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Transpose: bool, + ?ContourLineColor: Color, + ?ContourLineDash: StyleParam.DrawingStyle, + ?ContourLineSmoothing: float, + ?ContourLine: Line, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContourLabels: bool, + ?ContourLabelFont: Font, + ?Contours: Contours, + ?UseDefaults: bool ) = let a, b, z = Seq.unzip3 abz diff --git a/src/Plotly.NET/ChartAPI/ChartDomain.fs b/src/Plotly.NET/ChartAPI/ChartDomain.fs index 05e13fe1d..ac041fa69 100644 --- a/src/Plotly.NET/ChartAPI/ChartDomain.fs +++ b/src/Plotly.NET/ChartAPI/ChartDomain.fs @@ -54,32 +54,32 @@ module ChartDomain = static member Pie ( values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Pull: float, - [<Optional; DefaultParameterValue(null)>] ?MultiPull: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?Rotation: float, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Labels: seq<#IConvertible>, + ?Pull: float, + ?MultiPull: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Hole: float, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -165,31 +165,31 @@ module ChartDomain = static member Pie ( valuesLabels: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Pull: float, - [<Optional; DefaultParameterValue(null)>] ?MultiPull: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?Rotation: float, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Pull: float, + ?MultiPull: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Hole: float, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let values, labels = Seq.unzip valuesLabels @@ -261,32 +261,32 @@ module ChartDomain = static member Doughnut ( values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Pull: float, - [<Optional; DefaultParameterValue(null)>] ?MultiPull: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Rotation: float, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?Hole: float, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Labels: seq<#IConvertible>, + ?Pull: float, + ?MultiPull: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -360,31 +360,31 @@ module ChartDomain = static member Doughnut ( valuesLabels: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Pull: float, - [<Optional; DefaultParameterValue(null)>] ?MultiPull: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Rotation: float, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Hole: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Pull: float, + ?MultiPull: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let values, labels = Seq.unzip valuesLabels @@ -453,28 +453,28 @@ module ChartDomain = static member FunnelArea ( values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?AspectRatio: float, - [<Optional; DefaultParameterValue(null)>] ?BaseRatio: float, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?AspectRatio: float, + ?BaseRatio: float, + ?UseDefaults: bool ) = @@ -552,27 +552,27 @@ module ChartDomain = static member FunnelArea ( valuesLabels: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?AspectRatio: float, - [<Optional; DefaultParameterValue(null)>] ?BaseRatio: float, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?AspectRatio: float, + ?BaseRatio: float, + ?UseDefaults: bool ) = let values, labels = Seq.unzip valuesLabels @@ -645,36 +645,36 @@ module ChartDomain = ( labels: seq<#IConvertible>, parents: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: string, - [<Optional; DefaultParameterValue(null)>] ?Root: SunburstRoot, - [<Optional; DefaultParameterValue(null)>] ?Leaf: SunburstLeaf, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?Rotation: int, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?SectionColors: seq<Color>, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Root: SunburstRoot, + ?Leaf: SunburstLeaf, + ?Level: string, + ?MaxDepth: int, + ?Rotation: int, + ?Sort: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -775,36 +775,36 @@ module ChartDomain = static member Sunburst ( labelsparents: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: string, - [<Optional; DefaultParameterValue(null)>] ?Root: SunburstRoot, - [<Optional; DefaultParameterValue(null)>] ?Leaf: SunburstLeaf, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?Rotation: int, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?SectionColors: seq<Color>, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Root: SunburstRoot, + ?Leaf: SunburstLeaf, + ?Level: string, + ?MaxDepth: int, + ?Rotation: int, + ?Sort: bool, + ?UseDefaults: bool ) = let labels, parents = @@ -891,37 +891,37 @@ module ChartDomain = ( labels: seq<#IConvertible>, parents: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: string, - [<Optional; DefaultParameterValue(null)>] ?Tiling: TreemapTiling, - [<Optional; DefaultParameterValue(null)>] ?PathBar: Pathbar, - [<Optional; DefaultParameterValue(null)>] ?Root: TreemapRoot, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Tiling: TreemapTiling, + ?PathBar: Pathbar, + ?Root: TreemapRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let useDefaults = @@ -1023,37 +1023,37 @@ module ChartDomain = static member Treemap ( labelsparents: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: string, - [<Optional; DefaultParameterValue(null)>] ?Tiling: TreemapTiling, - [<Optional; DefaultParameterValue(null)>] ?PathBar: Pathbar, - [<Optional; DefaultParameterValue(null)>] ?Root: TreemapRoot, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Tiling: TreemapTiling, + ?PathBar: Pathbar, + ?Root: TreemapRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let labels, parents = @@ -1122,18 +1122,18 @@ module ChartDomain = static member ParallelCoord ( dimensions: seq<Dimension>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LabelAngle: int, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?LabelSide: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?RangeFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?LabelAngle: int, + ?LabelFont: Font, + ?LabelSide: StyleParam.Side, + ?RangeFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let useDefaults = defaultArg UseDefaults true @@ -1188,18 +1188,18 @@ module ChartDomain = static member ParallelCoord ( keyValues: seq<string * #seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LabelAngle: int, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?LabelSide: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?RangeFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?LabelAngle: int, + ?LabelFont: Font, + ?LabelSide: StyleParam.Side, + ?RangeFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let dims = @@ -1248,20 +1248,20 @@ module ChartDomain = static member ParallelCategories ( dimensions: seq<Dimension>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Counts: int, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineShape: StyleParam.Shape, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Arrangement: StyleParam.CategoryArrangement, - [<Optional; DefaultParameterValue(null)>] ?BundleColors: bool, - [<Optional; DefaultParameterValue(null)>] ?SortPaths: StyleParam.SortAlgorithm, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?Counts: int, + ?LineColor: Color, + ?LineShape: StyleParam.Shape, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?Arrangement: StyleParam.CategoryArrangement, + ?BundleColors: bool, + ?SortPaths: StyleParam.SortAlgorithm, + ?LabelFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let useDefaults = @@ -1321,20 +1321,20 @@ module ChartDomain = static member ParallelCategories ( keyValues: seq<string * #seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Counts: int, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineShape: StyleParam.Shape, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseLineColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Arrangement: StyleParam.CategoryArrangement, - [<Optional; DefaultParameterValue(null)>] ?BundleColors: bool, - [<Optional; DefaultParameterValue(null)>] ?SortPaths: StyleParam.SortAlgorithm, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?Counts: int, + ?LineColor: Color, + ?LineShape: StyleParam.Shape, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?Arrangement: StyleParam.CategoryArrangement, + ?BundleColors: bool, + ?SortPaths: StyleParam.SortAlgorithm, + ?LabelFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let useDefaults = @@ -1391,14 +1391,14 @@ module ChartDomain = ( nodes: SankeyNodes, links: SankeyLinks, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Arrangement: StyleParam.CategoryArrangement, - [<Optional; DefaultParameterValue(null)>] ?ValueFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ValueSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?Ids: seq<#IConvertible>, + ?Orientation: StyleParam.Orientation, + ?TextFont: Font, + ?Arrangement: StyleParam.CategoryArrangement, + ?ValueFormat: string, + ?ValueSuffix: string, + ?UseDefaults: bool ) = let useDefaults = @@ -1453,24 +1453,24 @@ module ChartDomain = nodeLabels: seq<string>, linkedNodeIds: seq<int * int>, linkValues: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?NodeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?NodeOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?NodeOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?NodeThickness: int, - [<Optional; DefaultParameterValue(null)>] ?NodeGroups: seq<#seq<int>>, - [<Optional; DefaultParameterValue(null)>] ?LinkColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LinkColorScales: seq<StyleParam.Colorscale>, - [<Optional; DefaultParameterValue(null)>] ?LinkOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LinkOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LinkLabels: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Arrangement: StyleParam.CategoryArrangement, - [<Optional; DefaultParameterValue(null)>] ?ValueFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ValueSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?NodeColor: Color, + ?NodeOutlineColor: Color, + ?NodeOutlineWidth: float, + ?NodeThickness: int, + ?NodeGroups: seq<#seq<int>>, + ?LinkColor: Color, + ?LinkColorScales: seq<StyleParam.Colorscale>, + ?LinkOutlineColor: Color, + ?LinkOutlineWidth: float, + ?LinkLabels: seq<string>, + ?Name: string, + ?Ids: seq<#IConvertible>, + ?Orientation: StyleParam.Orientation, + ?TextFont: Font, + ?Arrangement: StyleParam.CategoryArrangement, + ?ValueFormat: string, + ?ValueSuffix: string, + ?UseDefaults: bool ) = let nodeOutline = @@ -1536,11 +1536,11 @@ module ChartDomain = ( header: TableHeader, cells: TableCells, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ColumnOrder: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?ColumnWidth: float, - [<Optional; DefaultParameterValue(null)>] ?MultiColumnWidth: seq<float>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ColumnOrder: seq<int>, + ?ColumnWidth: float, + ?MultiColumnWidth: seq<float>, + ?UseDefaults: bool ) = let useDefaults = @@ -1594,28 +1594,28 @@ module ChartDomain = ( headerValues: seq<#seq<#IConvertible>>, cellsValues: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(true)>] ?TransposeCells: bool, - [<Optional; DefaultParameterValue(null)>] ?HeaderAlign: StyleParam.HorizontalAlign, - [<Optional; DefaultParameterValue(null)>] ?HeaderMultiAlign: seq<StyleParam.HorizontalAlign>, - [<Optional; DefaultParameterValue(null)>] ?HeaderFillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HeaderHeight: int, - [<Optional; DefaultParameterValue(null)>] ?HeaderOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HeaderOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?HeaderOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?HeaderOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?CellsAlign: StyleParam.HorizontalAlign, - [<Optional; DefaultParameterValue(null)>] ?CellsMultiAlign: seq<StyleParam.HorizontalAlign>, - [<Optional; DefaultParameterValue(null)>] ?CellsFillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CellsHeight: int, - [<Optional; DefaultParameterValue(null)>] ?CellsOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CellsOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?CellsOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?CellsOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ColumnOrder: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?ColumnWidth: float, - [<Optional; DefaultParameterValue(null)>] ?MultiColumnWidth: seq<float>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?TransposeCells: bool, + ?HeaderAlign: StyleParam.HorizontalAlign, + ?HeaderMultiAlign: seq<StyleParam.HorizontalAlign>, + ?HeaderFillColor: Color, + ?HeaderHeight: int, + ?HeaderOutlineColor: Color, + ?HeaderOutlineWidth: float, + ?HeaderOutlineMultiWidth: seq<float>, + ?HeaderOutline: Line, + ?CellsAlign: StyleParam.HorizontalAlign, + ?CellsMultiAlign: seq<StyleParam.HorizontalAlign>, + ?CellsFillColor: Color, + ?CellsHeight: int, + ?CellsOutlineColor: Color, + ?CellsOutlineWidth: float, + ?CellsOutlineMultiWidth: seq<float>, + ?CellsOutline: Line, + ?Name: string, + ?ColumnOrder: seq<int>, + ?ColumnWidth: float, + ?MultiColumnWidth: seq<float>, + ?UseDefaults: bool ) = let useDefaults = @@ -1712,19 +1712,19 @@ module ChartDomain = ( value: IConvertible, mode: StyleParam.IndicatorMode, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Title: string, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.IndicatorAlignment, - [<Optional; DefaultParameterValue(null)>] ?DeltaReference: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Delta: IndicatorDelta, - [<Optional; DefaultParameterValue(null)>] ?Number: IndicatorNumber, - [<Optional; DefaultParameterValue(null)>] ?GaugeShape: StyleParam.IndicatorGaugeShape, - [<Optional; DefaultParameterValue(null)>] ?Gauge: IndicatorGauge, - [<Optional; DefaultParameterValue(null)>] ?ShowGaugeAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?GaugeAxis: LinearAxis, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Range: StyleParam.Range, + ?Name: string, + ?Title: string, + ?Domain: Domain, + ?Align: StyleParam.IndicatorAlignment, + ?DeltaReference: #IConvertible, + ?Delta: IndicatorDelta, + ?Number: IndicatorNumber, + ?GaugeShape: StyleParam.IndicatorGaugeShape, + ?Gauge: IndicatorGauge, + ?ShowGaugeAxis: bool, + ?GaugeAxis: LinearAxis, + ?UseDefaults: bool ) = let useDefaults = @@ -1806,39 +1806,39 @@ module ChartDomain = ( labels: seq<#IConvertible>, parents: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: StyleParam.IcicleCount, - [<Optional; DefaultParameterValue(null)>] ?TilingOrientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?TilingFlip: StyleParam.TilingFlip, - [<Optional; DefaultParameterValue(null)>] ?Tiling: IcicleTiling, - [<Optional; DefaultParameterValue(null)>] ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, - [<Optional; DefaultParameterValue(null)>] ?PathBar: Pathbar, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?Root: IcicleRoot, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?BranchValues: StyleParam.BranchValues, + ?Count: StyleParam.IcicleCount, + ?TilingOrientation: StyleParam.Orientation, + ?TilingFlip: StyleParam.TilingFlip, + ?Tiling: IcicleTiling, + ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, + ?PathBar: Pathbar, + ?TextInfo: StyleParam.TextInfo, + ?Root: IcicleRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let useDefaults = @@ -1949,39 +1949,39 @@ module ChartDomain = static member Icicle ( labelsparents: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?SectionColors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?SectionColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseSectionColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SectionOutlineMultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?SectionOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: StyleParam.IcicleCount, - [<Optional; DefaultParameterValue(null)>] ?TilingOrientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?TilingFlip: StyleParam.TilingFlip, - [<Optional; DefaultParameterValue(null)>] ?Tiling: IcicleTiling, - [<Optional; DefaultParameterValue(null)>] ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, - [<Optional; DefaultParameterValue(null)>] ?PathBar: Pathbar, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?Root: IcicleRoot, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?SectionColors: seq<Color>, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq<float>, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?BranchValues: StyleParam.BranchValues, + ?Count: StyleParam.IcicleCount, + ?TilingOrientation: StyleParam.Orientation, + ?TilingFlip: StyleParam.TilingFlip, + ?Tiling: IcicleTiling, + ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, + ?PathBar: Pathbar, + ?TextInfo: StyleParam.TextInfo, + ?Root: IcicleRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let labels, parents = diff --git a/src/Plotly.NET/ChartAPI/ChartMap.fs b/src/Plotly.NET/ChartAPI/ChartMap.fs index b7963ebf5..0dde1f3d8 100644 --- a/src/Plotly.NET/ChartAPI/ChartMap.fs +++ b/src/Plotly.NET/ChartAPI/ChartMap.fs @@ -41,18 +41,18 @@ module ChartMap = ( locations, z, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?LocationMode: StyleParam.LocationFormat, + ?UseDefaults: bool ) = let useDefaults = @@ -116,29 +116,29 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let useDefaults = @@ -228,29 +228,29 @@ module ChartMap = ( lonlat: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -321,29 +321,29 @@ module ChartMap = ( locations: seq<string>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let useDefaults = @@ -424,24 +424,24 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -500,24 +500,24 @@ module ChartMap = static member PointGeo ( lonlat: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -573,24 +573,24 @@ module ChartMap = static member PointGeo ( locations: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) @@ -654,30 +654,30 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -752,30 +752,30 @@ module ChartMap = static member LineGeo ( lonlat: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -844,30 +844,30 @@ module ChartMap = static member LineGeo ( locations: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -939,24 +939,24 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -1027,24 +1027,24 @@ module ChartMap = static member BubbleGeo ( lonlatsizes: seq<#IConvertible * #IConvertible * int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes, sizes = @@ -1104,24 +1104,24 @@ module ChartMap = ( locations: seq<string>, sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) @@ -1192,30 +1192,30 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?EnableClustering: bool, - [<Optional; DefaultParameterValue(true)>] ?Cluster: MapboxCluster, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?MapboxStyle: StyleParam.MapboxStyle, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = @@ -1316,30 +1316,30 @@ module ChartMap = ( lonlat: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?EnableClustering: bool, - [<Optional; DefaultParameterValue(true)>] ?Cluster: MapboxCluster, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -1407,25 +1407,25 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?EnableClustering: bool, - [<Optional; DefaultParameterValue(true)>] ?Cluster: MapboxCluster, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = let changeMode = @@ -1488,25 +1488,25 @@ module ChartMap = static member PointMapbox ( lonlat: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?EnableClustering: bool, - [<Optional; DefaultParameterValue(true)>] ?Cluster: MapboxCluster, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -1572,29 +1572,29 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?UseDefaults: bool ) = let changeMode = @@ -1669,29 +1669,29 @@ module ChartMap = static member LineMapbox ( lonlat: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -1758,23 +1758,23 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?Below: string, + ?UseDefaults: bool ) = let changeMode = @@ -1851,23 +1851,23 @@ module ChartMap = static member BubbleMapbox ( lonlatsizes: seq<#IConvertible * #IConvertible * int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?Below: string, + ?UseDefaults: bool ) = let longitudes, latitudes, sizes = @@ -1928,18 +1928,18 @@ module ChartMap = locations: seq<string>, z: seq<#IConvertible>, geoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?FeatureIdKey: string, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Below: string, + ?UseDefaults: bool ) = let useDefaults = @@ -1999,20 +1999,20 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Radius: int, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#IConvertible>, + ?Radius: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Below: string, + ?UseDefaults: bool ) = let useDefaults = @@ -2072,20 +2072,20 @@ module ChartMap = static member DensityMapbox ( lonlat: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxStyle: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Radius: int, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(null)>] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#IConvertible>, + ?Radius: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Below: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat diff --git a/src/Plotly.NET/ChartAPI/ChartPolar.fs b/src/Plotly.NET/ChartAPI/ChartPolar.fs index 21082f3c6..82e788904 100644 --- a/src/Plotly.NET/ChartAPI/ChartPolar.fs +++ b/src/Plotly.NET/ChartAPI/ChartPolar.fs @@ -64,27 +64,27 @@ module ChartPolar = r: seq<#IConvertible>, theta: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -167,27 +167,27 @@ module ChartPolar = ( rTheta: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -247,22 +247,22 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -328,22 +328,22 @@ module ChartPolar = static member PointPolar ( rTheta: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -404,28 +404,28 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -514,28 +514,28 @@ module ChartPolar = static member LinePolar ( rTheta: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -603,29 +603,29 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -717,29 +717,29 @@ module ChartPolar = static member SplinePolar ( rTheta: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -803,22 +803,22 @@ module ChartPolar = r: seq<#IConvertible>, theta: seq<#IConvertible>, sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -885,22 +885,22 @@ module ChartPolar = static member BubblePolar ( rThetaSizes: seq<#IConvertible * #IConvertible * int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?UseWebGL: bool, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol3D>, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t, sizes = Seq.unzip3 rThetaSizes @@ -957,23 +957,23 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?UseDefaults: bool ) = let useDefaults = @@ -1039,23 +1039,23 @@ module ChartPolar = static member BarPolar ( rTheta: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerPatternShape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?MarkerPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq<StyleParam.PatternShape>, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?UseDefaults: bool ) = let r, theta = Seq.unzip rTheta diff --git a/src/Plotly.NET/ChartAPI/ChartSmith.fs b/src/Plotly.NET/ChartAPI/ChartSmith.fs index aa042a38d..6d40b6ec6 100644 --- a/src/Plotly.NET/ChartAPI/ChartSmith.fs +++ b/src/Plotly.NET/ChartAPI/ChartSmith.fs @@ -55,28 +55,28 @@ module ChartSmith = real: seq<#IConvertible>, imag: seq<#IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = let useDefaults = defaultArg UseDefaults true @@ -159,28 +159,28 @@ module ChartSmith = ( realImag: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = let real, imag = Seq.unzip realImag @@ -240,21 +240,21 @@ module ChartSmith = ( real: seq<#IConvertible>, imag: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UseDefaults: bool ) = // if text position or font is set, then show labels (not only when hovering) let changeMode = @@ -306,21 +306,21 @@ module ChartSmith = static member PointSmith ( realImag: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UseDefaults: bool ) = let real, imag = Seq.unzip realImag @@ -379,29 +379,29 @@ module ChartSmith = ( real: seq<#IConvertible>, imag: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = // if text position or font is set than show labels (not only when hovering) let changeMode = @@ -474,29 +474,29 @@ module ChartSmith = static member LineSmith ( realImag: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = let real, imag = Seq.unzip realImag @@ -562,26 +562,26 @@ module ChartSmith = real: seq<#IConvertible>, imag: seq<#IConvertible>, sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = // if text position or font is set than show labels (not only when hovering) @@ -657,26 +657,26 @@ module ChartSmith = static member BubbleSmith ( realImagSizes: seq<#IConvertible * #IConvertible * int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let real, imag, sizes = diff --git a/src/Plotly.NET/ChartAPI/ChartTernary.fs b/src/Plotly.NET/ChartAPI/ChartTernary.fs index 427fe0123..5d8151ee6 100644 --- a/src/Plotly.NET/ChartAPI/ChartTernary.fs +++ b/src/Plotly.NET/ChartAPI/ChartTernary.fs @@ -51,31 +51,31 @@ module ChartTernary = /// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param> static member ScatterTernary ( - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?C: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?Mode: StyleParam.Mode, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -155,27 +155,27 @@ module ChartTernary = static member ScatterTernary ( abc, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Mode: StyleParam.Mode, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, c = Seq.unzip3 abc @@ -233,25 +233,25 @@ module ChartTernary = /// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param> static member PointTernary ( - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?C: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UseDefaults: bool ) = let changeMode = @@ -304,21 +304,21 @@ module ChartTernary = static member PointTernary ( abc: seq<#IConvertible * #IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?UseDefaults: bool ) = let a, b, c = Seq.unzip3 abc @@ -377,31 +377,31 @@ module ChartTernary = /// <param name="UseDefaults">If set to false, ignore the global default settings set in `Defaults`</param> static member LineTernary ( - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?C: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = @@ -472,27 +472,27 @@ module ChartTernary = static member LineTernary ( abc, - [<Optional; DefaultParameterValue(null)>] ?ShowMarkers: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, c = Seq.unzip3 abc @@ -560,30 +560,30 @@ module ChartTernary = static member BubbleTernary ( sizes: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?C: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -668,26 +668,26 @@ module ChartTernary = static member BubbleTernary ( abcSizes: seq<#IConvertible * #IConvertible * #IConvertible * int>, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?MarkerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MarkerColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?MarkerOutline: Line, - [<Optional; DefaultParameterValue(null)>] ?MarkerSymbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(true)>] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq<StyleParam.MarkerSymbol>, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, c, sizes = diff --git a/src/Plotly.NET/ChartAPI/GenericChart.fs b/src/Plotly.NET/ChartAPI/GenericChart.fs index 8bcf86fb0..34c3c4c9f 100644 --- a/src/Plotly.NET/ChartAPI/GenericChart.fs +++ b/src/Plotly.NET/ChartAPI/GenericChart.fs @@ -5,6 +5,9 @@ open System open Newtonsoft.Json open System.Runtime.CompilerServices open Giraffe.ViewEngine +open System +open System.IO +open System.Collections.Generic /// Figure is a domain transfer object that can be used to serialize a Chart to JSON. It is used internally and for most use cases should not be used directly. /// @@ -55,6 +58,7 @@ type ChartDTO = /// - `Config` is an object that configures high level properties of the chart like making all chart elements editable or the tool bar on top /// /// - `DisplayOptions` is an object that contains meta information about how the html document that contains the chart. +[<TypeFormatterSourceAttribute(typeof<GenericChartFormatterSource>)>] type GenericChart = | Chart of data: Trace * layout: Layout * config: Config * displayOpts: DisplayOptions | MultiChart of data: Trace list * layout: Layout * config: Config * displayOpts: DisplayOptions @@ -162,7 +166,7 @@ type GenericChart = /// <param name="gChart">the input GenericChart to get the layout size from</param> static member tryGetLayoutSize gChart = let layout = GenericChart.getLayout gChart - layout.TryGetTypedValue<int> "width", layout.TryGetTypedValue<int> "height" + layout.TryGetTypedPropertyValue<int> "width", layout.TryGetTypedPropertyValue<int> "height" /// <summary> /// Returns the config of a given GenericChart. @@ -534,7 +538,7 @@ type GenericChart = /// If false, empty objects are used. /// </summary> /// <param name="useDefaults">wether or not to set default objects for Layout, Config and DisplayOptions</param> - /// <param name="traces">the input Trace collection</param> + /// <param name="trace">the input Trace</param> static member ofTraceObject (useDefaults: bool) (trace: Trace) = GenericChart.ofTraceObjects useDefaults (Seq.singleton trace) /// <summary> @@ -584,3 +588,22 @@ type GenericChart = match gChart with | Chart(trace, _, _, _) -> [ TraceID.ofTrace trace ] | MultiChart(traces, _, _, _) -> traces |> List.map TraceID.ofTrace + +and GenericChartFormatter() = + let mutable mimeType = "text/html" + member this.MimeType + with get() = mimeType + and set(v) = mimeType <- v + member this.Format(instance:obj, writer:TextWriter) = + match instance with + | :? GenericChart as c -> + writer.Write("LOL!") + true + | _ -> false + +and GenericChartFormatterSource = + member this.CreateTypeFormatters() : seq<obj> = + seq { + yield GenericChartFormatter() + } + diff --git a/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs b/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs index 6065e752a..14378a1cd 100644 --- a/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs +++ b/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs @@ -18,11 +18,11 @@ type AutoRangeOptions() = /// <param name="MinAllowed">Use this value exactly as autorange minimum.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?ClipMax: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ClipMin: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Include: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible + ?ClipMax: #IConvertible, + ?ClipMin: #IConvertible, + ?Include: #IConvertible, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible ) = AutoRangeOptions() |> AutoRangeOptions.style ( @@ -43,19 +43,19 @@ type AutoRangeOptions() = /// <param name="MinAllowed">Use this value exactly as autorange minimum.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?ClipMax: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ClipMin: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Include: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible + ?ClipMax: #IConvertible, + ?ClipMin: #IConvertible, + ?Include: #IConvertible, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible ) = (fun (autoRangeOptions: AutoRangeOptions) -> - ClipMax |> DynObj.setValueOpt autoRangeOptions "clipmax" - ClipMin |> DynObj.setValueOpt autoRangeOptions "clipmin" - Include |> DynObj.setValueOpt autoRangeOptions "include" - MaxAllowed |> DynObj.setValueOpt autoRangeOptions "maxallowed" - MinAllowed |> DynObj.setValueOpt autoRangeOptions "minallowed" - - autoRangeOptions) \ No newline at end of file + autoRangeOptions + |> DynObj.withOptionalProperty "clipmax" ClipMax + |> DynObj.withOptionalProperty "clipmin" ClipMin + |> DynObj.withOptionalProperty "include" Include + |> DynObj.withOptionalProperty "maxallowed" MaxAllowed + |> DynObj.withOptionalProperty "minallowed" MinAllowed + ) \ No newline at end of file diff --git a/src/Plotly.NET/CommonAbstractions/ColorBar.fs b/src/Plotly.NET/CommonAbstractions/ColorBar.fs index 91bc1475c..d4ccffb3a 100644 --- a/src/Plotly.NET/CommonAbstractions/ColorBar.fs +++ b/src/Plotly.NET/CommonAbstractions/ColorBar.fs @@ -59,52 +59,52 @@ type ColorBar() = /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?DTick: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Len: float, - [<Optional; DefaultParameterValue(null)>] ?LenMode: StyleParam.UnitMode, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?ThicknessMode: StyleParam.UnitMode, - [<Optional; DefaultParameterValue(null)>] ?Tick0: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [<Optional; DefaultParameterValue(null)>] ?TickLabelPosition: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?TickLen: float, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.HorizontalAlign, - [<Optional; DefaultParameterValue(null)>] ?XPad: float, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?YPad: float, - [<Optional; DefaultParameterValue(null)>] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?DTick: IConvertible, + ?ExponentFormat: StyleParam.ExponentFormat, + ?LabelAlias: DynamicObj, + ?Len: float, + ?LenMode: StyleParam.UnitMode, + ?MinExponent: float, + ?NTicks: int, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Thickness: float, + ?ThicknessMode: StyleParam.UnitMode, + ?Tick0: IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLen: float, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: float, + ?Title: Title, + ?X: float, + ?XAnchor: StyleParam.HorizontalAlign, + ?XPad: float, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.VerticalAlign, + ?YPad: float, + ?YRef: string ) = ColorBar() |> ColorBar.style ( @@ -200,106 +200,108 @@ type ColorBar() = /// <param name="X">Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.</param> /// <param name="XAnchor">'Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center*, or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*.</param> /// <param name="XPad">Sets the amount of padding (in px) along the x direction.</param> + /// <param name="XRef">Sets the container `x` refers to. "container" spans the entire `width` of the plot. "paper" refers to the width of the plotting area only.</param> /// <param name="Y">Sets the y position of the color bar (in plot fraction).Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.'</param> /// <param name="YAnchor">'Sets this color bar\'s vertical position anchor. This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*.'</param> /// <param name="YPad">Sets the amount of padding (in px) along the y direction.</param> + /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?DTick: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Len: float, - [<Optional; DefaultParameterValue(null)>] ?LenMode: StyleParam.UnitMode, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?OutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?ThicknessMode: StyleParam.UnitMode, - [<Optional; DefaultParameterValue(null)>] ?Tick0: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [<Optional; DefaultParameterValue(null)>] ?TickLabelPosition: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?TickLen: float, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.HorizontalAlign, - [<Optional; DefaultParameterValue(null)>] ?XPad: float, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?YPad: float, - [<Optional; DefaultParameterValue(null)>] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?DTick: IConvertible, + ?ExponentFormat: StyleParam.ExponentFormat, + ?LabelAlias: DynamicObj, + ?Len: float, + ?LenMode: StyleParam.UnitMode, + ?MinExponent: float, + ?NTicks: int, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Thickness: float, + ?ThicknessMode: StyleParam.UnitMode, + ?Tick0: IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLen: float, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: float, + ?Title: Title, + ?X: float, + ?XAnchor: StyleParam.HorizontalAlign, + ?XPad: float, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.VerticalAlign, + ?YPad: float, + ?YRef: string ) = (fun (colorBar: ColorBar) -> + colorBar + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalProperty "len" Len + |> DynObj.withOptionalPropertyBy "lenmode" LenMode StyleParam.UnitMode.convert + |> DynObj.withOptionalProperty "min3xponent" MinExponent + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "outlinecolor" OutlineColor + |> DynObj.withOptionalProperty "outlinewidth" OutlineWidth + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalPropertyBy "thicknessmode" ThicknessMode StyleParam.UnitMode.convert + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalPropertyBy "ticklabeloverflow" TickLabelOverflow StyleParam.TickLabelOverflow.convert + |> DynObj.withOptionalPropertyBy "ticklabelposition" TickLabelPosition StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.HorizontalAlign.convert + |> DynObj.withOptionalProperty "xpad" XPad + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.VerticalAlign.convert + |> DynObj.withOptionalProperty "ypad" YPad + |> DynObj.withOptionalProperty "yref" YRef - BGColor |> DynObj.setValueOpt colorBar "bgcolor" - BorderColor |> DynObj.setValueOpt colorBar "bordercolor" - BorderWidth |> DynObj.setValueOpt colorBar "borderwidth" - DTick |> DynObj.setValueOpt colorBar "dtick" - ExponentFormat |> DynObj.setValueOptBy colorBar "exponentformat" StyleParam.ExponentFormat.convert - LabelAlias |> DynObj.setValueOpt colorBar "labelalias" - Len |> DynObj.setValueOpt colorBar "len" - LenMode |> DynObj.setValueOptBy colorBar "lenmode" StyleParam.UnitMode.convert - MinExponent |> DynObj.setValueOpt colorBar "min3xponent" - NTicks |> DynObj.setValueOpt colorBar "nticks" - Orientation |> DynObj.setValueOptBy colorBar "orientation" StyleParam.Orientation.convert - OutlineColor |> DynObj.setValueOpt colorBar "outlinecolor" - OutlineWidth |> DynObj.setValueOpt colorBar "outlinewidth" - SeparateThousands |> DynObj.setValueOpt colorBar "separatethousands" - ShowExponent |> DynObj.setValueOptBy colorBar "showexponent" StyleParam.ShowExponent.convert - ShowTickLabels |> DynObj.setValueOpt colorBar "showticklabels" - ShowTickPrefix |> DynObj.setValueOptBy colorBar "showtickprefix" StyleParam.ShowTickOption.convert - ShowTickSuffix |> DynObj.setValueOptBy colorBar "showticksuffix" StyleParam.ShowTickOption.convert - Thickness |> DynObj.setValueOpt colorBar "thickness" - ThicknessMode |> DynObj.setValueOptBy colorBar "thicknessmode" StyleParam.UnitMode.convert - Tick0 |> DynObj.setValueOpt colorBar "tick0" - TickAngle |> DynObj.setValueOpt colorBar "tickangle" - TickColor |> DynObj.setValueOpt colorBar "tickcolor" - TickFont |> DynObj.setValueOpt colorBar "tickfont" - TickFormat |> DynObj.setValueOpt colorBar "tickformat" - TickFormatStops |> DynObj.setValueOpt colorBar "tickformatstops" - TickLabelOverflow |> DynObj.setValueOptBy colorBar "ticklabeloverflow" StyleParam.TickLabelOverflow.convert - TickLabelPosition |> DynObj.setValueOptBy colorBar "ticklabelposition" StyleParam.TickLabelPosition.convert - TickLabelStep |> DynObj.setValueOpt colorBar "ticklabelstep" - TickLen |> DynObj.setValueOpt colorBar "ticklen" - TickMode |> DynObj.setValueOptBy colorBar "tickmode" StyleParam.TickMode.convert - TickPrefix |> DynObj.setValueOpt colorBar "tickprefix" - Ticks |> DynObj.setValueOptBy colorBar "ticks" StyleParam.TickOptions.convert - TickSuffix |> DynObj.setValueOpt colorBar "ticksuffix" - TickText |> DynObj.setValueOpt colorBar "ticktext" - TickVals |> DynObj.setValueOpt colorBar "tickvals" - TickWidth |> DynObj.setValueOpt colorBar "tickwidth" - Title |> DynObj.setValueOpt colorBar "title" - X |> DynObj.setValueOpt colorBar "x" - XAnchor |> DynObj.setValueOptBy colorBar "xanchor" StyleParam.HorizontalAlign.convert - XPad |> DynObj.setValueOpt colorBar "xpad" - XRef |> DynObj.setValueOpt colorBar "xref" - Y |> DynObj.setValueOpt colorBar "y" - YAnchor |> DynObj.setValueOptBy colorBar "yanchor" StyleParam.VerticalAlign.convert - YPad |> DynObj.setValueOpt colorBar "ypad" - YRef |> DynObj.setValueOpt colorBar "yref" - - colorBar) + ) diff --git a/src/Plotly.NET/CommonAbstractions/Colors.fs b/src/Plotly.NET/CommonAbstractions/Colors.fs index 3fab74867..2a3ec8baf 100644 --- a/src/Plotly.NET/CommonAbstractions/Colors.fs +++ b/src/Plotly.NET/CommonAbstractions/Colors.fs @@ -7,14 +7,12 @@ module internal Hex = open System - [<CompiledName("ToHexDigit")>] let toHexDigit n = if n < 10 then char (n + 0x30) else char (n + 0x37) - [<CompiledName("FromHexDigit")>] let fromHexDigit c = if c >= '0' && c <= '9' then int c - int '0' @@ -25,8 +23,6 @@ module internal Hex = else raise <| ArgumentException() - - [<CompiledName("Encode")>] let encode (prefix: string) (color: byte array) = let hex = Array.zeroCreate (color.Length * 2) @@ -41,8 +37,6 @@ module internal Hex = String.Concat(prefix, String(hex)) - - [<CompiledName("Decode")>] let decode (s: string) = match s with | null -> nullArg "s" @@ -69,8 +63,6 @@ module internal Hex = buf - - /// Represents an ARGB (alpha, red, green, blue) color [<JsonConverter(typeof<ARGBConverter>)>] type ARGB = diff --git a/src/Plotly.NET/CommonAbstractions/Font.fs b/src/Plotly.NET/CommonAbstractions/Font.fs index fd4852979..9d8efb024 100644 --- a/src/Plotly.NET/CommonAbstractions/Font.fs +++ b/src/Plotly.NET/CommonAbstractions/Font.fs @@ -11,9 +11,9 @@ type Font() = /// Init Font() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Family: StyleParam.FontFamily, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color + ?Family: StyleParam.FontFamily, + ?Size: float, + ?Color: Color ) = Font() |> Font.style (?Family = Family, ?Size = Size, ?Color = Color) @@ -21,14 +21,13 @@ type Font() = // Applies the styles to Font() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Family: StyleParam.FontFamily, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color + ?Family: StyleParam.FontFamily, + ?Size: float, + ?Color: Color ) = (fun (font: Font) -> - - Family |> DynObj.setValueOptBy font "family" StyleParam.FontFamily.toString - Size |> DynObj.setValueOpt font "size" - Color |> DynObj.setValueOpt font "color" - - font) + font + |> DynObj.withOptionalPropertyBy "family" Family StyleParam.FontFamily.toString + |> DynObj.withOptionalProperty "size" Size + |> DynObj.withOptionalProperty "color" Color + ) diff --git a/src/Plotly.NET/CommonAbstractions/Line.fs b/src/Plotly.NET/CommonAbstractions/Line.fs index f9991a2d8..9a010ec3f 100644 --- a/src/Plotly.NET/CommonAbstractions/Line.fs +++ b/src/Plotly.NET/CommonAbstractions/Line.fs @@ -33,26 +33,26 @@ type Line() = /// <param name="OutlierWidth">Sets the width of the outline of outliers</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?BackOff: StyleParam.BackOff, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Dash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.Shape, - [<Optional; DefaultParameterValue(null)>] ?Simplify: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq<float>, + ?OutlierColor: Color, + ?OutlierWidth: float ) = Line() |> Line.style ( @@ -103,47 +103,48 @@ type Line() = /// <param name="OutlierWidth">Sets the width of the outline of outliers</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?BackOff: StyleParam.BackOff, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Dash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.Shape, - [<Optional; DefaultParameterValue(null)>] ?Simplify: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq<float>, + ?OutlierColor: Color, + ?OutlierWidth: float ) = (fun (line: Line) -> - BackOff |> DynObj.setValueOptBy line "backoff" StyleParam.BackOff.convert - Color |> DynObj.setValueOpt line "color" - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt line "width" - Shape |> DynObj.setValueOptBy line "shape" StyleParam.Shape.convert - Smoothing |> DynObj.setValueOpt line "smoothing" - Dash |> DynObj.setValueOptBy line "dash" StyleParam.DrawingStyle.convert - OutlierColor |> DynObj.setValueOpt line "outliercolor" - OutlierWidth |> DynObj.setValueOpt line "outlierwidth" - AutoColorScale |> DynObj.setValueOpt line "autocolorscale" - CAuto |> DynObj.setValueOpt line "cauto" - CMax |> DynObj.setValueOpt line "cmax" - CMid |> DynObj.setValueOpt line "cmid" - CMin |> DynObj.setValueOpt line "cmin" - Color |> DynObj.setValueOpt line "color" - ColorAxis |> DynObj.setValueOptBy line "coloraxis" StyleParam.SubPlotId.convert - Colorscale |> DynObj.setValueOptBy line "colorscale" StyleParam.Colorscale.convert - ReverseScale |> DynObj.setValueOpt line "reversescale" - ShowScale |> DynObj.setValueOpt line "showscale" - ColorBar |> DynObj.setValueOpt line "colorbar" - Simplify |> DynObj.setValueOpt line "simplify" + line + |> DynObj.withOptionalPropertyBy "backoff" BackOff StyleParam.BackOff.convert + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalPropertyBy "shape" Shape StyleParam.Shape.convert + |> DynObj.withOptionalProperty "smoothing" Smoothing + |> DynObj.withOptionalPropertyBy "dash" Dash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "outliercolor" OutlierColor + |> DynObj.withOptionalProperty "outlierwidth" OutlierWidth + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "colorscale" Colorscale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "simplify" Simplify - line) + ) diff --git a/src/Plotly.NET/CommonAbstractions/Padding.fs b/src/Plotly.NET/CommonAbstractions/Padding.fs index 53d71900b..0bd36d1f3 100644 --- a/src/Plotly.NET/CommonAbstractions/Padding.fs +++ b/src/Plotly.NET/CommonAbstractions/Padding.fs @@ -15,10 +15,10 @@ type Padding() = /// <param name="T">The amount of padding (in px) along the top of the component</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?B: int, - [<Optional; DefaultParameterValue(null)>] ?L: int, - [<Optional; DefaultParameterValue(null)>] ?R: int, - [<Optional; DefaultParameterValue(null)>] ?T: int + ?B: int, + ?L: int, + ?R: int, + ?T: int ) = Padding() |> Padding.style (?B = B, ?L = L, ?R = R, ?T = T) @@ -31,14 +31,15 @@ type Padding() = /// <param name="T">The amount of padding (in px) along the top of the component</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?B: int, - [<Optional; DefaultParameterValue(null)>] ?L: int, - [<Optional; DefaultParameterValue(null)>] ?R: int, - [<Optional; DefaultParameterValue(null)>] ?T: int + ?B: int, + ?L: int, + ?R: int, + ?T: int ) = (fun (padding: Padding) -> - B |> DynObj.setValueOpt padding "b" - L |> DynObj.setValueOpt padding "l" - R |> DynObj.setValueOpt padding "r" - T |> DynObj.setValueOpt padding "t" - padding) + padding + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalProperty "l" L + |> DynObj.withOptionalProperty "r" R + |> DynObj.withOptionalProperty "t" T + ) diff --git a/src/Plotly.NET/CommonAbstractions/StyleParams.fs b/src/Plotly.NET/CommonAbstractions/StyleParams.fs index 0afd9be9c..77438ba31 100644 --- a/src/Plotly.NET/CommonAbstractions/StyleParams.fs +++ b/src/Plotly.NET/CommonAbstractions/StyleParams.fs @@ -2533,8 +2533,8 @@ module StyleParam = static member toString = function | None -> "" - | DiagonalDescending -> "/" - | DiagonalAscending -> """\""" + | DiagonalDescending -> """\""" + | DiagonalAscending -> "/" | DiagonalChecked -> "x" | HorizontalLines -> "-" | VerticalLines -> "|" diff --git a/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs b/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs index 358e7589a..f45631786 100644 --- a/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs +++ b/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs @@ -10,11 +10,11 @@ type TickFormatStop() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?DTickRange: seq<string * string>, - [<Optional; DefaultParameterValue(null)>] ?Value: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?Enabled: bool, + ?DTickRange: seq<string * string>, + ?Value: string, + ?Name: string, + ?TemplateItemName: string ) = TickFormatStop() |> TickFormatStop.style ( @@ -27,19 +27,18 @@ type TickFormatStop() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?DTickRange: seq<string * string>, - [<Optional; DefaultParameterValue(null)>] ?Value: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?Enabled: bool, + ?DTickRange: seq<string * string>, + ?Value: string, + ?Name: string, + ?TemplateItemName: string ) = (fun (tickFormatStop: TickFormatStop) -> - Enabled |> DynObj.setValueOpt tickFormatStop "enabled" - DTickRange |> DynObj.setValueOpt tickFormatStop "dtickrange" - Value |> DynObj.setValueOpt tickFormatStop "value" - Name |> DynObj.setValueOpt tickFormatStop "name" - TemplateItemName |> DynObj.setValueOpt tickFormatStop "templateitemname" - - - tickFormatStop) + tickFormatStop + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalProperty "dtickrange" DTickRange + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + ) diff --git a/src/Plotly.NET/CommonAbstractions/Title.fs b/src/Plotly.NET/CommonAbstractions/Title.fs index aee71e189..62653fe76 100644 --- a/src/Plotly.NET/CommonAbstractions/Title.fs +++ b/src/Plotly.NET/CommonAbstractions/Title.fs @@ -24,20 +24,20 @@ type Title() = /// <param name="Side">For colorbar titles: Determines the location of color bar's title with respect to the color bar. Defaults to "top" when `orientation` if "v" and defaults to "right" when `orientation` if "h". Note that the title's location used to be set by the now deprecated `titleside` attribute.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?AutoMargin: bool, - [<Optional; DefaultParameterValue(null)>] ?Pad: Padding, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YRef: string, + ?Text: string, + ?Font: Font, + ?AutoMargin: bool, + ?Pad: Padding, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string, // For axis titles - [<Optional; DefaultParameterValue(null)>] ?Standoff: int, + ?Standoff: int, // For colorbar titles - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side + ?Side: StyleParam.Side ) = Title() |> Title.style ( @@ -72,34 +72,33 @@ type Title() = /// <param name="Side">For colorbar titles: Determines the location of color bar's title with respect to the color bar. Defaults to "top" when `orientation` if "v" and defaults to "right" when `orientation` if "h". Note that the title's location used to be set by the now deprecated `titleside` attribute.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?AutoMargin: bool, - [<Optional; DefaultParameterValue(null)>] ?Pad: Padding, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YRef: string, + ?Text: string, + ?Font: Font, + ?AutoMargin: bool, + ?Pad: Padding, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string, // For axis titles - [<Optional; DefaultParameterValue(null)>] ?Standoff: int, + ?Standoff: int, // For colorbar titles - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side + ?Side: StyleParam.Side ) = - (fun (title: Title) -> - - Text |> DynObj.setValueOpt title "text" - Font |> DynObj.setValueOpt title "font" - AutoMargin |> DynObj.setValueOpt title "automargin" - Pad |> DynObj.setValueOpt title "pad" - X |> DynObj.setValueOpt title "x" - XAnchor |> DynObj.setValueOptBy title "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setValueOpt title "xref" - Y |> DynObj.setValueOpt title "y" - YAnchor |> DynObj.setValueOptBy title "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setValueOpt title "yref" - Standoff |> DynObj.setValueOpt title "standoff" - Side |> DynObj.setValueOptBy title "side" StyleParam.Side.convert - - title) + (fun (title: Title) -> + title + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "automargin" AutoMargin + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yref" YRef + |> DynObj.withOptionalProperty "standoff" Standoff + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + ) diff --git a/src/Plotly.NET/Config/Config.fs b/src/Plotly.NET/Config/Config.fs index 6df593e88..73ead379c 100644 --- a/src/Plotly.NET/Config/Config.fs +++ b/src/Plotly.NET/Config/Config.fs @@ -72,45 +72,45 @@ type Config() = /// </param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?StaticPlot: bool, - [<Optional; DefaultParameterValue(null)>] ?TypesetMath: bool, - [<Optional; DefaultParameterValue(null)>] ?PlotlyServerUrl: string, - [<Optional; DefaultParameterValue(null)>] ?Editable: bool, - [<Optional; DefaultParameterValue(null)>] ?Edits: Edits, - [<Optional; DefaultParameterValue(null)>] ?EditSelection: bool, - [<Optional; DefaultParameterValue(null)>] ?Autosizable: bool, - [<Optional; DefaultParameterValue(null)>] ?Responsive: bool, - [<Optional; DefaultParameterValue(null)>] ?FillFrame: bool, - [<Optional; DefaultParameterValue(null)>] ?FrameMargins: float, - [<Optional; DefaultParameterValue(null)>] ?ScrollZoom: StyleParam.ScrollZoom, - [<Optional; DefaultParameterValue(null)>] ?DoubleClick: StyleParam.DoubleClick, - [<Optional; DefaultParameterValue(null)>] ?DoubleClickDelay: int, - [<Optional; DefaultParameterValue(null)>] ?ShowAxisDragHandles: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowAxisRangeEntryBoxes: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTips: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLink: bool, - [<Optional; DefaultParameterValue(null)>] ?LinkText: string, - [<Optional; DefaultParameterValue(null)>] ?SendData: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowSources: obj, - [<Optional; DefaultParameterValue(null)>] ?DisplayModeBar: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowSendToCloud: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowEditInChartStudio: bool, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtonsToRemove: seq<StyleParam.ModeBarButton>, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtonsToAdd: seq<StyleParam.ModeBarButton>, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtons: seq<seq<StyleParam.ModeBarButton>>, - [<Optional; DefaultParameterValue(null)>] ?ToImageButtonOptions: ToImageButtonOptions, - [<Optional; DefaultParameterValue(null)>] ?Displaylogo: bool, - [<Optional; DefaultParameterValue(null)>] ?Watermark: bool, - [<Optional; DefaultParameterValue(null)>] ?plotGlPixelRatio: float, - [<Optional; DefaultParameterValue(null)>] ?SetBackground: obj, - [<Optional; DefaultParameterValue(null)>] ?TopojsonURL: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxAccessToken: string, - [<Optional; DefaultParameterValue(null)>] ?Logging: int, - [<Optional; DefaultParameterValue(null)>] ?NotifyOnLogging: int, - [<Optional; DefaultParameterValue(null)>] ?QueueLength: int, - [<Optional; DefaultParameterValue(null)>] ?GlobalTransforms: obj, - [<Optional; DefaultParameterValue(null)>] ?Locale: string, - [<Optional; DefaultParameterValue(null)>] ?Locales: obj + ?StaticPlot: bool, + ?TypesetMath: bool, + ?PlotlyServerUrl: string, + ?Editable: bool, + ?Edits: Edits, + ?EditSelection: bool, + ?Autosizable: bool, + ?Responsive: bool, + ?FillFrame: bool, + ?FrameMargins: float, + ?ScrollZoom: StyleParam.ScrollZoom, + ?DoubleClick: StyleParam.DoubleClick, + ?DoubleClickDelay: int, + ?ShowAxisDragHandles: bool, + ?ShowAxisRangeEntryBoxes: bool, + ?ShowTips: bool, + ?ShowLink: bool, + ?LinkText: string, + ?SendData: bool, + ?ShowSources: obj, + ?DisplayModeBar: bool, + ?ShowSendToCloud: bool, + ?ShowEditInChartStudio: bool, + ?ModeBarButtonsToRemove: seq<StyleParam.ModeBarButton>, + ?ModeBarButtonsToAdd: seq<StyleParam.ModeBarButton>, + ?ModeBarButtons: seq<seq<StyleParam.ModeBarButton>>, + ?ToImageButtonOptions: ToImageButtonOptions, + ?Displaylogo: bool, + ?Watermark: bool, + ?plotGlPixelRatio: float, + ?SetBackground: obj, + ?TopojsonURL: string, + ?MapboxAccessToken: string, + ?Logging: int, + ?NotifyOnLogging: int, + ?QueueLength: int, + ?GlobalTransforms: obj, + ?Locale: string, + ?Locales: obj ) = Config() |> Config.style ( @@ -220,99 +220,88 @@ type Config() = /// </param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?StaticPlot: bool, - [<Optional; DefaultParameterValue(null)>] ?TypesetMath: bool, - [<Optional; DefaultParameterValue(null)>] ?PlotlyServerUrl: string, - [<Optional; DefaultParameterValue(null)>] ?Editable: bool, - [<Optional; DefaultParameterValue(null)>] ?Edits: Edits, - [<Optional; DefaultParameterValue(null)>] ?EditSelection: bool, - [<Optional; DefaultParameterValue(null)>] ?Autosizable: bool, - [<Optional; DefaultParameterValue(null)>] ?Responsive: bool, - [<Optional; DefaultParameterValue(null)>] ?FillFrame: bool, - [<Optional; DefaultParameterValue(null)>] ?FrameMargins: float, - [<Optional; DefaultParameterValue(null)>] ?ScrollZoom: StyleParam.ScrollZoom, - [<Optional; DefaultParameterValue(null)>] ?DoubleClick: StyleParam.DoubleClick, - [<Optional; DefaultParameterValue(null)>] ?DoubleClickDelay: int, - [<Optional; DefaultParameterValue(null)>] ?ShowAxisDragHandles: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowAxisRangeEntryBoxes: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTips: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLink: bool, - [<Optional; DefaultParameterValue(null)>] ?LinkText: string, - [<Optional; DefaultParameterValue(null)>] ?SendData: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowSources: obj, - [<Optional; DefaultParameterValue(null)>] ?DisplayModeBar: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowSendToCloud: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowEditInChartStudio: bool, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtonsToRemove: seq<StyleParam.ModeBarButton>, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtonsToAdd: seq<StyleParam.ModeBarButton>, - [<Optional; DefaultParameterValue(null)>] ?ModeBarButtons: seq<seq<StyleParam.ModeBarButton>>, - [<Optional; DefaultParameterValue(null)>] ?ToImageButtonOptions: ToImageButtonOptions, - [<Optional; DefaultParameterValue(null)>] ?Displaylogo: bool, - [<Optional; DefaultParameterValue(null)>] ?Watermark: bool, - [<Optional; DefaultParameterValue(null)>] ?plotGlPixelRatio: float, - [<Optional; DefaultParameterValue(null)>] ?SetBackground: obj, - [<Optional; DefaultParameterValue(null)>] ?TopojsonURL: string, - [<Optional; DefaultParameterValue(null)>] ?MapboxAccessToken: string, - [<Optional; DefaultParameterValue(null)>] ?Logging: int, - [<Optional; DefaultParameterValue(null)>] ?NotifyOnLogging: int, - [<Optional; DefaultParameterValue(null)>] ?QueueLength: int, - [<Optional; DefaultParameterValue(null)>] ?GlobalTransforms: obj, - [<Optional; DefaultParameterValue(null)>] ?Locale: string, - [<Optional; DefaultParameterValue(null)>] ?Locales: obj + ?StaticPlot: bool, + ?TypesetMath: bool, + ?PlotlyServerUrl: string, + ?Editable: bool, + ?Edits: Edits, + ?EditSelection: bool, + ?Autosizable: bool, + ?Responsive: bool, + ?FillFrame: bool, + ?FrameMargins: float, + ?ScrollZoom: StyleParam.ScrollZoom, + ?DoubleClick: StyleParam.DoubleClick, + ?DoubleClickDelay: int, + ?ShowAxisDragHandles: bool, + ?ShowAxisRangeEntryBoxes: bool, + ?ShowTips: bool, + ?ShowLink: bool, + ?LinkText: string, + ?SendData: bool, + ?ShowSources: obj, + ?DisplayModeBar: bool, + ?ShowSendToCloud: bool, + ?ShowEditInChartStudio: bool, + ?ModeBarButtonsToRemove: seq<StyleParam.ModeBarButton>, + ?ModeBarButtonsToAdd: seq<StyleParam.ModeBarButton>, + ?ModeBarButtons: seq<seq<StyleParam.ModeBarButton>>, + ?ToImageButtonOptions: ToImageButtonOptions, + ?Displaylogo: bool, + ?Watermark: bool, + ?plotGlPixelRatio: float, + ?SetBackground: obj, + ?TopojsonURL: string, + ?MapboxAccessToken: string, + ?Logging: int, + ?NotifyOnLogging: int, + ?QueueLength: int, + ?GlobalTransforms: obj, + ?Locale: string, + ?Locales: obj ) = fun (config: Config) -> - - StaticPlot |> DynObj.setValueOpt config "staticPlot" - TypesetMath |> DynObj.setValueOpt config "typesetMath" - PlotlyServerUrl |> DynObj.setValueOpt config "plotlyServerUrl" - Editable |> DynObj.setValueOpt config "editable" - Edits |> DynObj.setValueOpt config "edits" - EditSelection |> DynObj.setValueOpt config "editSelection" - Autosizable |> DynObj.setValueOpt config "autosizable" - Responsive |> DynObj.setValueOpt config "responsive" - FillFrame |> DynObj.setValueOpt config "fillFrame" - FrameMargins |> DynObj.setValueOpt config "frameMargins" - ScrollZoom |> DynObj.setValueOptBy config "scrollZoom" StyleParam.ScrollZoom.convert - DoubleClick |> DynObj.setValueOptBy config "doubleClick" StyleParam.DoubleClick.convert - DoubleClickDelay |> DynObj.setValueOpt config "doubleClickDelay" - ShowAxisDragHandles |> DynObj.setValueOpt config "showAxisDragHandles" - ShowAxisRangeEntryBoxes |> DynObj.setValueOpt config "showAxisRangeEntryBoxes" - ShowTips |> DynObj.setValueOpt config "showTips" - ShowLink |> DynObj.setValueOpt config "showLink" - LinkText |> DynObj.setValueOpt config "linkText" - SendData |> DynObj.setValueOpt config "sendData" - ShowSources |> DynObj.setValueOpt config "showSources" - DisplayModeBar |> DynObj.setValueOpt config "displayModeBar" - ShowSendToCloud |> DynObj.setValueOpt config "showSendToCloud" - ShowEditInChartStudio |> DynObj.setValueOpt config "showEditInChartStudio" - - ModeBarButtonsToRemove - |> DynObj.setValueOptBy config "modeBarButtonsToRemove" (fun x -> - x |> Seq.map StyleParam.ModeBarButton.toString) - - ModeBarButtonsToAdd - |> DynObj.setValueOptBy config "modeBarButtonsToAdd" (fun x -> - x |> Seq.map StyleParam.ModeBarButton.toString) - - ModeBarButtons - |> DynObj.setValueOptBy config "modeBarButtons" (fun x -> - x |> Seq.map (Seq.map StyleParam.ModeBarButton.toString)) - - ToImageButtonOptions |> DynObj.setValueOpt config "toImageButtonOptions" - Displaylogo |> DynObj.setValueOpt config "displaylogo" - Watermark |> DynObj.setValueOpt config "watermark" - plotGlPixelRatio |> DynObj.setValueOpt config "plotGlPixelRatio" - SetBackground |> DynObj.setValueOpt config "setBackground" - TopojsonURL |> DynObj.setValueOpt config "topojsonURL" - MapboxAccessToken |> DynObj.setValueOpt config "mapboxAccessToken" - Logging |> DynObj.setValueOpt config "logging" - NotifyOnLogging |> DynObj.setValueOpt config "notifyOnLogging" - QueueLength |> DynObj.setValueOpt config "queueLength" - GlobalTransforms |> DynObj.setValueOpt config "globalTransforms" - Locale |> DynObj.setValueOpt config "locale" - Locales |> DynObj.setValueOpt config "locales" - + config + |> DynObj.withOptionalProperty "staticPlot" StaticPlot + |> DynObj.withOptionalProperty "typesetMath" TypesetMath + |> DynObj.withOptionalProperty "plotlyServerUrl" PlotlyServerUrl + |> DynObj.withOptionalProperty "editable" Editable + |> DynObj.withOptionalProperty "edits" Edits + |> DynObj.withOptionalProperty "editSelection" EditSelection + |> DynObj.withOptionalProperty "autosizable" Autosizable + |> DynObj.withOptionalProperty "responsive" Responsive + |> DynObj.withOptionalProperty "fillFrame" FillFrame + |> DynObj.withOptionalProperty "frameMargins" FrameMargins + |> DynObj.withOptionalPropertyBy "scrollZoom" ScrollZoom StyleParam.ScrollZoom.convert + |> DynObj.withOptionalPropertyBy "doubleClick" DoubleClick StyleParam.DoubleClick.convert + |> DynObj.withOptionalProperty "doubleClickDelay" DoubleClickDelay + |> DynObj.withOptionalProperty "showAxisDragHandles" ShowAxisDragHandles + |> DynObj.withOptionalProperty "showAxisRangeEntryBoxes"ShowAxisRangeEntryBoxes + |> DynObj.withOptionalProperty "showTips" ShowTips + |> DynObj.withOptionalProperty "showLink" ShowLink + |> DynObj.withOptionalProperty "linkText" LinkText + |> DynObj.withOptionalProperty "sendData" SendData + |> DynObj.withOptionalProperty "showSources" ShowSources + |> DynObj.withOptionalProperty "displayModeBar" DisplayModeBar + |> DynObj.withOptionalProperty "showSendToCloud" ShowSendToCloud + |> DynObj.withOptionalProperty "showEditInChartStudio" ShowEditInChartStudio + |> DynObj.withOptionalPropertyBy "modeBarButtonsToRemove" ModeBarButtonsToRemove (fun x -> x |> Seq.map StyleParam.ModeBarButton.toString) + |> DynObj.withOptionalPropertyBy "modeBarButtonsToAdd" ModeBarButtonsToAdd (fun x -> x |> Seq.map StyleParam.ModeBarButton.toString) + |> DynObj.withOptionalPropertyBy "modeBarButtons" ModeBarButtons (fun x -> x |> Seq.map (Seq.map StyleParam.ModeBarButton.toString)) + |> DynObj.withOptionalProperty "toImageButtonOptions" ToImageButtonOptions + |> DynObj.withOptionalProperty "displaylogo" Displaylogo + |> DynObj.withOptionalProperty "watermark" Watermark + |> DynObj.withOptionalProperty "plotGlPixelRatio" plotGlPixelRatio + |> DynObj.withOptionalProperty "setBackground" SetBackground + |> DynObj.withOptionalProperty "topojsonURL" TopojsonURL + |> DynObj.withOptionalProperty "mapboxAccessToken" MapboxAccessToken + |> DynObj.withOptionalProperty "logging" Logging + |> DynObj.withOptionalProperty "notifyOnLogging" NotifyOnLogging + |> DynObj.withOptionalProperty "queueLength" QueueLength + |> DynObj.withOptionalProperty "globalTransforms" GlobalTransforms + |> DynObj.withOptionalProperty "locale" Locale + |> DynObj.withOptionalProperty "locales" Locales /// <summary> /// Combines two Config objects. @@ -331,21 +320,21 @@ type Config() = let modeBarButtonsToRemove = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<string>>("modeBarButtonsToRemove")) - (second.TryGetTypedValue<seq<string>>("modeBarButtonsToRemove")) + (first.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToRemove")) + (second.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToRemove")) let modeBarButtonsToAdd = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<string>>("modeBarButtonsToAdd")) - (second.TryGetTypedValue<seq<string>>("modeBarButtonsToAdd")) + (first.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToAdd")) + (second.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToAdd")) let modeBarButtons = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<seq<string>>>("modeBarButtons")) - (second.TryGetTypedValue<seq<seq<string>>>("modeBarButtons")) + (first.TryGetTypedPropertyValue<seq<seq<string>>>("modeBarButtons")) + (second.TryGetTypedPropertyValue<seq<seq<string>>>("modeBarButtons")) DynObj.combine first second - |> unbox + |> unbox<Config> |> Config.style ( ?ModeBarButtonsToRemove = (modeBarButtonsToRemove |> Option.map (Seq.map StyleParam.ModeBarButton.ofString)), ?ModeBarButtonsToAdd = (modeBarButtonsToAdd |> Option.map (Seq.map StyleParam.ModeBarButton.ofString)), diff --git a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs index e2e6aea01..005d97c52 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs @@ -25,16 +25,16 @@ type Edits() = /// <param name="TitleText">Enables editing the global layout title.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?AnnotationPosition: bool, - [<Optional; DefaultParameterValue(null)>] ?AnnotationTail: bool, - [<Optional; DefaultParameterValue(null)>] ?AnnotationText: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisTitleText: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorbarPosition: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorbarTitleText: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendPosition: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendText: bool, - [<Optional; DefaultParameterValue(null)>] ?ShapePosition: bool, - [<Optional; DefaultParameterValue(null)>] ?TitleText: bool + ?AnnotationPosition: bool, + ?AnnotationTail: bool, + ?AnnotationText: bool, + ?AxisTitleText: bool, + ?ColorbarPosition: bool, + ?ColorbarTitleText: bool, + ?LegendPosition: bool, + ?LegendText: bool, + ?ShapePosition: bool, + ?TitleText: bool ) = Edits() |> Edits.style ( @@ -66,27 +66,26 @@ type Edits() = /// <param name="TitleText">Enables editing the global layout title.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?AnnotationPosition: bool, - [<Optional; DefaultParameterValue(null)>] ?AnnotationTail: bool, - [<Optional; DefaultParameterValue(null)>] ?AnnotationText: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisTitleText: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorbarPosition: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorbarTitleText: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendPosition: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendText: bool, - [<Optional; DefaultParameterValue(null)>] ?ShapePosition: bool, - [<Optional; DefaultParameterValue(null)>] ?TitleText: bool + ?AnnotationPosition: bool, + ?AnnotationTail: bool, + ?AnnotationText: bool, + ?AxisTitleText: bool, + ?ColorbarPosition: bool, + ?ColorbarTitleText: bool, + ?LegendPosition: bool, + ?LegendText: bool, + ?ShapePosition: bool, + ?TitleText: bool ) = fun (edits: Edits) -> - AnnotationPosition |> DynObj.setValueOpt edits "annotationPosition" - AnnotationTail |> DynObj.setValueOpt edits "annotationTail" - AnnotationText |> DynObj.setValueOpt edits "annotationText" - AxisTitleText |> DynObj.setValueOpt edits "axisTitleText" - ColorbarPosition |> DynObj.setValueOpt edits "colorbarPosition" - ColorbarTitleText |> DynObj.setValueOpt edits "colorbarTitleText" - LegendPosition |> DynObj.setValueOpt edits "legendPosition" - LegendText |> DynObj.setValueOpt edits "legendText" - ShapePosition |> DynObj.setValueOpt edits "shapePosition" - TitleText |> DynObj.setValueOpt edits "titleText" - edits + |> DynObj.withOptionalProperty "annotationPosition" AnnotationPosition + |> DynObj.withOptionalProperty "annotationTail" AnnotationTail + |> DynObj.withOptionalProperty "annotationText" AnnotationText + |> DynObj.withOptionalProperty "axisTitleText" AxisTitleText + |> DynObj.withOptionalProperty "colorbarPosition" ColorbarPosition + |> DynObj.withOptionalProperty "colorbarTitleText" ColorbarTitleText + |> DynObj.withOptionalProperty "legendPosition" LegendPosition + |> DynObj.withOptionalProperty "legendText" LegendText + |> DynObj.withOptionalProperty "shapePosition" ShapePosition + |> DynObj.withOptionalProperty "titleText" TitleText diff --git a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs index f41d0926c..f527fd275 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs @@ -11,11 +11,11 @@ type ToImageButtonOptions() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Format: StyleParam.ImageFormat, - [<Optional; DefaultParameterValue(null)>] ?Filename: string, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?Height: float, - [<Optional; DefaultParameterValue(null)>] ?Scale: float + ?Format: StyleParam.ImageFormat, + ?Filename: string, + ?Width: float, + ?Height: float, + ?Scale: float ) = ToImageButtonOptions() |> ToImageButtonOptions.style ( @@ -28,16 +28,16 @@ type ToImageButtonOptions() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Format, - [<Optional; DefaultParameterValue(null)>] ?Filename, - [<Optional; DefaultParameterValue(null)>] ?Width, - [<Optional; DefaultParameterValue(null)>] ?Height, - [<Optional; DefaultParameterValue(null)>] ?Scale + ?Format, + ?Filename, + ?Width, + ?Height, + ?Scale ) = fun (btnConf: ToImageButtonOptions) -> - Format |> Option.map StyleParam.ImageFormat.toString |> DynObj.setValueOpt btnConf "format" - Filename |> DynObj.setValueOpt btnConf "filename" - Width |> DynObj.setValueOpt btnConf "width" - Height |> DynObj.setValueOpt btnConf "height" - Scale |> DynObj.setValueOpt btnConf "scale" btnConf + |> DynObj.withOptionalPropertyBy "format" Format StyleParam.ImageFormat.toString + |> DynObj.withOptionalProperty "filename" Filename + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "scale" Scale diff --git a/src/Plotly.NET/Defaults.fs b/src/Plotly.NET/Defaults.fs index 3ee2a18e7..7bd88a9ef 100644 --- a/src/Plotly.NET/Defaults.fs +++ b/src/Plotly.NET/Defaults.fs @@ -4,7 +4,6 @@ open Plotly.NET open Plotly.NET.LayoutObjects open DynamicObj -open DynamicObj.Operators open System.Runtime.InteropServices open Giraffe.ViewEngine diff --git a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs index 34808e356..c1a04ffe4 100644 --- a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs +++ b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs @@ -22,18 +22,22 @@ type DisplayOptions() = /// <summary> /// Returns a new DisplayOptions object with the given styles /// </summary> + /// <param name="DocumentTitle">The title metadata for the document</param> + /// <param name="DocumentCharset">The document charset</param> + /// <param name="DocumentDescription">The description metadata for the document</param> + /// <param name="DocumentFavicon">base64 encoded favicon image</param> /// <param name="AdditionalHeadTags">Additional tags that will be included in the document's head </param> - /// <param name="Description">HTML tags that appear below the chart in HTML docs</param> + /// <param name="ChartDescription">HTML tags that appear below the chart in HTML docs</param> /// <param name="PlotlyJSReference">Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?DocumentTitle: string, - [<Optional; DefaultParameterValue(null)>] ?DocumentCharset: string, - [<Optional; DefaultParameterValue(null)>] ?DocumentDescription: string, - [<Optional; DefaultParameterValue(null)>] ?DocumentFavicon: XmlNode, - [<Optional; DefaultParameterValue(null)>] ?AdditionalHeadTags: XmlNode list, - [<Optional; DefaultParameterValue(null)>] ?ChartDescription: XmlNode list, - [<Optional; DefaultParameterValue(null)>] ?PlotlyJSReference: PlotlyJSReference + ?DocumentTitle: string, + ?DocumentCharset: string, + ?DocumentDescription: string, + ?DocumentFavicon: XmlNode, + ?AdditionalHeadTags: XmlNode list, + ?ChartDescription: XmlNode list, + ?PlotlyJSReference: PlotlyJSReference ) = DisplayOptions() |> DisplayOptions.style ( @@ -49,30 +53,32 @@ type DisplayOptions() = /// <summary> /// Returns a function sthat applies the given styles to a DisplayOptions object /// </summary> + /// <param name="DocumentTitle">The title metadata for the document</param> + /// <param name="DocumentCharset">The document charset</param> + /// <param name="DocumentDescription">The description metadata for the document</param> + /// <param name="DocumentFavicon">base64 encoded favicon image</param> /// <param name="AdditionalHeadTags">Additional tags that will be included in the document's head </param> - /// <param name="Description">HTML tags that appear below the chart in HTML docs</param> + /// <param name="ChartDescription">HTML tags that appear below the chart in HTML docs</param> /// <param name="PlotlyJSReference">Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?DocumentTitle: string, - [<Optional; DefaultParameterValue(null)>] ?DocumentCharset: string, - [<Optional; DefaultParameterValue(null)>] ?DocumentDescription: string, - [<Optional; DefaultParameterValue(null)>] ?DocumentFavicon: XmlNode, - [<Optional; DefaultParameterValue(null)>] ?AdditionalHeadTags: XmlNode list, - [<Optional; DefaultParameterValue(null)>] ?ChartDescription: XmlNode list, - [<Optional; DefaultParameterValue(null)>] ?PlotlyJSReference: PlotlyJSReference + ?DocumentTitle: string, + ?DocumentCharset: string, + ?DocumentDescription: string, + ?DocumentFavicon: XmlNode, + ?AdditionalHeadTags: XmlNode list, + ?ChartDescription: XmlNode list, + ?PlotlyJSReference: PlotlyJSReference ) = - (fun (displayOpts: DisplayOptions) -> - - DocumentTitle |> DynObj.setValueOpt displayOpts "DocumentTitle" - DocumentCharset |> DynObj.setValueOpt displayOpts "DocumentCharset" - DocumentDescription |> DynObj.setValueOpt displayOpts "DocumentDescription" - DocumentFavicon |> DynObj.setValueOpt displayOpts "DocumentFavicon" - AdditionalHeadTags |> DynObj.setValueOpt displayOpts "AdditionalHeadTags" - ChartDescription |> DynObj.setValueOpt displayOpts "ChartDescription" - PlotlyJSReference |> DynObj.setValueOpt displayOpts "PlotlyJSReference" - - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts + |> DynObj.withOptionalProperty "DocumentTitle" DocumentTitle + |> DynObj.withOptionalProperty "DocumentCharset" DocumentCharset + |> DynObj.withOptionalProperty "DocumentDescription" DocumentDescription + |> DynObj.withOptionalProperty "DocumentFavicon" DocumentFavicon + |> DynObj.withOptionalProperty "AdditionalHeadTags" AdditionalHeadTags + |> DynObj.withOptionalProperty "ChartDescription" ChartDescription + |> DynObj.withOptionalProperty "PlotlyJSReference" PlotlyJSReference /// <summary> /// Returns a DisplayOptions Object with the plotly cdn set to Globals.PLOTLYJS_VERSION @@ -100,16 +106,16 @@ type DisplayOptions() = let additionalHeadTags = InternalUtils.combineOptLists - (first.TryGetTypedValue<XmlNode list>("AdditionalHeadTags")) - (second.TryGetTypedValue<XmlNode list>("AdditionalHeadTags")) + (first.TryGetTypedPropertyValue<XmlNode list>("AdditionalHeadTags")) + (second.TryGetTypedPropertyValue<XmlNode list>("AdditionalHeadTags")) let description = InternalUtils.combineOptLists - (first.TryGetTypedValue<XmlNode list>("ChartDescription")) - (second.TryGetTypedValue<XmlNode list>("ChartDescription")) + (first.TryGetTypedPropertyValue<XmlNode list>("ChartDescription")) + (second.TryGetTypedPropertyValue<XmlNode list>("ChartDescription")) DynObj.combine first second - |> unbox + |> unbox<DisplayOptions> |> DisplayOptions.style (?AdditionalHeadTags = additionalHeadTags, ?ChartDescription = description) /// <summary> @@ -117,16 +123,15 @@ type DisplayOptions() = /// </summary> /// <param name="documentTitle">The document title to set on the given DisplayOptions object</param> static member setDocumentTitle(documentTitle: string) = - (fun (displayOpts: DisplayOptions) -> - documentTitle |> DynObj.setValue displayOpts "DocumentTitle" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentTitle" documentTitle /// <summary> /// Returns Some document title from the given DisplayOptions object if it exists, None otherwise /// </summary> /// <param name="displayOpts">The DisplayOptions object to get the document title from</param> static member tryGetDocumentTitle(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue<string>("DocumentTitle") + displayOpts.TryGetTypedPropertyValue<string>("DocumentTitle") /// <summary> /// Returns the document title from the given DisplayOptions object if it exists, an empty string otherwise @@ -140,16 +145,16 @@ type DisplayOptions() = /// </summary> /// <param name="documentCharset">The document charset to set on the given DisplayOptions object</param> static member setDocumentCharset(documentCharset: string) = - (fun (displayOpts: DisplayOptions) -> - documentCharset |> DynObj.setValue displayOpts "DocumentCharset" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentCharset" documentCharset + /// <summary> /// Returns Some document charset from the given DisplayOptions object if it exists, None otherwise /// </summary> /// <param name="displayOpts">The DisplayOptions object to get the document charset from</param> static member tryGetDocumentCharset(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue<string>("DocumentCharset") + displayOpts.TryGetTypedPropertyValue<string>("DocumentCharset") /// <summary> /// Returns the document charset from the given DisplayOptions object if it exists, an empty string otherwise @@ -163,16 +168,16 @@ type DisplayOptions() = /// </summary> /// <param name="documentDescription">The document description to set on the given DisplayOptions object</param> static member setDocumentDescription(documentDescription: string) = - (fun (displayOpts: DisplayOptions) -> - documentDescription |> DynObj.setValue displayOpts "DocumentDescription" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentDescription" documentDescription + /// <summary> /// Returns Some document description from the given DisplayOptions object if it exists, None otherwise /// </summary> /// <param name="displayOpts">The DisplayOptions object to get the document description from</param> static member tryGetDocumentDescription(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue<string>("DocumentDescription") + displayOpts.TryGetTypedPropertyValue<string>("DocumentDescription") /// <summary> /// Returns the document description from the given DisplayOptions object if it exists, an empty string otherwise @@ -186,16 +191,15 @@ type DisplayOptions() = /// </summary> /// <param name="documentFavicon">The document favicon to set on the given DisplayOptions object</param> static member setDocumentFavicon(documentFavicon: XmlNode) = - (fun (displayOpts: DisplayOptions) -> - documentFavicon |> DynObj.setValue displayOpts "DocumentFavicon" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentFavicon" documentFavicon /// <summary> /// Returns Some document favicon from the given DisplayOptions object if it exists, None otherwise /// </summary> /// <param name="displayOpts"></param> static member tryGetDocumentFavicon(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue<XmlNode>("DocumentFavicon") + displayOpts.TryGetTypedPropertyValue<XmlNode>("DocumentFavicon") /// <summary> /// Returns the document favicon from the given DisplayOptions object if it exists, an empty XML Node otherwise @@ -209,16 +213,16 @@ type DisplayOptions() = /// </summary> /// <param name="additionalHeadTags">The additional head tags to set on the given DisplayOptions object</param> static member setAdditionalHeadTags(additionalHeadTags: XmlNode list) = - (fun (displayOpts: DisplayOptions) -> - additionalHeadTags |> DynObj.setValue displayOpts "AdditionalHeadTags" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "AdditionalHeadTags" additionalHeadTags + /// <summary> /// Returns Some additional head tags from the given DisplayOptions object if they exist, None otherwise /// </summary> /// <param name="displayOpts">The DisplayOptions object to get the additional head tags from</param> static member tryGetAdditionalHeadTags(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue<XmlNode list>("AdditionalHeadTags") + displayOpts.TryGetTypedPropertyValue<XmlNode list>("AdditionalHeadTags") /// <summary> /// Returns the additional head tags from the given DisplayOptions object if they exist, an empty list otherwise @@ -243,16 +247,16 @@ type DisplayOptions() = /// </summary> /// <param name="chartDescription">The chart chart description to set on the given DisplayOptions object</param> static member setChartDescription(chartDescription: XmlNode list) = - (fun (displayOpts: DisplayOptions) -> - chartDescription |> DynObj.setValue displayOpts "ChartDescription" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "ChartDescription" chartDescription + /// <summary> /// Returns Some chart description from the given DisplayOptions object if it exists, None otherwise /// </summary> /// <param name="displayOpts">The DisplayOptions object to get the chart description from</param> static member tryGetChartDescription(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue<XmlNode list>("ChartDescription") + displayOpts.TryGetTypedPropertyValue<XmlNode list>("ChartDescription") /// <summary> /// Returns the chart description from the given DisplayOptions object if it exists, an empty list otherwise @@ -275,16 +279,15 @@ type DisplayOptions() = /// </summary> /// <param name="plotlyReference">The reference to a plotly.js source to set on the given DisplayOptions object</param> static member setPlotlyReference(plotlyReference: PlotlyJSReference) = - (fun (displayOpts: DisplayOptions) -> - plotlyReference |> DynObj.setValue displayOpts "PlotlyJSReference" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "PlotlyJSReference" plotlyReference /// <summary> /// Returns Some reference to a plotly.js source from the given DisplayOptions object if it exists, None otherwise /// </summary> /// <param name="displayOpts">The DisplayOptions object to get the reference to a plotly.js source from</param> static member tryGetPlotlyReference(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue<PlotlyJSReference>("PlotlyJSReference") + displayOpts.TryGetTypedPropertyValue<PlotlyJSReference>("PlotlyJSReference") /// <summary> /// Returns the reference to a plotly.js source from the given DisplayOptions object if it exists, NoReference otherwise diff --git a/src/Plotly.NET/Globals.fs b/src/Plotly.NET/Globals.fs index 86934d902..fbe2cac6e 100644 --- a/src/Plotly.NET/Globals.fs +++ b/src/Plotly.NET/Globals.fs @@ -52,11 +52,11 @@ let LOGO_BASE64 = """iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA1VBMVEVHcEwQnv+gCXURnf+gCXURnf8Rnf+gCXURnf+gCXWgCXURnf+gCHURnf+gCXURnf+gCXURnf+gCXUwke5YVbykBXEijO+gCXURnf8Rnf8Rnf8Rnf8Rnf8Rnf+gCXWIIoygCXUohekRnf8Rnf8Qn/+gCXUQnf8SoP////8ijO+PG4agAnGQLY6gEnrP7f94yP8aof8YwP/DY6jJcrDuz+RlwP/owt0Urv8k/v4e4v9Nr9F1XaSxMoyx3/9rc7Ayq/98UZ3gr9L8+v05rv9Fv9rF5/+7T52h9OprAAAAJHRSTlMAINTUgPmA+gYGNbu7NR9PR/xP/hoh/o74f471R3x8uie60TS1lKLVAAABzUlEQVRYw83X2XKCMBQGYOyK3RdL9x0ChVCkVAHFfXn/RyphKSIBE85Mp8woV/8HOUByIgj/+mg2yb8o1s4/nZHTw2NNobmzf0HOp/d7Ys18Apzv1hHCvJICqIZA8hnAL0T5FYBXiPOrAJ+Q5HMAj5Dm8wC78JtfA1iFLK8oeYBNWM1vvQitltB4QxxCLn8gXD2/NoTjbXZhLX9ypH8c8giFvKJLiEMo5gnALlDyEcAq0PIxwCZQ8wnAItDzKbBZKObNBJDlMCFvEor5YQ8buDfUJdt3kevb1QLl+j2vb4y9OZZ8z0a251feA238uG8qZh/rkmurSLXdqjrQ62eQn5EWsaqS9Dweh3ewDOI7aHdG5ULJ8yM1WE67cQ0604FaJqx/v0leGc6x8aV94+gpWNqiTR3FrShcU68fHqYSA3J47Qwgwnsm3NxtBtR2NVA2BKcbxIC1mFUOoaSIZldzIuDyU+tkAPtjoAMcLwIV4HkVaQDXx0ABOD9HZxIYwcTRJWswQrOBxT8hpBMKIi+xWmdK4pvS4JMqfFqHLyzwpQ2+uMKXd3iDAW9x4E0WvM2DN5rwVhfebMPbffiGA77lgW+64Ns++MYTvvX9m+MHc8vmMWg2fMUAAAAASUVORK5CYII=""" /// -let internal JSON_CONFIG = +let JSON_CONFIG = JsonSerializerSettings(ReferenceLoopHandling = ReferenceLoopHandling.Serialize) /// the mathjax v2 tags to add to html docs for rendering latex -let internal MATHJAX_V2_TAGS = +let MATHJAX_V2_TAGS = [ script [ @@ -76,7 +76,7 @@ let internal MATHJAX_V2_TAGS = ] /// the mathjax v3 tags to add to html docs for rendering latex -let internal MATHJAX_V3_TAGS = +let MATHJAX_V3_TAGS = [ script [] diff --git a/src/Plotly.NET/InternalUtils.fs b/src/Plotly.NET/InternalUtils.fs index 5b84168e3..bc09619a7 100644 --- a/src/Plotly.NET/InternalUtils.fs +++ b/src/Plotly.NET/InternalUtils.fs @@ -5,6 +5,7 @@ open DynamicObj open System.Runtime.InteropServices open System.IO open System.Reflection +open System let combineOptSeqs (first: seq<'A> option) (second: seq<'A> option) = match first, second with @@ -33,41 +34,67 @@ let getFullPlotlyJS () = [<AutoOpen>] module DynObj = - let setSingleOrMultiOpt (dyn: #DynamicObj) (propName: string) (single: 'A option, multi: seq<'A> option) = + let setOptionalSingleOrMultiProperty (propName: string) (single: 'A option, multi: seq<'A> option) (dyn: #DynamicObj) = if multi.IsSome then - multi |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName multi else - single |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName single - let setSingleOrMultiOptBy - (dyn: #DynamicObj) + let inline withOptionalSingleOrMultiProperty (propName: string) (single: 'A option, multi: seq<'A> option) (dyn: #DynamicObj) = + dyn |> setOptionalSingleOrMultiProperty propName (single,multi) + dyn + + let setOptionalSingleOrMultiPropertyBy (propName: string) - (f: 'A -> 'B) (single: 'A option, multi: seq<'A> option) + (f: 'A -> 'B) + (dyn: #DynamicObj) = if multi.IsSome then - multi |> DynObj.setValueOptBy dyn propName (Seq.map f) + dyn |> DynObj.setOptionalPropertyBy propName multi (Seq.map f) else - single |> DynObj.setValueOptBy dyn propName f + dyn |> DynObj.setOptionalPropertyBy propName single f + + let inline withOptionalSingleOrMultiPropertyBy + (propName: string) + (single: 'A option, multi: seq<'A> option) + (f: 'A -> 'B) + (dyn: #DynamicObj) + = + dyn |> setOptionalSingleOrMultiPropertyBy propName (single,multi) f + dyn - let setSingleOrAnyOpt (dyn: #DynamicObj) (propName: string) (single: 'A option, any: 'B option) = + let setOptionalSingleOrAnyProperty (propName: string) (single: 'A option, any: 'B option) (dyn: #DynamicObj) = if any.IsSome then - any |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName any else - single |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName single - let setSingleOrAnyOptBy - (dyn: #DynamicObj) + let inline withOptionalSingleOrAnyProperty (propName: string) (single: 'A option, any: 'B option) (dyn: #DynamicObj) = + dyn |> setOptionalSingleOrAnyProperty propName (single, any) + dyn + + let setOptionalSingleOrAnyPropertyBy (propName: string) + (single: 'A option, any: 'B option) (singleF: 'A -> 'C) (anyF: 'B -> 'D) - (single: 'A option, any: 'B option) + (dyn: #DynamicObj) = if any.IsSome then - any |> DynObj.setValueOptBy dyn propName anyF + dyn |> DynObj.setOptionalPropertyBy propName any (Seq.map anyF) else - single |> DynObj.setValueOptBy dyn propName singleF + dyn |> DynObj.setOptionalPropertyBy propName single singleF + let inline withOptionalSingleOrAnyPropertyBy + (propName: string) + (single: 'A option, any: 'B option) + (singleF: 'A -> 'C) + (anyF: 'B -> 'D) + (dyn: #DynamicObj) + = + dyn |> setOptionalSingleOrAnyPropertyBy propName (single, any) singleF anyF + dyn // Copied from FSharp.Care.Collections to remove dependencies [<AutoOpen>] @@ -103,3 +130,13 @@ module internal ChartIO = System.Diagnostics.Process.Start("open", path) |> ignore else invalidOp "Not supported OS platform" + +[<AttributeUsage(AttributeTargets.Class)>] +type internal TypeFormatterSourceAttribute(formatterSourceType: Type) = + inherit Attribute() + let mutable preferredMimeTypes : string[] = [||] + member this.TypeFormatterSourceType = formatterSourceType + member this.PreferredMimeTypes + with get() = preferredMimeTypes + and set(v) = preferredMimeTypes <- v + \ No newline at end of file diff --git a/src/Plotly.NET/Layout/Layout.fs b/src/Plotly.NET/Layout/Layout.fs index 2270be1f6..1e426c394 100644 --- a/src/Plotly.NET/Layout/Layout.fs +++ b/src/Plotly.NET/Layout/Layout.fs @@ -89,80 +89,80 @@ type Layout() = /// <param name="UpdateMenus">A collection containing all UpdateMenus of this layout. </param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Margin: Margin, - [<Optional; DefaultParameterValue(null)>] ?AutoSize: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: int, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?UniformText: UniformText, - [<Optional; DefaultParameterValue(null)>] ?Separators: string, - [<Optional; DefaultParameterValue(null)>] ?PaperBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?PlotBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: DefaultColorScales, - [<Optional; DefaultParameterValue(null)>] ?Colorway: Color, - [<Optional; DefaultParameterValue(null)>] ?ModeBar: ModeBar, - [<Optional; DefaultParameterValue(null)>] ?HoverMode: StyleParam.HoverMode, - [<Optional; DefaultParameterValue(null)>] ?ClickMode: StyleParam.ClickMode, - [<Optional; DefaultParameterValue(null)>] ?DragMode: StyleParam.DragMode, - [<Optional; DefaultParameterValue(null)>] ?SelectDirection: StyleParam.SelectDirection, - [<Optional; DefaultParameterValue(null)>] ?ActiveSelection: ActiveSelection, - [<Optional; DefaultParameterValue(null)>] ?NewSelection: NewSelection, - [<Optional; DefaultParameterValue(null)>] ?HoverDistance: int, - [<Optional; DefaultParameterValue(null)>] ?SpikeDistance: int, - [<Optional; DefaultParameterValue(null)>] ?Hoverlabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Transition: Transition, - [<Optional; DefaultParameterValue(null)>] ?DataRevision: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?EditRevision: string, - [<Optional; DefaultParameterValue(null)>] ?SelectRevision: string, - [<Optional; DefaultParameterValue(null)>] ?Template: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?Computed: string, - [<Optional; DefaultParameterValue(null)>] ?Grid: LayoutGrid, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?MinReducedHeight: int, - [<Optional; DefaultParameterValue(null)>] ?MinReducedWidth: int, - [<Optional; DefaultParameterValue(null)>] ?NewShape: NewShape, - [<Optional; DefaultParameterValue(null)>] ?ActiveShape: ActiveShape, - [<Optional; DefaultParameterValue(null)>] ?HideSources: bool, - [<Optional; DefaultParameterValue(null)>] ?ScatterGap: float, - [<Optional; DefaultParameterValue(null)>] ?ScatterMode: StyleParam.ScatterMode, - [<Optional; DefaultParameterValue(null)>] ?BarGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarMode: StyleParam.BarMode, - [<Optional; DefaultParameterValue(null)>] ?BarNorm: StyleParam.BarNorm, - [<Optional; DefaultParameterValue(null)>] ?ExtendPieColors: bool, - [<Optional; DefaultParameterValue(null)>] ?HiddenLabels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?PieColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?BoxGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxMode: StyleParam.BoxMode, - [<Optional; DefaultParameterValue(null)>] ?ViolinGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinMode: StyleParam.ViolinMode, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallMode: StyleParam.WaterfallMode, - [<Optional; DefaultParameterValue(null)>] ?FunnelGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelMode: StyleParam.FunnelMode, - [<Optional; DefaultParameterValue(null)>] ?ExtendFunnelAreaColors: bool, - [<Optional; DefaultParameterValue(null)>] ?FunnelAreaColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendSunBurstColors: bool, - [<Optional; DefaultParameterValue(null)>] ?SunBurstColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendTreeMapColors: bool, - [<Optional; DefaultParameterValue(null)>] ?TreeMapColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendIcicleColors: bool, - [<Optional; DefaultParameterValue(null)>] ?IcicleColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?Annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(null)>] ?Shapes: seq<Shape>, - [<Optional; DefaultParameterValue(null)>] ?Selections: seq<Selection>, - [<Optional; DefaultParameterValue(null)>] ?Images: seq<LayoutImage>, - [<Optional; DefaultParameterValue(null)>] ?Sliders: seq<Slider>, - [<Optional; DefaultParameterValue(null)>] ?UpdateMenus: seq<UpdateMenu> + ?Title: Title, + ?ShowLegend: bool, + ?Margin: Margin, + ?AutoSize: bool, + ?Width: int, + ?Height: int, + ?Font: Font, + ?UniformText: UniformText, + ?Separators: string, + ?PaperBGColor: Color, + ?PlotBGColor: Color, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?Colorscale: DefaultColorScales, + ?Colorway: Color, + ?ModeBar: ModeBar, + ?HoverMode: StyleParam.HoverMode, + ?ClickMode: StyleParam.ClickMode, + ?DragMode: StyleParam.DragMode, + ?SelectDirection: StyleParam.SelectDirection, + ?ActiveSelection: ActiveSelection, + ?NewSelection: NewSelection, + ?HoverDistance: int, + ?SpikeDistance: int, + ?Hoverlabel: Hoverlabel, + ?Transition: Transition, + ?DataRevision: string, + ?UIRevision: string, + ?EditRevision: string, + ?SelectRevision: string, + ?Template: DynamicObj, + ?Meta: string, + ?Computed: string, + ?Grid: LayoutGrid, + ?Calendar: StyleParam.Calendar, + ?MinReducedHeight: int, + ?MinReducedWidth: int, + ?NewShape: NewShape, + ?ActiveShape: ActiveShape, + ?HideSources: bool, + ?ScatterGap: float, + ?ScatterMode: StyleParam.ScatterMode, + ?BarGap: float, + ?BarGroupGap: float, + ?BarMode: StyleParam.BarMode, + ?BarNorm: StyleParam.BarNorm, + ?ExtendPieColors: bool, + ?HiddenLabels: seq<#IConvertible>, + ?PieColorWay: Color, + ?BoxGap: float, + ?BoxGroupGap: float, + ?BoxMode: StyleParam.BoxMode, + ?ViolinGap: float, + ?ViolinGroupGap: float, + ?ViolinMode: StyleParam.ViolinMode, + ?WaterfallGap: float, + ?WaterfallGroupGap: float, + ?WaterfallMode: StyleParam.WaterfallMode, + ?FunnelGap: float, + ?FunnelGroupGap: float, + ?FunnelMode: StyleParam.FunnelMode, + ?ExtendFunnelAreaColors: bool, + ?FunnelAreaColorWay: Color, + ?ExtendSunBurstColors: bool, + ?SunBurstColorWay: Color, + ?ExtendTreeMapColors: bool, + ?TreeMapColorWay: Color, + ?ExtendIcicleColors: bool, + ?IcicleColorWay: Color, + ?Annotations: seq<Annotation>, + ?Shapes: seq<Shape>, + ?Selections: seq<Selection>, + ?Images: seq<LayoutImage>, + ?Sliders: seq<Slider>, + ?UpdateMenus: seq<UpdateMenu> ) = Layout() |> Layout.style ( @@ -321,159 +321,158 @@ type Layout() = /// <param name="UpdateMenus">A collection containing all UpdateMenus of this layout. </param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Margin: Margin, - [<Optional; DefaultParameterValue(null)>] ?AutoSize: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: int, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?UniformText: UniformText, - [<Optional; DefaultParameterValue(null)>] ?Separators: string, - [<Optional; DefaultParameterValue(null)>] ?PaperBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?PlotBGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: DefaultColorScales, - [<Optional; DefaultParameterValue(null)>] ?Colorway: Color, - [<Optional; DefaultParameterValue(null)>] ?ModeBar: ModeBar, - [<Optional; DefaultParameterValue(null)>] ?HoverMode: StyleParam.HoverMode, - [<Optional; DefaultParameterValue(null)>] ?ClickMode: StyleParam.ClickMode, - [<Optional; DefaultParameterValue(null)>] ?DragMode: StyleParam.DragMode, - [<Optional; DefaultParameterValue(null)>] ?SelectDirection: StyleParam.SelectDirection, - [<Optional; DefaultParameterValue(null)>] ?ActiveSelection: ActiveSelection, - [<Optional; DefaultParameterValue(null)>] ?NewSelection: NewSelection, - [<Optional; DefaultParameterValue(null)>] ?HoverDistance: int, - [<Optional; DefaultParameterValue(null)>] ?SpikeDistance: int, - [<Optional; DefaultParameterValue(null)>] ?Hoverlabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Transition: Transition, - [<Optional; DefaultParameterValue(null)>] ?DataRevision: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?EditRevision: string, - [<Optional; DefaultParameterValue(null)>] ?SelectRevision: string, - [<Optional; DefaultParameterValue(null)>] ?Template: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?Computed: string, - [<Optional; DefaultParameterValue(null)>] ?Grid: LayoutGrid, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?MinReducedHeight: int, - [<Optional; DefaultParameterValue(null)>] ?MinReducedWidth: int, - [<Optional; DefaultParameterValue(null)>] ?NewShape: NewShape, - [<Optional; DefaultParameterValue(null)>] ?ActiveShape: ActiveShape, - [<Optional; DefaultParameterValue(null)>] ?HideSources: bool, - [<Optional; DefaultParameterValue(null)>] ?ScatterGap: float, - [<Optional; DefaultParameterValue(null)>] ?ScatterMode: StyleParam.ScatterMode, - [<Optional; DefaultParameterValue(null)>] ?BarGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BarMode: StyleParam.BarMode, - [<Optional; DefaultParameterValue(null)>] ?BarNorm: StyleParam.BarNorm, - [<Optional; DefaultParameterValue(null)>] ?ExtendPieColors: bool, - [<Optional; DefaultParameterValue(null)>] ?HiddenLabels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?PieColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?BoxGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?BoxMode: StyleParam.BoxMode, - [<Optional; DefaultParameterValue(null)>] ?ViolinGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?ViolinMode: StyleParam.ViolinMode, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?WaterfallMode: StyleParam.WaterfallMode, - [<Optional; DefaultParameterValue(null)>] ?FunnelGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?FunnelMode: StyleParam.FunnelMode, - [<Optional; DefaultParameterValue(null)>] ?ExtendFunnelAreaColors: bool, - [<Optional; DefaultParameterValue(null)>] ?FunnelAreaColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendSunBurstColors: bool, - [<Optional; DefaultParameterValue(null)>] ?SunBurstColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendTreeMapColors: bool, - [<Optional; DefaultParameterValue(null)>] ?TreeMapColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?ExtendIcicleColors: bool, - [<Optional; DefaultParameterValue(null)>] ?IcicleColorWay: Color, - [<Optional; DefaultParameterValue(null)>] ?Annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(null)>] ?Shapes: seq<Shape>, - [<Optional; DefaultParameterValue(null)>] ?Selections: seq<Selection>, - [<Optional; DefaultParameterValue(null)>] ?Images: seq<LayoutImage>, - [<Optional; DefaultParameterValue(null)>] ?Sliders: seq<Slider>, - [<Optional; DefaultParameterValue(null)>] ?UpdateMenus: seq<UpdateMenu> + ?Title: Title, + ?ShowLegend: bool, + ?Margin: Margin, + ?AutoSize: bool, + ?Width: int, + ?Height: int, + ?Font: Font, + ?UniformText: UniformText, + ?Separators: string, + ?PaperBGColor: Color, + ?PlotBGColor: Color, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?Colorscale: DefaultColorScales, + ?Colorway: Color, + ?ModeBar: ModeBar, + ?HoverMode: StyleParam.HoverMode, + ?ClickMode: StyleParam.ClickMode, + ?DragMode: StyleParam.DragMode, + ?SelectDirection: StyleParam.SelectDirection, + ?ActiveSelection: ActiveSelection, + ?NewSelection: NewSelection, + ?HoverDistance: int, + ?SpikeDistance: int, + ?Hoverlabel: Hoverlabel, + ?Transition: Transition, + ?DataRevision: string, + ?UIRevision: string, + ?EditRevision: string, + ?SelectRevision: string, + ?Template: DynamicObj, + ?Meta: string, + ?Computed: string, + ?Grid: LayoutGrid, + ?Calendar: StyleParam.Calendar, + ?MinReducedHeight: int, + ?MinReducedWidth: int, + ?NewShape: NewShape, + ?ActiveShape: ActiveShape, + ?HideSources: bool, + ?ScatterGap: float, + ?ScatterMode: StyleParam.ScatterMode, + ?BarGap: float, + ?BarGroupGap: float, + ?BarMode: StyleParam.BarMode, + ?BarNorm: StyleParam.BarNorm, + ?ExtendPieColors: bool, + ?HiddenLabels: seq<#IConvertible>, + ?PieColorWay: Color, + ?BoxGap: float, + ?BoxGroupGap: float, + ?BoxMode: StyleParam.BoxMode, + ?ViolinGap: float, + ?ViolinGroupGap: float, + ?ViolinMode: StyleParam.ViolinMode, + ?WaterfallGap: float, + ?WaterfallGroupGap: float, + ?WaterfallMode: StyleParam.WaterfallMode, + ?FunnelGap: float, + ?FunnelGroupGap: float, + ?FunnelMode: StyleParam.FunnelMode, + ?ExtendFunnelAreaColors: bool, + ?FunnelAreaColorWay: Color, + ?ExtendSunBurstColors: bool, + ?SunBurstColorWay: Color, + ?ExtendTreeMapColors: bool, + ?TreeMapColorWay: Color, + ?ExtendIcicleColors: bool, + ?IcicleColorWay: Color, + ?Annotations: seq<Annotation>, + ?Shapes: seq<Shape>, + ?Selections: seq<Selection>, + ?Images: seq<LayoutImage>, + ?Sliders: seq<Slider>, + ?UpdateMenus: seq<UpdateMenu> ) = (fun (layout: Layout) -> - - Title |> DynObj.setValueOpt layout "title" - ShowLegend |> DynObj.setValueOpt layout "showlegend" - Margin |> DynObj.setValueOpt layout "margin" - AutoSize |> DynObj.setValueOpt layout "autosize" - Width |> DynObj.setValueOpt layout "width" - Height |> DynObj.setValueOpt layout "height" - Font |> DynObj.setValueOpt layout "font" - UniformText |> DynObj.setValueOpt layout "uniformtext" - Separators |> DynObj.setValueOpt layout "separators" - PaperBGColor |> DynObj.setValueOpt layout "paper_bgcolor" - PlotBGColor |> DynObj.setValueOpt layout "plot_bgcolor" - AutoTypeNumbers |> DynObj.setValueOptBy layout "autotypenumbers" StyleParam.AutoTypeNumbers.convert - Colorscale |> DynObj.setValueOpt layout "colorscale" - Colorway |> DynObj.setValueOpt layout "colorway" - ModeBar |> DynObj.setValueOpt layout "modebar" - HoverMode |> DynObj.setValueOptBy layout "hovermode" StyleParam.HoverMode.convert - ClickMode |> DynObj.setValueOptBy layout "clickmode" StyleParam.ClickMode.convert - DragMode |> DynObj.setValueOptBy layout "dragmode" StyleParam.DragMode.convert - SelectDirection |> DynObj.setValueOptBy layout "selectdirection" StyleParam.SelectDirection.convert - ActiveSelection |> DynObj.setValueOpt layout "activeselection" - NewSelection |> DynObj.setValueOpt layout "newselection" - HoverDistance |> DynObj.setValueOpt layout "hoverdistance" - SpikeDistance |> DynObj.setValueOpt layout "spikedistance" - Hoverlabel |> DynObj.setValueOpt layout "hoverlabel" - Transition |> DynObj.setValueOpt layout "transition" - DataRevision |> DynObj.setValueOpt layout "datarevision" - UIRevision |> DynObj.setValueOpt layout "uirevision" - EditRevision |> DynObj.setValueOpt layout "editrevision" - SelectRevision |> DynObj.setValueOpt layout "selectrevision" - Template |> DynObj.setValueOpt layout "template" - Meta |> DynObj.setValueOpt layout "meta" - Computed |> DynObj.setValueOpt layout "computed" - Grid |> DynObj.setValueOpt layout "grid" - Calendar |> DynObj.setValueOptBy layout "calendar" StyleParam.Calendar.convert - MinReducedHeight |> DynObj.setValueOpt layout "minreducedheight" - MinReducedWidth |> DynObj.setValueOpt layout "minreducedwidth" - NewShape |> DynObj.setValueOpt layout "newshape" - ActiveShape |> DynObj.setValueOpt layout "activeshape" - HideSources |> DynObj.setValueOpt layout "hidesources" - ScatterGap |> DynObj.setValueOpt layout "scattergap" - ScatterMode |> DynObj.setValueOptBy layout "scattermode" StyleParam.ScatterMode.convert - BarGap |> DynObj.setValueOpt layout "bargap" - BarGroupGap |> DynObj.setValueOpt layout "bargroupgap" - BarMode |> DynObj.setValueOptBy layout "barmode" StyleParam.BarMode.convert - BarNorm |> DynObj.setValueOptBy layout "barnorm" StyleParam.BarNorm.convert - ExtendPieColors |> DynObj.setValueOpt layout "extendpiecolors" - HiddenLabels |> DynObj.setValueOpt layout "hiddenlabels" - PieColorWay |> DynObj.setValueOpt layout "piecolorway" - BoxGap |> DynObj.setValueOpt layout "boxgap" - BoxGroupGap |> DynObj.setValueOpt layout "boxgroupgap" - BoxMode |> DynObj.setValueOptBy layout "boxmode" StyleParam.BoxMode.convert - ViolinGap |> DynObj.setValueOpt layout "violingap" - ViolinGroupGap |> DynObj.setValueOpt layout "violingroupgap" - ViolinMode |> DynObj.setValueOptBy layout "violinmode" StyleParam.ViolinMode.convert - WaterfallGap |> DynObj.setValueOpt layout "waterfallgap" - WaterfallGroupGap |> DynObj.setValueOpt layout "waterfallgroupgap" - WaterfallMode |> DynObj.setValueOptBy layout "waterfallmode" StyleParam.WaterfallMode.convert - FunnelGap |> DynObj.setValueOpt layout "funnelgap" - FunnelGroupGap |> DynObj.setValueOpt layout "funnelgroupgap" - FunnelMode |> DynObj.setValueOptBy layout "funnelmode" StyleParam.FunnelMode.convert - ExtendFunnelAreaColors |> DynObj.setValueOpt layout "extendfunnelareacolors" - FunnelAreaColorWay |> DynObj.setValueOpt layout "funnelareacolorway" - ExtendSunBurstColors |> DynObj.setValueOpt layout "extendsunburstcolors" - SunBurstColorWay |> DynObj.setValueOpt layout "sunburstcolorway" - ExtendTreeMapColors |> DynObj.setValueOpt layout "extendtreemapcolors" - TreeMapColorWay |> DynObj.setValueOpt layout "treemapcolorway" - ExtendIcicleColors |> DynObj.setValueOpt layout "extendiciclecolors" - IcicleColorWay |> DynObj.setValueOpt layout "iciclecolorway" - Annotations |> DynObj.setValueOpt layout "annotations" - Shapes |> DynObj.setValueOpt layout "shapes" - Selections |> DynObj.setValueOpt layout "selections" - Images |> DynObj.setValueOpt layout "images" - Sliders |> DynObj.setValueOpt layout "sliders" - UpdateMenus |> DynObj.setValueOpt layout "updatemenus" - - layout) + layout + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "margin" Margin + |> DynObj.withOptionalProperty "autosize" AutoSize + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "uniformtext" UniformText + |> DynObj.withOptionalProperty "separators" Separators + |> DynObj.withOptionalProperty "paper_bgcolor" PaperBGColor + |> DynObj.withOptionalProperty "plot_bgcolor" PlotBGColor + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalProperty "colorscale" Colorscale + |> DynObj.withOptionalProperty "colorway" Colorway + |> DynObj.withOptionalProperty "modebar" ModeBar + |> DynObj.withOptionalPropertyBy "hovermode" HoverMode StyleParam.HoverMode.convert + |> DynObj.withOptionalPropertyBy "clickmode" ClickMode StyleParam.ClickMode.convert + |> DynObj.withOptionalPropertyBy "dragmode" DragMode StyleParam.DragMode.convert + |> DynObj.withOptionalPropertyBy "selectdirection" SelectDirection StyleParam.SelectDirection.convert + |> DynObj.withOptionalProperty "activeselection" ActiveSelection + |> DynObj.withOptionalProperty "newselection" NewSelection + |> DynObj.withOptionalProperty "hoverdistance" HoverDistance + |> DynObj.withOptionalProperty "spikedistance" SpikeDistance + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "transition" Transition + |> DynObj.withOptionalProperty "datarevision" DataRevision + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "editrevision" EditRevision + |> DynObj.withOptionalProperty "selectrevision" SelectRevision + |> DynObj.withOptionalProperty "template" Template + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "computed" Computed + |> DynObj.withOptionalProperty "grid" Grid + |> DynObj.withOptionalPropertyBy "calendar" Calendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "minreducedheight" MinReducedHeight + |> DynObj.withOptionalProperty "minreducedwidth" MinReducedWidth + |> DynObj.withOptionalProperty "newshape" NewShape + |> DynObj.withOptionalProperty "activeshape" ActiveShape + |> DynObj.withOptionalProperty "hidesources" HideSources + |> DynObj.withOptionalProperty "scattergap" ScatterGap + |> DynObj.withOptionalPropertyBy "scattermode" ScatterMode StyleParam.ScatterMode.convert + |> DynObj.withOptionalProperty "bargap" BarGap + |> DynObj.withOptionalProperty "bargroupgap" BarGroupGap + |> DynObj.withOptionalPropertyBy "barmode" BarMode StyleParam.BarMode.convert + |> DynObj.withOptionalPropertyBy "barnorm" BarNorm StyleParam.BarNorm.convert + |> DynObj.withOptionalProperty "extendpiecolors" ExtendPieColors + |> DynObj.withOptionalProperty "hiddenlabels" HiddenLabels + |> DynObj.withOptionalProperty "piecolorway" PieColorWay + |> DynObj.withOptionalProperty "boxgap" BoxGap + |> DynObj.withOptionalProperty "boxgroupgap" BoxGroupGap + |> DynObj.withOptionalPropertyBy "boxmode" BoxMode StyleParam.BoxMode.convert + |> DynObj.withOptionalProperty "violingap" ViolinGap + |> DynObj.withOptionalProperty "violingroupgap" ViolinGroupGap + |> DynObj.withOptionalPropertyBy "violinmode" ViolinMode StyleParam.ViolinMode.convert + |> DynObj.withOptionalProperty "waterfallgap" WaterfallGap + |> DynObj.withOptionalProperty "waterfallgroupgap" WaterfallGroupGap + |> DynObj.withOptionalPropertyBy "waterfallmode" WaterfallMode StyleParam.WaterfallMode.convert + |> DynObj.withOptionalProperty "funnelgap" FunnelGap + |> DynObj.withOptionalProperty "funnelgroupgap" FunnelGroupGap + |> DynObj.withOptionalPropertyBy "funnelmode" FunnelMode StyleParam.FunnelMode.convert + |> DynObj.withOptionalProperty "extendfunnelareacolors" ExtendFunnelAreaColors + |> DynObj.withOptionalProperty "funnelareacolorway" FunnelAreaColorWay + |> DynObj.withOptionalProperty "extendsunburstcolors" ExtendSunBurstColors + |> DynObj.withOptionalProperty "sunburstcolorway" SunBurstColorWay + |> DynObj.withOptionalProperty "extendtreemapcolors" ExtendTreeMapColors + |> DynObj.withOptionalProperty "treemapcolorway" TreeMapColorWay + |> DynObj.withOptionalProperty "extendiciclecolors" ExtendIcicleColors + |> DynObj.withOptionalProperty "iciclecolorway" IcicleColorWay + |> DynObj.withOptionalProperty "annotations" Annotations + |> DynObj.withOptionalProperty "shapes" Shapes + |> DynObj.withOptionalProperty "selections" Selections + |> DynObj.withOptionalProperty "images" Images + |> DynObj.withOptionalProperty "sliders" Sliders + |> DynObj.withOptionalProperty "updatemenus" UpdateMenus + ) /// <summary> /// Combines two Layout objects. @@ -492,41 +491,41 @@ type Layout() = let annotations = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<Annotation>>("annotations")) - (second.TryGetTypedValue<seq<Annotation>>("annotations")) + (first.TryGetTypedPropertyValue<seq<Annotation>>("annotations")) + (second.TryGetTypedPropertyValue<seq<Annotation>>("annotations")) let shapes = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<Shape>>("shapes")) - (second.TryGetTypedValue<seq<Shape>>("shapes")) + (first.TryGetTypedPropertyValue<seq<Shape>>("shapes")) + (second.TryGetTypedPropertyValue<seq<Shape>>("shapes")) let selections = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<Selection>>("selections")) - (second.TryGetTypedValue<seq<Selection>>("selections")) + (first.TryGetTypedPropertyValue<seq<Selection>>("selections")) + (second.TryGetTypedPropertyValue<seq<Selection>>("selections")) let images = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<LayoutImage>>("images")) - (second.TryGetTypedValue<seq<LayoutImage>>("images")) + (first.TryGetTypedPropertyValue<seq<LayoutImage>>("images")) + (second.TryGetTypedPropertyValue<seq<LayoutImage>>("images")) let sliders = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<Slider>>("sliders")) - (second.TryGetTypedValue<seq<Slider>>("sliders")) + (first.TryGetTypedPropertyValue<seq<Slider>>("sliders")) + (second.TryGetTypedPropertyValue<seq<Slider>>("sliders")) let hiddenLabels = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<string>>("hiddenlabels")) - (second.TryGetTypedValue<seq<string>>("hiddenlabels")) + (first.TryGetTypedPropertyValue<seq<string>>("hiddenlabels")) + (second.TryGetTypedPropertyValue<seq<string>>("hiddenlabels")) let updateMenus = InternalUtils.combineOptSeqs - (first.TryGetTypedValue<seq<UpdateMenu>>("updatemenus")) - (second.TryGetTypedValue<seq<UpdateMenu>>("updatemenus")) + (first.TryGetTypedPropertyValue<seq<UpdateMenu>>("updatemenus")) + (second.TryGetTypedPropertyValue<seq<UpdateMenu>>("updatemenus")) DynObj.combine first second - |> unbox + |> unbox<Layout> |> Layout.style ( ?Annotations = annotations, ?Shapes = shapes, @@ -542,14 +541,14 @@ type Layout() = /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="layout">The layout to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (layout: Layout) = layout.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (layout: Layout) = layout.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns Some(LinearAxis) if there is an axis object set on the layout with the given id, and None otherwise. /// </summary> /// <param name="id">The target axis id</param> static member tryGetLinearAxisById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<LinearAxis>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<LinearAxis>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given axis object with the one already present on the layout. @@ -558,19 +557,15 @@ type Layout() = /// <param name="axis">The updated axis object.</param> static member updateLinearAxisById(id: StyleParam.SubPlotId, axis: LinearAxis) = (fun (layout: Layout) -> - match id with | StyleParam.SubPlotId.XAxis _ | StyleParam.SubPlotId.YAxis _ -> - let axis' = match Layout.tryGetLinearAxisById id layout with - | Some a -> (DynObj.combine a axis) :?> LinearAxis + | Some a -> DynObj.combine a axis |> unbox<LinearAxis> | None -> axis - - axis' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout + |> DynObj.withProperty (StyleParam.SubPlotId.toString id) axis' | _ -> failwith $"{StyleParam.SubPlotId.toString id} is an invalid subplot id for setting a linear axis on layout") @@ -590,9 +585,10 @@ type Layout() = /// <param name="layout">The layout to get the x axes from</param> static member getXAxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidXAxisId kv.Key then - match layout.TryGetTypedValue<LinearAxis>(kv.Key) with + match layout.TryGetTypedPropertyValue<LinearAxis>(kv.Key) with | Some axis -> Some (kv.Key, axis) | None -> None else None @@ -604,9 +600,10 @@ type Layout() = /// <param name="layout">The layout to get the y axes from</param> static member getYAxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidYAxisId kv.Key then - match layout.TryGetTypedValue<LinearAxis>(kv.Key) with + match layout.TryGetTypedPropertyValue<LinearAxis>(kv.Key) with | Some axis -> Some (kv.Key, axis) | None -> None else None @@ -623,9 +620,7 @@ type Layout() = match id with | StyleParam.SubPlotId.XAxis _ | StyleParam.SubPlotId.YAxis _ -> - axis |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout - + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) axis | _ -> failwith $"{StyleParam.SubPlotId.toString id} is an invalid subplot id for setting a linear axis on layout") @@ -635,7 +630,7 @@ type Layout() = /// </summary> /// <param name="id">The target scene id</param> static member tryGetSceneById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<Scene>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<Scene>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given scene object with the one already present on the layout. @@ -646,11 +641,11 @@ type Layout() = (fun (layout: Layout) -> let scene' = match Layout.tryGetSceneById id layout with - | Some a -> (DynObj.combine a scene) :?> Scene + | Some a -> DynObj.combine a scene | None -> scene - - scene' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout + |> DynObj.withProperty (StyleParam.SubPlotId.toString id) scene' + ) /// <summary> /// Returns the Scene object of the layout with the given id. @@ -668,9 +663,10 @@ type Layout() = /// <param name="layout">The layout to get the scenes from</param> static member getScenes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidSceneId kv.Key then - match layout.TryGetTypedValue<Scene>(kv.Key) with + match layout.TryGetTypedPropertyValue<Scene>(kv.Key) with | Some scene -> Some (kv.Key, scene) | None -> None else None @@ -683,15 +679,15 @@ type Layout() = /// <param name="scene">The scene to add to the layout.</param> static member setScene(id: StyleParam.SubPlotId, scene: Scene) = (fun (layout: Layout) -> - scene |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) scene + ) /// <summary> /// Returns Some(Geo) if there is a geo object set on the layout with the given id, and None otherwise. /// </summary> /// <param name="id">The target geo id</param> static member tryGetGeoById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<Geo>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<Geo>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given geo object with the one already present on the layout. @@ -702,11 +698,11 @@ type Layout() = (fun (layout: Layout) -> let geo' = match Layout.tryGetGeoById id layout with - | Some a -> (DynObj.combine a geo) :?> Geo + | Some a -> DynObj.combine a geo | None -> geo - geo' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout|> DynObj.withProperty (StyleParam.SubPlotId.toString id) geo' + ) /// <summary> /// Returns the Geo object of the layout with the given id. @@ -723,9 +719,10 @@ type Layout() = /// <param name="layout">The layout to get the geos from</param> static member getGeos (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidGeoId kv.Key then - match layout.TryGetTypedValue<Geo>(kv.Key) with + match layout.TryGetTypedPropertyValue<Geo>(kv.Key) with | Some geo -> Some (kv.Key, geo) | None -> None else None @@ -738,17 +735,15 @@ type Layout() = /// <param name="geo">The geo to add to the layout.</param> static member setGeo(id: StyleParam.SubPlotId, geo: Geo) = (fun (layout: Layout) -> - - geo |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) geo + ) /// <summary> /// Returns Some(Mapbox) if there is amapbox object set on the layout with the given id, and None otherwise. /// </summary> /// <param name="id">The target mapbox id</param> static member tryGetMapboxById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<Mapbox>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<Mapbox>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given mapbox object with the one already present on the layout. @@ -759,11 +754,11 @@ type Layout() = (fun (layout: Layout) -> let mapbox' = match Layout.tryGetMapboxById id layout with - | Some a -> (DynObj.combine a mapbox) :?> Mapbox + | Some a -> DynObj.combine a mapbox | None -> mapbox - mapbox' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) mapbox' + ) /// <summary> /// Returns the Mapbox object of the layout with the given id. @@ -780,9 +775,10 @@ type Layout() = /// <param name="layout">The layout to get the mapboxes from</param> static member getMapboxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidMapboxId kv.Key then - match layout.TryGetTypedValue<Mapbox>(kv.Key) with + match layout.TryGetTypedPropertyValue<Mapbox>(kv.Key) with | Some mapbox -> Some (kv.Key, mapbox) | None -> None else None @@ -795,17 +791,15 @@ type Layout() = /// <param name="mapbox">The mapbox to add to the layout.</param> static member setMapbox(id: StyleParam.SubPlotId, mapbox: Mapbox) = (fun (layout: Layout) -> - - mapbox |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) mapbox + ) /// <summary> /// Returns Some(Polar) if there is a polar object set on the layout with the given id, and None otherwise. /// </summary> /// <param name="id">he target polar id</param> static member tryGetPolarById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<Polar>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<Polar>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given polar object with the one already present on the layout. @@ -817,12 +811,11 @@ type Layout() = let polar' = match layout |> Layout.tryGetPolarById (id) with - | Some a -> (DynObj.combine a polar) :?> Polar + | Some a -> DynObj.combine a polar | None -> polar - polar' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) polar' + ) /// <summary> /// Returns the Polar object of the layout with the given id. @@ -839,9 +832,10 @@ type Layout() = /// <param name="layout">The layout to get the polars from</param> static member getPolars (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidPolarId kv.Key then - match layout.TryGetTypedValue<Polar>(kv.Key) with + match layout.TryGetTypedPropertyValue<Polar>(kv.Key) with | Some polar -> Some (kv.Key, polar) | None -> None else None @@ -854,17 +848,15 @@ type Layout() = /// <param name="polar">The polar to add to the layout.</param> static member setPolar(id: StyleParam.SubPlotId, polar: Polar) = (fun (layout: Layout) -> - - polar |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) polar + ) /// <summary> /// Returns Some(smith) if there is a smith object set on the layout with the given id, and None otherwise. /// </summary> /// <param name="id">the target Smith id</param> static member tryGetSmithById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<Smith>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<Smith>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given Smith object with the one already present on the layout. @@ -875,13 +867,12 @@ type Layout() = (fun (layout: Layout) -> let smith' = - match layout |> Layout.tryGetPolarById (id) with - | Some a -> (DynObj.combine a smith) :?> Smith + match layout |> Layout.tryGetSmithById (id) with + | Some a -> DynObj.combine a smith | None -> smith - smith' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) smith' + ) /// <summary> /// Returns the Smith object of the layout with the given id. @@ -898,9 +889,10 @@ type Layout() = /// <param name="layout">The layout to get the smiths from</param> static member getSmiths (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidSmithId kv.Key then - match layout.TryGetTypedValue<Smith>(kv.Key) with + match layout.TryGetTypedPropertyValue<Smith>(kv.Key) with | Some smith -> Some (kv.Key, smith) | None -> None else None @@ -913,17 +905,15 @@ type Layout() = /// <param name="smith">The smith to add to the layout.</param> static member setSmith(id: StyleParam.SubPlotId, smith: Smith) = (fun (layout: Layout) -> - - smith |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) smith + ) /// <summary> /// Returns Some(ColorAxis) if there is a ColorAxis object set on the layout with the given id, and None otherwise. /// </summary> /// <param name="id">The target ColorAxis id</param> static member tryGetColorAxisById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<ColorAxis>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<ColorAxis>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given colorAxis object with the one already present on the layout. @@ -935,12 +925,11 @@ type Layout() = let colorAxis' = match layout |> Layout.tryGetColorAxisById (id) with - | Some a -> (DynObj.combine a colorAxis) :?> ColorAxis + | Some a -> DynObj.combine a colorAxis | None -> colorAxis - colorAxis' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) colorAxis' + ) /// <summary> /// Returns the ColorAxis object of the layout with the given id. @@ -957,9 +946,10 @@ type Layout() = /// <param name="layout">The layout to get the color axes from</param> static member getColorAxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidColorAxisId kv.Key then - match layout.TryGetTypedValue<ColorAxis>(kv.Key) with + match layout.TryGetTypedPropertyValue<ColorAxis>(kv.Key) with | Some colorAxis -> Some (kv.Key, colorAxis) | None -> None else None @@ -972,17 +962,15 @@ type Layout() = /// <param name="colorAxis">The ColorAxis to add to the layout.</param> static member setColorAxis(id: StyleParam.SubPlotId, colorAxis: ColorAxis) = (fun (layout: Layout) -> - - colorAxis |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) colorAxis + ) /// <summary> /// Returns Some(Ternary) if there is a ColorAxis object set on the layout with the given id, and None otherwise. /// </summary> /// <param name="id">The target Ternary id</param> static member tryGetTernaryById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<Ternary>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<Ternary>(StyleParam.SubPlotId.toString id)) /// <summary> /// Combines the given ternary object with the one already present on the layout. @@ -994,12 +982,11 @@ type Layout() = let ternary' = match layout |> Layout.tryGetTernaryById (id) with - | Some a -> (DynObj.combine a ternary) :?> Ternary + | Some a -> DynObj.combine a ternary | None -> ternary - ternary' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) ternary' + ) /// <summary> /// Returns the Ternary object of the layout with the given id. @@ -1016,9 +1003,10 @@ type Layout() = /// <param name="layout">The layout to get the ternaries from</param> static member getTernaries (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidTernaryId kv.Key then - match layout.TryGetTypedValue<Ternary>(kv.Key) with + match layout.TryGetTypedPropertyValue<Ternary>(kv.Key) with | Some ternary -> Some (kv.Key, ternary) | None -> None else None @@ -1031,10 +1019,8 @@ type Layout() = /// <param name="ternary">The Ternary to add to the layout.</param> static member setTernary(id: StyleParam.SubPlotId, ternary: Ternary) = (fun (layout: Layout) -> - - ternary |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) ternary + ) /// <summary> /// Returns the LayoutGrid object of the given layout. @@ -1051,8 +1037,8 @@ type Layout() = /// <param name="layoutGrid">The new LayoutGrid object</param> static member setLayoutGrid(layoutGrid: LayoutGrid) = (fun (layout: Layout) -> - layout.SetValue("grid", layoutGrid) - layout) + layout |> DynObj.withProperty "grid" layoutGrid + ) /// <summary> /// Combines the given layoutGrid object with the one already present on the layout. @@ -1061,7 +1047,7 @@ type Layout() = static member updateLayoutGrid(layoutGrid: LayoutGrid) = (fun (layout: Layout) -> let combined = - (DynObj.combine (layout |> Layout.getLayoutGrid) layoutGrid) :?> LayoutGrid + DynObj.combine (layout |> Layout.getLayoutGrid) layoutGrid |> unbox<LayoutGrid> layout |> Layout.setLayoutGrid combined) @@ -1070,7 +1056,7 @@ type Layout() = /// </summary> /// <param name="id">The target Legend id</param> static member tryGetLegendById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue<Legend>(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue<Legend>(StyleParam.SubPlotId.toString id)) /// <summary> /// Returns a sequence of key-value pairs of the layout's dynamic members that are valid legends (if the key matches and object can be cast to the correct type). @@ -1078,9 +1064,10 @@ type Layout() = /// <param name="layout">The layout to get the color axes from</param> static member getLegends (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidLegendId kv.Key then - match layout.TryGetTypedValue<Legend>(kv.Key) with + match layout.TryGetTypedPropertyValue<Legend>(kv.Key) with | Some legend -> Some (kv.Key, legend) | None -> None else None @@ -1099,12 +1086,11 @@ type Layout() = let legend' = match Layout.tryGetLegendById id layout with - | Some l -> (DynObj.combine l legend) :?> Legend + | Some l -> DynObj.combine l legend | None -> legend - legend' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) legend' + | _ -> failwith $"{StyleParam.SubPlotId.toString id} is an invalid subplot id for setting a legend on layout") @@ -1128,8 +1114,7 @@ type Layout() = match id with | StyleParam.SubPlotId.Legend _ -> - legend |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) legend | _ -> failwith diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs index e6874be03..395462965 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs @@ -11,23 +11,23 @@ type AspectRatio() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = AspectRatio() |> AspectRatio.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (aspectRatio: AspectRatio) -> - X |> DynObj.setValueOpt aspectRatio "x" - Y |> DynObj.setValueOpt aspectRatio "y" - Z |> DynObj.setValueOpt aspectRatio "z" - aspectRatio + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs index 2886dc85f..e7e9a7cc5 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs @@ -12,118 +12,116 @@ type CameraCenter() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = CameraCenter() |> CameraCenter.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (cameraCenter: CameraCenter) -> - - X |> DynObj.setValueOpt cameraCenter "x" - Y |> DynObj.setValueOpt cameraCenter "y" - Z |> DynObj.setValueOpt cameraCenter "z" - + cameraCenter + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z type CameraEye() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = CameraEye() |> CameraEye.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (cameraEye: CameraEye) -> - X |> DynObj.setValueOpt cameraEye "x" - Y |> DynObj.setValueOpt cameraEye "y" - Z |> DynObj.setValueOpt cameraEye "z" - cameraEye + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z type CameraUp() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = CameraUp() |> CameraUp.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (cameraUp: CameraUp) -> - X |> DynObj.setValueOpt cameraUp "x" - Y |> DynObj.setValueOpt cameraUp "y" - Z |> DynObj.setValueOpt cameraUp "z" - cameraUp + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + type CameraProjection() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?ProjectionType: StyleParam.CameraProjectionType) = + static member init(?ProjectionType: StyleParam.CameraProjectionType) = CameraProjection() |> CameraProjection.style (?ProjectionType = ProjectionType) - static member style([<Optional; DefaultParameterValue(null)>] ?ProjectionType: StyleParam.CameraProjectionType) = + static member style(?ProjectionType: StyleParam.CameraProjectionType) = fun (cameraProjection: CameraProjection) -> - ProjectionType |> DynObj.setValueOptBy cameraProjection "type" StyleParam.CameraProjectionType.convert + cameraProjection |> DynObj.withOptionalPropertyBy "type" ProjectionType StyleParam.CameraProjectionType.convert - cameraProjection + type Camera() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Center: CameraCenter, - [<Optional; DefaultParameterValue(null)>] ?Eye: CameraEye, - [<Optional; DefaultParameterValue(null)>] ?Projection: CameraProjection, - [<Optional; DefaultParameterValue(null)>] ?Up: CameraUp + ?Center: CameraCenter, + ?Eye: CameraEye, + ?Projection: CameraProjection, + ?Up: CameraUp ) = Camera() |> Camera.style (?Center = Center, ?Eye = Eye, ?Projection = Projection, ?Up = Up) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Center: CameraCenter, - [<Optional; DefaultParameterValue(null)>] ?Eye: CameraEye, - [<Optional; DefaultParameterValue(null)>] ?Projection: CameraProjection, - [<Optional; DefaultParameterValue(null)>] ?Up: CameraUp + ?Center: CameraCenter, + ?Eye: CameraEye, + ?Projection: CameraProjection, + ?Up: CameraUp ) = fun (camera: Camera) -> - Center |> DynObj.setValueOpt camera "center" - Eye |> DynObj.setValueOpt camera "eye" - Projection |> DynObj.setValueOpt camera "projection" - Up |> DynObj.setValueOpt camera "up" - camera + |> DynObj.withOptionalProperty "center" Center + |> DynObj.withOptionalProperty "eye" Eye + |> DynObj.withOptionalProperty "projection" Projection + |> DynObj.withOptionalProperty "up" Up + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs index 4b419598a..24f684612 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs @@ -27,18 +27,18 @@ type Scene() = /// <param name="ZAxis">Sets this scene's zaxis</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(null)>] ?AspectMode: StyleParam.AspectMode, - [<Optional; DefaultParameterValue(null)>] ?AspectRatio: AspectRatio, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?DragMode: StyleParam.DragMode, - [<Optional; DefaultParameterValue(null)>] ?HoverMode: StyleParam.HoverMode, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?XAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?YAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?ZAxis: LinearAxis + ?Annotations: seq<Annotation>, + ?AspectMode: StyleParam.AspectMode, + ?AspectRatio: AspectRatio, + ?BGColor: Color, + ?Camera: Camera, + ?Domain: Domain, + ?DragMode: StyleParam.DragMode, + ?HoverMode: StyleParam.HoverMode, + ?UIRevision: string, + ?XAxis: LinearAxis, + ?YAxis: LinearAxis, + ?ZAxis: LinearAxis ) = Scene() |> Scene.style ( @@ -73,42 +73,41 @@ type Scene() = /// <param name="ZAxis">Sets this scene's zaxis</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Annotations: seq<Annotation>, - [<Optional; DefaultParameterValue(null)>] ?AspectMode: StyleParam.AspectMode, - [<Optional; DefaultParameterValue(null)>] ?AspectRatio: AspectRatio, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Camera: Camera, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?DragMode: StyleParam.DragMode, - [<Optional; DefaultParameterValue(null)>] ?HoverMode: StyleParam.HoverMode, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?XAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?YAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?ZAxis: LinearAxis + ?Annotations: seq<Annotation>, + ?AspectMode: StyleParam.AspectMode, + ?AspectRatio: AspectRatio, + ?BGColor: Color, + ?Camera: Camera, + ?Domain: Domain, + ?DragMode: StyleParam.DragMode, + ?HoverMode: StyleParam.HoverMode, + ?UIRevision: string, + ?XAxis: LinearAxis, + ?YAxis: LinearAxis, + ?ZAxis: LinearAxis ) = - (fun (scene: Scene) -> - - Annotations |> DynObj.setValueOpt scene "annotations" - AspectMode |> DynObj.setValueOptBy scene "aspectmode" StyleParam.AspectMode.convert - AspectRatio |> DynObj.setValueOpt scene "aspectratio" - BGColor |> DynObj.setValueOpt scene "bgcolor" - Camera |> DynObj.setValueOpt scene "camera" - Domain |> DynObj.setValueOpt scene "domain" - DragMode |> DynObj.setValueOptBy scene "dragmode" StyleParam.DragMode.convert - HoverMode |> DynObj.setValueOptBy scene "hovermode" StyleParam.HoverMode.convert - UIRevision |> DynObj.setValueOpt scene "uirevision" - XAxis |> DynObj.setValueOpt scene "xaxis" - YAxis |> DynObj.setValueOpt scene "yaxis" - ZAxis |> DynObj.setValueOpt scene "zaxis" + fun (scene: Scene) -> - scene) + scene + |> DynObj.withOptionalProperty "annotations" Annotations + |> DynObj.withOptionalPropertyBy "aspectmode" AspectMode StyleParam.AspectMode.convert + |> DynObj.withOptionalProperty "aspectratio" AspectRatio + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "camera" Camera + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "dragmode" DragMode StyleParam.DragMode.convert + |> DynObj.withOptionalPropertyBy "hovermode" HoverMode StyleParam.HoverMode.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "xaxis" XAxis + |> DynObj.withOptionalProperty "yaxis" YAxis + |> DynObj.withOptionalProperty "zaxis" ZAxis /// <summary> /// Returns Some(dynamic member value) of the scene object's underlying DynamicObj when a dynamic member with the given name exists, and None otherwise. /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="scene">The scene to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (scene: Scene) = scene.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (scene: Scene) = scene.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns the x axis object of the given scene. @@ -125,7 +124,7 @@ type Scene() = /// <param name="xAxis">The new x axis object</param> static member setXAxis(xAxis: LinearAxis) = (fun (scene: Scene) -> - scene.SetValue("xaxis", xAxis) + scene.SetProperty("xaxis", xAxis) scene) /// <summary> @@ -143,7 +142,7 @@ type Scene() = /// <param name="yAxis">The new y axis object</param> static member setYAxis(yAxis: LinearAxis) = (fun (scene: Scene) -> - scene.SetValue("yaxis", yAxis) + scene.SetProperty("yaxis", yAxis) scene) /// <summary> @@ -161,5 +160,5 @@ type Scene() = /// <param name="zAxis">The new z axis object</param> static member setZAxis(zAxis: LinearAxis) = (fun (scene: Scene) -> - scene.SetValue("zaxis", zAxis) + scene.SetProperty("zaxis", zAxis) scene) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs index 0e8cc4e57..85691189d 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs @@ -10,19 +10,19 @@ type ActiveSelection() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = ActiveSelection() |> ActiveSelection.style (?FillColor = FillColor, ?Opacity = Opacity) static member style ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = (fun (activeSelection: ActiveSelection) -> - FillColor |> DynObj.setValueOpt activeSelection "fillcolor" - Opacity |> DynObj.setValueOpt activeSelection "opacity" - - activeSelection) + activeSelection + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "opacity" Opacity + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs index b5ab2f896..16f787fcb 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs @@ -10,19 +10,19 @@ type ActiveShape() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = ActiveShape() |> ActiveShape.style (?FillColor = FillColor, ?Opacity = Opacity) static member style ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = (fun (activeShape: ActiveShape) -> - FillColor |> DynObj.setValueOpt activeShape "fillcolor" - Opacity |> DynObj.setValueOpt activeShape "opacity" - - activeShape) + activeShape + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "opacity" Opacity + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs index c313350e3..ac231ce6e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs @@ -12,48 +12,48 @@ type Annotation() = /// Init Annotation type static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.AnnotationAlignment, - [<Optional; DefaultParameterValue(null)>] ?ArrowColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ArrowHead: StyleParam.ArrowHead, - [<Optional; DefaultParameterValue(null)>] ?ArrowSide: StyleParam.ArrowSide, - [<Optional; DefaultParameterValue(null)>] ?ArrowSize: float, - [<Optional; DefaultParameterValue(null)>] ?AX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AXRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AYRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderPad: int, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: int, - [<Optional; DefaultParameterValue(null)>] ?CaptureEvents: bool, - [<Optional; DefaultParameterValue(null)>] ?ClickToShow: StyleParam.ClickToShow, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?ShowArrow: bool, - [<Optional; DefaultParameterValue(null)>] ?StandOff: int, - [<Optional; DefaultParameterValue(null)>] ?StartArrowHead: int, - [<Optional; DefaultParameterValue(null)>] ?StartArrowSize: float, - [<Optional; DefaultParameterValue(null)>] ?StartStandOff: int, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: float, - [<Optional; DefaultParameterValue(null)>] ?VAlign: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: int, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XClick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XShift: int, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YClick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YShift: int + ?X: #IConvertible, + ?Y: #IConvertible, + ?Align: StyleParam.AnnotationAlignment, + ?ArrowColor: Color, + ?ArrowHead: StyleParam.ArrowHead, + ?ArrowSide: StyleParam.ArrowSide, + ?ArrowSize: float, + ?AX: #IConvertible, + ?AXRef: #IConvertible, + ?AY: #IConvertible, + ?AYRef: #IConvertible, + ?BGColor: Color, + ?BorderColor: Color, + ?BorderPad: int, + ?BorderWidth: int, + ?CaptureEvents: bool, + ?ClickToShow: StyleParam.ClickToShow, + ?Font: Font, + ?Height: int, + ?HoverLabel: Hoverlabel, + ?HoverText: string, + ?Name: string, + ?Opacity: float, + ?ShowArrow: bool, + ?StandOff: int, + ?StartArrowHead: int, + ?StartArrowSize: float, + ?StartStandOff: int, + ?TemplateItemName: string, + ?Text: string, + ?TextAngle: float, + ?VAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?Width: int, + ?XAnchor: StyleParam.XAnchorPosition, + ?XClick: #IConvertible, + ?XRef: #IConvertible, + ?XShift: int, + ?YAnchor: StyleParam.YAnchorPosition, + ?YClick: #IConvertible, + ?YRef: #IConvertible, + ?YShift: int ) = Annotation() |> Annotation.style ( @@ -103,92 +103,92 @@ type Annotation() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.AnnotationAlignment, - [<Optional; DefaultParameterValue(null)>] ?ArrowColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ArrowHead: StyleParam.ArrowHead, - [<Optional; DefaultParameterValue(null)>] ?ArrowSide: StyleParam.ArrowSide, - [<Optional; DefaultParameterValue(null)>] ?ArrowSize: float, - [<Optional; DefaultParameterValue(null)>] ?AX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AXRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AYRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderPad: int, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: int, - [<Optional; DefaultParameterValue(null)>] ?CaptureEvents: bool, - [<Optional; DefaultParameterValue(null)>] ?ClickToShow: StyleParam.ClickToShow, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?ShowArrow: bool, - [<Optional; DefaultParameterValue(null)>] ?StandOff: int, - [<Optional; DefaultParameterValue(null)>] ?StartArrowHead: int, - [<Optional; DefaultParameterValue(null)>] ?StartArrowSize: float, - [<Optional; DefaultParameterValue(null)>] ?StartStandOff: int, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: float, - [<Optional; DefaultParameterValue(null)>] ?VAlign: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: int, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XClick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XShift: int, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YClick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YRef: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YShift: int + ?X: #IConvertible, + ?Y: #IConvertible, + ?Align: StyleParam.AnnotationAlignment, + ?ArrowColor: Color, + ?ArrowHead: StyleParam.ArrowHead, + ?ArrowSide: StyleParam.ArrowSide, + ?ArrowSize: float, + ?AX: #IConvertible, + ?AXRef: #IConvertible, + ?AY: #IConvertible, + ?AYRef: #IConvertible, + ?BGColor: Color, + ?BorderColor: Color, + ?BorderPad: int, + ?BorderWidth: int, + ?CaptureEvents: bool, + ?ClickToShow: StyleParam.ClickToShow, + ?Font: Font, + ?Height: int, + ?HoverLabel: Hoverlabel, + ?HoverText: string, + ?Name: string, + ?Opacity: float, + ?ShowArrow: bool, + ?StandOff: int, + ?StartArrowHead: int, + ?StartArrowSize: float, + ?StartStandOff: int, + ?TemplateItemName: string, + ?Text: string, + ?TextAngle: float, + ?VAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?Width: int, + ?XAnchor: StyleParam.XAnchorPosition, + ?XClick: #IConvertible, + ?XRef: #IConvertible, + ?XShift: int, + ?YAnchor: StyleParam.YAnchorPosition, + ?YClick: #IConvertible, + ?YRef: #IConvertible, + ?YShift: int ) = (fun (ann: Annotation) -> - X |> DynObj.setValueOpt ann "x" - Y |> DynObj.setValueOpt ann "y" - Align |> DynObj.setValueOptBy ann "align" StyleParam.AnnotationAlignment.convert - ArrowColor |> DynObj.setValueOpt ann "arrowcolor" - ArrowHead |> DynObj.setValueOptBy ann "arrowhead" StyleParam.ArrowHead.convert - ArrowSide |> DynObj.setValueOptBy ann "arrowside" StyleParam.ArrowSide.convert - ArrowSize |> DynObj.setValueOpt ann "arrowsize" - AX |> DynObj.setValueOpt ann "ax" - AXRef |> DynObj.setValueOpt ann "axref" - AY |> DynObj.setValueOpt ann "ay" - AYRef |> DynObj.setValueOpt ann "ayref" - BGColor |> DynObj.setValueOpt ann "bgcolor" - BorderColor |> DynObj.setValueOpt ann "bordercolor" - BorderPad |> DynObj.setValueOpt ann "borderpad" - BorderWidth |> DynObj.setValueOpt ann "borderwidth" - CaptureEvents |> DynObj.setValueOpt ann "captureevents" - ClickToShow |> DynObj.setValueOptBy ann "clicktoshow" StyleParam.ClickToShow.convert - Font |> DynObj.setValueOpt ann "font" - Height |> DynObj.setValueOpt ann "height" - HoverLabel |> DynObj.setValueOpt ann "hoverlabel" - HoverText |> DynObj.setValueOpt ann "hovertext" - Name |> DynObj.setValueOpt ann "name" - Opacity |> DynObj.setValueOpt ann "opacity" - ShowArrow |> DynObj.setValueOpt ann "showarrow" - StandOff |> DynObj.setValueOpt ann "standoff" - StartArrowHead |> DynObj.setValueOpt ann "startarrowhead" - StartArrowSize |> DynObj.setValueOpt ann "startarrowsize" - StartStandOff |> DynObj.setValueOpt ann "startstandoff" - TemplateItemName |> DynObj.setValueOpt ann "templateitemname" - Text |> DynObj.setValueOpt ann "text" - TextAngle |> DynObj.setValueOpt ann "textangle" - VAlign |> DynObj.setValueOptBy ann "valign" StyleParam.VerticalAlign.convert - Visible |> DynObj.setValueOpt ann "visible" - Width |> DynObj.setValueOpt ann "width" - XAnchor |> DynObj.setValueOptBy ann "xanchor" StyleParam.XAnchorPosition.convert - XClick |> DynObj.setValueOpt ann "xclick" - XRef |> DynObj.setValueOpt ann "xref" - XShift |> DynObj.setValueOpt ann "xshift" - YAnchor |> DynObj.setValueOptBy ann "yanchor" StyleParam.YAnchorPosition.convert - YClick |> DynObj.setValueOpt ann "yclick" - YRef |> DynObj.setValueOpt ann "yref" - YShift |> DynObj.setValueOpt ann "yshift" - - ann) + ann + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "align" Align StyleParam.AnnotationAlignment.convert + |> DynObj.withOptionalProperty "arrowcolor" ArrowColor + |> DynObj.withOptionalPropertyBy "arrowhead" ArrowHead StyleParam.ArrowHead.convert + |> DynObj.withOptionalPropertyBy "arrowside" ArrowSide StyleParam.ArrowSide.convert + |> DynObj.withOptionalProperty "arrowsize" ArrowSize + |> DynObj.withOptionalProperty "ax" AX + |> DynObj.withOptionalProperty "axref" AXRef + |> DynObj.withOptionalProperty "ay" AY + |> DynObj.withOptionalProperty "ayref" AYRef + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderpad" BorderPad + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "captureevents" CaptureEvents + |> DynObj.withOptionalPropertyBy "clicktoshow" ClickToShow StyleParam.ClickToShow.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hovertext" HoverText + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "showarrow" ShowArrow + |> DynObj.withOptionalProperty "standoff" StandOff + |> DynObj.withOptionalProperty "startarrowhead" StartArrowHead + |> DynObj.withOptionalProperty "startarrowsize" StartArrowSize + |> DynObj.withOptionalProperty "startstandoff" StartStandOff + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalPropertyBy "valign" VAlign StyleParam.VerticalAlign.convert + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xclick" XClick + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "xshift" XShift + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yclick" YClick + |> DynObj.withOptionalProperty "yref" YRef + |> DynObj.withOptionalProperty "yshift" YShift + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs index b0e04223c..a352af6ee 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs @@ -11,13 +11,13 @@ type Button() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Step: StyleParam.TimeStep, - [<Optional; DefaultParameterValue(null)>] ?StepMode: StyleParam.TimeStepMode, - [<Optional; DefaultParameterValue(null)>] ?Count: int, - [<Optional; DefaultParameterValue(null)>] ?Label: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?Visible: bool, + ?Step: StyleParam.TimeStep, + ?StepMode: StyleParam.TimeStepMode, + ?Count: int, + ?Label: string, + ?Name: string, + ?TemplateItemName: string ) = Button() |> Button.style ( @@ -32,22 +32,22 @@ type Button() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Step: StyleParam.TimeStep, - [<Optional; DefaultParameterValue(null)>] ?StepMode: StyleParam.TimeStepMode, - [<Optional; DefaultParameterValue(null)>] ?Count: int, - [<Optional; DefaultParameterValue(null)>] ?Label: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?Visible: bool, + ?Step: StyleParam.TimeStep, + ?StepMode: StyleParam.TimeStepMode, + ?Count: int, + ?Label: string, + ?Name: string, + ?TemplateItemName: string ) = (fun (button: Button) -> - Visible |> DynObj.setValueOpt button "visible" - Step |> DynObj.setValueOptBy button "step" StyleParam.TimeStep.convert - StepMode |> DynObj.setValueOptBy button "stepmode" StyleParam.TimeStepMode.convert - Count |> DynObj.setValueOpt button "count" - Label |> DynObj.setValueOpt button "label" - Name |> DynObj.setValueOpt button "name" - TemplateItemName |> DynObj.setValueOpt button "templateitemname" - - button) + button + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "step" Step StyleParam.TimeStep.convert + |> DynObj.withOptionalPropertyBy "stepmode" StepMode StyleParam.TimeStepMode.convert + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs index 97f13a654..e0663c22e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs @@ -22,15 +22,15 @@ type ColorAxis() = /// <param name="ReverseScale">Determines whether or not a colorbar is displayed for this trace.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool + ?AutoColorScale: bool, + ?CAuto: float, + ?CMin: float, + ?CMid: float, + ?CMax: float, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool ) = ColorAxis() @@ -60,26 +60,26 @@ type ColorAxis() = /// <param name="ReverseScale">Determines whether or not a colorbar is displayed for this trace.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool + ?AutoColorScale: bool, + ?CAuto: float, + ?CMin: float, + ?CMid: float, + ?CMax: float, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool ) = fun (ca: ColorAxis) -> - AutoColorScale |> DynObj.setValueOpt ca "autocolorscale" - CAuto |> DynObj.setValueOpt ca "cauto" - CMin |> DynObj.setValueOpt ca "cmin" - CMid |> DynObj.setValueOpt ca "cmid" - CMax |> DynObj.setValueOpt ca "cmax" - ColorBar |> DynObj.setValueOpt ca "colorbar" - ColorScale |> DynObj.setValueOptBy ca "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt ca "showscale" - ReverseScale |> DynObj.setValueOpt ca "reversescale" - ca + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs index 797fbbc93..1bc4ee028 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs @@ -10,9 +10,9 @@ type DefaultColorScales() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Diverging: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?Sequential: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?SequentialMinus: StyleParam.Colorscale + ?Diverging: StyleParam.Colorscale, + ?Sequential: StyleParam.Colorscale, + ?SequentialMinus: StyleParam.Colorscale ) = DefaultColorScales() |> DefaultColorScales.style ( @@ -23,14 +23,14 @@ type DefaultColorScales() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Diverging: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?Sequential: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?SequentialMinus: StyleParam.Colorscale + ?Diverging: StyleParam.Colorscale, + ?Sequential: StyleParam.Colorscale, + ?SequentialMinus: StyleParam.Colorscale ) = (fun (defaultColorScales: DefaultColorScales) -> - Diverging |> DynObj.setValueOptBy defaultColorScales "diverging" StyleParam.Colorscale.convert - Sequential |> DynObj.setValueOptBy defaultColorScales "sequential" StyleParam.Colorscale.convert - SequentialMinus |> DynObj.setValueOptBy defaultColorScales "sequentialminus" StyleParam.Colorscale.convert - - defaultColorScales) + defaultColorScales + |> DynObj.withOptionalPropertyBy "diverging" Diverging StyleParam.Colorscale.convert + |> DynObj.withOptionalPropertyBy "sequential" Sequential StyleParam.Colorscale.convert + |> DynObj.withOptionalPropertyBy "sequentialminus" SequentialMinus StyleParam.Colorscale.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs index 7c6560422..6eb5a53a2 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs @@ -12,10 +12,10 @@ type Domain() = /// Initialized Dimensions object static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Y: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Row: int, - [<Optional; DefaultParameterValue(null)>] ?Column: int + ?X: StyleParam.Range, + ?Y: StyleParam.Range, + ?Row: int, + ?Column: int ) = Domain() |> Domain.style (?X = X, ?Y = Y, ?Row = Row, ?Column = Column) @@ -23,16 +23,16 @@ type Domain() = // Applies the styles to Dimensions() static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Y: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Row: int, - [<Optional; DefaultParameterValue(null)>] ?Column: int + ?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) + dom + |> DynObj.withOptionalPropertyBy "x" X StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "y" Y StyleParam.Range.convert + |> DynObj.withOptionalProperty "row" Row + |> DynObj.withOptionalProperty "column" Column + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs index bd8782df4..47af74d08 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs @@ -20,12 +20,12 @@ type Hoverlabel() = /// <param name="Namelength">Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.Align, - [<Optional; DefaultParameterValue(null)>] ?BgColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?GroupTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Namelength: int + ?Align: StyleParam.Align, + ?BgColor: Color, + ?BorderColor: Color, + ?Font: Font, + ?GroupTitleFont: Font, + ?Namelength: int ) = Hoverlabel() |> Hoverlabel.style ( @@ -49,19 +49,20 @@ type Hoverlabel() = /// <param name="Namelength">Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?BgColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?GroupTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.Align, - [<Optional; DefaultParameterValue(null)>] ?Namelength: int + ?BgColor: Color, + ?BorderColor: Color, + ?Font: Font, + ?GroupTitleFont: Font, + ?Align: StyleParam.Align, + ?Namelength: int ) = (fun (label: Hoverlabel) -> - BgColor |> DynObj.setValueOpt label "bgcolor" - BorderColor |> DynObj.setValueOpt label "bordercolor" - Font |> DynObj.setValueOpt label "font" - GroupTitleFont |> DynObj.setValueOpt label "grouptitlefont" - Align |> DynObj.setValueOptBy label "align" StyleParam.Align.convert - Namelength |> DynObj.setValueOpt label "namelength" - label) + label + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "grouptitlefont" GroupTitleFont + |> DynObj.withOptionalPropertyBy "align" Align StyleParam.Align.convert + |> DynObj.withOptionalProperty "namelength" Namelength + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs index a6ceb2841..b1a6c5c3c 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs @@ -25,18 +25,18 @@ type LayoutGrid() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Rows: int, - [<Optional; DefaultParameterValue(null)>] ?Columns: int, - [<Optional; DefaultParameterValue(null)>] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [<Optional; DefaultParameterValue(null)>] ?XAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?YAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?RowOrder: StyleParam.LayoutGridRowOrder, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.LayoutGridPattern, - [<Optional; DefaultParameterValue(null)>] ?XGap: float, - [<Optional; DefaultParameterValue(null)>] ?YGap: float, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?XSide: StyleParam.LayoutGridXSide, - [<Optional; DefaultParameterValue(null)>] ?YSide: StyleParam.LayoutGridYSide + ?Rows: int, + ?Columns: int, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = LayoutGrid() |> LayoutGrid.style ( @@ -71,39 +71,36 @@ type LayoutGrid() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Rows: int, - [<Optional; DefaultParameterValue(null)>] ?Columns: int, - [<Optional; DefaultParameterValue(null)>] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [<Optional; DefaultParameterValue(null)>] ?XAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?YAxes: StyleParam.LinearAxisId[], - [<Optional; DefaultParameterValue(null)>] ?RowOrder: StyleParam.LayoutGridRowOrder, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.LayoutGridPattern, - [<Optional; DefaultParameterValue(null)>] ?XGap: float, - [<Optional; DefaultParameterValue(null)>] ?YGap: float, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?XSide: StyleParam.LayoutGridXSide, - [<Optional; DefaultParameterValue(null)>] ?YSide: StyleParam.LayoutGridYSide + ?Rows: int, + ?Columns: int, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = (fun (layoutGrid: LayoutGrid) -> - SubPlots - |> DynObj.setValueOptBy - layoutGrid - "subplots" - (Array.map ( + layoutGrid + |> DynObj.withOptionalPropertyBy "subplots" SubPlots ( + Array.map ( Array.map (fun (x, y) -> $"{StyleParam.LinearAxisId.toString x}{StyleParam.LinearAxisId.toString y}") - )) - - XAxes |> DynObj.setValueOptBy layoutGrid "xaxes" (Array.map StyleParam.LinearAxisId.toString) - YAxes |> DynObj.setValueOptBy layoutGrid "yaxes" (Array.map StyleParam.LinearAxisId.toString) - Rows |> DynObj.setValueOpt layoutGrid "rows" - Columns |> DynObj.setValueOpt layoutGrid "columns" - RowOrder |> DynObj.setValueOptBy layoutGrid "roworder" StyleParam.LayoutGridRowOrder.toString - Pattern |> DynObj.setValueOptBy layoutGrid "pattern" StyleParam.LayoutGridPattern.toString - XGap |> DynObj.setValueOpt layoutGrid "xgap" - YGap |> DynObj.setValueOpt layoutGrid "ygap" - Domain |> DynObj.setValueOpt layoutGrid "domain" - XSide |> DynObj.setValueOptBy layoutGrid "xside" StyleParam.LayoutGridXSide.toString - YSide |> DynObj.setValueOptBy layoutGrid "yside" StyleParam.LayoutGridYSide.toString - - layoutGrid) + ) + ) + |> DynObj.withOptionalPropertyBy "xaxes" XAxes (Array.map StyleParam.LinearAxisId.toString) + |> DynObj.withOptionalPropertyBy "yaxes" YAxes (Array.map StyleParam.LinearAxisId.toString) + |> DynObj.withOptionalProperty "rows" Rows + |> DynObj.withOptionalProperty "columns" Columns + |> DynObj.withOptionalPropertyBy "roworder" RowOrder StyleParam.LayoutGridRowOrder.toString + |> DynObj.withOptionalPropertyBy "pattern" Pattern StyleParam.LayoutGridPattern.toString + |> DynObj.withOptionalProperty "xgap" XGap + |> DynObj.withOptionalProperty "ygap" YGap + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "xside" XSide StyleParam.LayoutGridXSide.toString + |> DynObj.withOptionalPropertyBy "yside" YSide StyleParam.LayoutGridYSide.toString + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs index b3cd0f92a..a8b216ef9 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs @@ -11,21 +11,21 @@ type LayoutImage() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?SizeX: int, - [<Optional; DefaultParameterValue(null)>] ?SizeY: int, - [<Optional; DefaultParameterValue(null)>] ?Sizing: StyleParam.LayoutImageSizing, - [<Optional; DefaultParameterValue(null)>] ?Source: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemname: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YRef: string + ?Layer: StyleParam.Layer, + ?Name: string, + ?Opacity: float, + ?SizeX: int, + ?SizeY: int, + ?Sizing: StyleParam.LayoutImageSizing, + ?Source: string, + ?TemplateItemname: string, + ?Visible: bool, + ?X: #IConvertible, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: #IConvertible, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = LayoutImage() |> LayoutImage.style ( @@ -48,38 +48,37 @@ type LayoutImage() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?SizeX: int, - [<Optional; DefaultParameterValue(null)>] ?SizeY: int, - [<Optional; DefaultParameterValue(null)>] ?Sizing: StyleParam.LayoutImageSizing, - [<Optional; DefaultParameterValue(null)>] ?Source: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemname: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YRef: string + ?Layer: StyleParam.Layer, + ?Name: string, + ?Opacity: float, + ?SizeX: int, + ?SizeY: int, + ?Sizing: StyleParam.LayoutImageSizing, + ?Source: string, + ?TemplateItemname: string, + ?Visible: bool, + ?X: #IConvertible, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: #IConvertible, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = (fun (layoutImage: LayoutImage) -> - - Layer |> DynObj.setValueOptBy layoutImage "layer" StyleParam.Layer.convert - Name |> DynObj.setValueOpt layoutImage "name" - Opacity |> DynObj.setValueOpt layoutImage "opacity" - SizeX |> DynObj.setValueOpt layoutImage "sizex" - SizeY |> DynObj.setValueOpt layoutImage "sizey" - Sizing |> DynObj.setValueOptBy layoutImage "sizing" StyleParam.LayoutImageSizing.convert - Source |> DynObj.setValueOpt layoutImage "source" - TemplateItemname |> DynObj.setValueOpt layoutImage "templateitemname" - Visible |> DynObj.setValueOpt layoutImage "visible" - X |> DynObj.setValueOpt layoutImage "x" - XAnchor |> DynObj.setValueOptBy layoutImage "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setValueOpt layoutImage "xref" - Y |> DynObj.setValueOpt layoutImage "y" - YAnchor |> DynObj.setValueOptBy layoutImage "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setValueOpt layoutImage "yref" - - layoutImage) + layoutImage + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "sizex" SizeX + |> DynObj.withOptionalProperty "sizey" SizeY + |> DynObj.withOptionalPropertyBy "sizing" Sizing StyleParam.LayoutImageSizing.convert + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalProperty "templateitemname" TemplateItemname + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yref" YRef + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs index 032412219..eeb26a6ec 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs @@ -39,31 +39,31 @@ type Legend() = /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?EntryWidth: float, - [<Optional; DefaultParameterValue(null)>] ?EntryWidthMode: StyleParam.EntryWidthMode, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?GroupClick: StyleParam.TraceGroupClickOptions, - [<Optional; DefaultParameterValue(null)>] ?GroupTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ItemClick: StyleParam.TraceItemClickOptions, - [<Optional; DefaultParameterValue(null)>] ?ItemDoubleClick: StyleParam.TraceItemClickOptions, - [<Optional; DefaultParameterValue(null)>] ?ItemSizing: StyleParam.TraceItemSizing, - [<Optional; DefaultParameterValue(null)>] ?ItemWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?TraceGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?TraceOrder: StyleParam.TraceOrder, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?VerticalAlign: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?EntryWidth: float, + ?EntryWidthMode: StyleParam.EntryWidthMode, + ?Font: Font, + ?GroupClick: StyleParam.TraceGroupClickOptions, + ?GroupTitleFont: Font, + ?ItemClick: StyleParam.TraceItemClickOptions, + ?ItemDoubleClick: StyleParam.TraceItemClickOptions, + ?ItemSizing: StyleParam.TraceItemSizing, + ?ItemWidth: int, + ?Orientation: StyleParam.Orientation, + ?Title: Title, + ?TraceGroupGap: float, + ?TraceOrder: StyleParam.TraceOrder, + ?UIRevision: string, + ?VerticalAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = Legend() |> Legend.style ( @@ -124,59 +124,58 @@ type Legend() = /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?EntryWidth: float, - [<Optional; DefaultParameterValue(null)>] ?EntryWidthMode: StyleParam.EntryWidthMode, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?GroupClick: StyleParam.TraceGroupClickOptions, - [<Optional; DefaultParameterValue(null)>] ?GroupTitleFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ItemClick: StyleParam.TraceItemClickOptions, - [<Optional; DefaultParameterValue(null)>] ?ItemDoubleClick: StyleParam.TraceItemClickOptions, - [<Optional; DefaultParameterValue(null)>] ?ItemSizing: StyleParam.TraceItemSizing, - [<Optional; DefaultParameterValue(null)>] ?ItemWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?TraceGroupGap: float, - [<Optional; DefaultParameterValue(null)>] ?TraceOrder: StyleParam.TraceOrder, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?VerticalAlign: StyleParam.VerticalAlign, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?XRef: string, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?EntryWidth: float, + ?EntryWidthMode: StyleParam.EntryWidthMode, + ?Font: Font, + ?GroupClick: StyleParam.TraceGroupClickOptions, + ?GroupTitleFont: Font, + ?ItemClick: StyleParam.TraceItemClickOptions, + ?ItemDoubleClick: StyleParam.TraceItemClickOptions, + ?ItemSizing: StyleParam.TraceItemSizing, + ?ItemWidth: int, + ?Orientation: StyleParam.Orientation, + ?Title: Title, + ?TraceGroupGap: float, + ?TraceOrder: StyleParam.TraceOrder, + ?UIRevision: string, + ?VerticalAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = (fun (legend: Legend) -> - BGColor |> DynObj.setValueOpt legend "bgcolor" - BorderColor |> DynObj.setValueOpt legend "bordercolor" - BorderWidth |> DynObj.setValueOpt legend "borderwidth" - EntryWidth |> DynObj.setValueOpt legend "entrywidth" - EntryWidthMode |> DynObj.setValueOptBy legend "entrywidthmode" StyleParam.EntryWidthMode.convert - Font |> DynObj.setValueOpt legend "font" - GroupClick |> DynObj.setValueOptBy legend "groupclick" StyleParam.TraceGroupClickOptions.convert - GroupTitleFont |> DynObj.setValueOpt legend "grouptitlefont" - ItemClick |> DynObj.setValueOptBy legend "itemclick" StyleParam.TraceItemClickOptions.convert - ItemDoubleClick |> DynObj.setValueOptBy legend "itemdoubleclick" StyleParam.TraceItemClickOptions.convert - ItemSizing |> DynObj.setValueOptBy legend "itemsizing" StyleParam.TraceItemSizing.convert - ItemWidth |> DynObj.setValueOpt legend "itemwidth" - Orientation |> DynObj.setValueOptBy legend "orientation" StyleParam.Orientation.convert - Title |> DynObj.setValueOpt legend "title" - TraceGroupGap |> DynObj.setValueOpt legend "tracegroupgap" - TraceOrder |> DynObj.setValueOptBy legend "traceorder" StyleParam.TraceOrder.convert - UIRevision |> DynObj.setValueOpt legend "uirevision" - VerticalAlign |> DynObj.setValueOptBy legend "valign" StyleParam.VerticalAlign.convert - Visible |> DynObj.setValueOpt legend "visible" - X |> DynObj.setValueOpt legend "x" - XAnchor |> DynObj.setValueOptBy legend "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setValueOpt legend "xref" - Y |> DynObj.setValueOpt legend "y" - YAnchor |> DynObj.setValueOptBy legend "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setValueOpt legend "yref" - - - - legend) + + legend + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "entrywidth" EntryWidth + |> DynObj.withOptionalPropertyBy "entrywidthmode" EntryWidthMode StyleParam.EntryWidthMode.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalPropertyBy "groupclick" GroupClick StyleParam.TraceGroupClickOptions.convert + |> DynObj.withOptionalProperty "grouptitlefont" GroupTitleFont + |> DynObj.withOptionalPropertyBy "itemclick" ItemClick StyleParam.TraceItemClickOptions.convert + |> DynObj.withOptionalPropertyBy "itemdoubleclick" ItemDoubleClick StyleParam.TraceItemClickOptions.convert + |> DynObj.withOptionalPropertyBy "itemsizing" ItemSizing StyleParam.TraceItemSizing.convert + |> DynObj.withOptionalProperty "itemwidth" ItemWidth + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "tracegroupgap" TraceGroupGap + |> DynObj.withOptionalPropertyBy "traceorder" TraceOrder StyleParam.TraceOrder.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalPropertyBy "valign" VerticalAlign StyleParam.VerticalAlign.convert + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yref" YRef + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs index 303ef4035..1caa2f929 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs @@ -101,93 +101,93 @@ type LinearAxis() = /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: StyleParam.AutoRange, - [<Optional; DefaultParameterValue(null)>] ?AutoRangeOptions: AutoRangeOptions, - [<Optional; DefaultParameterValue(null)>] ?AutoShift: bool, - [<Optional; DefaultParameterValue(null)>] ?RangeMode: StyleParam.RangeMode, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?FixedRange: bool, - [<Optional; DefaultParameterValue(null)>] ?ScaleAnchor: StyleParam.ScaleAnchor, - [<Optional; DefaultParameterValue(null)>] ?ScaleRatio: float, - [<Optional; DefaultParameterValue(null)>] ?Constrain: StyleParam.AxisConstraint, - [<Optional; DefaultParameterValue(null)>] ?ConstrainToward: StyleParam.AxisConstraintDirection, - [<Optional; DefaultParameterValue(null)>] ?Matches: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Rangebreaks: seq<Rangebreak>, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TicksOn: StyleParam.CategoryTickAnchor, - [<Optional; DefaultParameterValue(null)>] ?TickLabelMode: StyleParam.TickLabelMode, - [<Optional; DefaultParameterValue(null)>] ?TickLabelPosition: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [<Optional; DefaultParameterValue(null)>] ?Mirror: StyleParam.Mirror, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?AutoMargin: StyleParam.TickAutoMargin, - [<Optional; DefaultParameterValue(null)>] ?ShowSpikes: bool, - [<Optional; DefaultParameterValue(null)>] ?SpikeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SpikeThickness: int, - [<Optional; DefaultParameterValue(null)>] ?SpikeDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?SpikeMode: StyleParam.SpikeMode, - [<Optional; DefaultParameterValue(null)>] ?SpikeSnap: StyleParam.SpikeSnap, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?Minor: Minor, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?InsideRange: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Shift: int, - [<Optional; DefaultParameterValue(null)>] ?ShowDividers: bool, - [<Optional; DefaultParameterValue(null)>] ?DividerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?DividerWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Anchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?Domain: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Position: float, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?RangeSlider: RangeSlider, - [<Optional; DefaultParameterValue(null)>] ?RangeSelector: RangeSelector, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?BackgroundColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowBackground: bool + ?Visible: bool, + ?Color: Color, + ?Title: Title, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoRangeOptions: AutoRangeOptions, + ?AutoShift: bool, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?ScaleAnchor: StyleParam.ScaleAnchor, + ?ScaleRatio: float, + ?Constrain: StyleParam.AxisConstraint, + ?ConstrainToward: StyleParam.AxisConstraintDirection, + ?Matches: StyleParam.LinearAxisId, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible, + ?Rangebreaks: seq<Rangebreak>, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TicksOn: StyleParam.CategoryTickAnchor, + ?TickLabelMode: StyleParam.TickLabelMode, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?Mirror: StyleParam.Mirror, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?AutoMargin: StyleParam.TickAutoMargin, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?SpikeDash: StyleParam.DrawingStyle, + ?SpikeMode: StyleParam.SpikeMode, + ?SpikeSnap: StyleParam.SpikeSnap, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?Minor: Minor, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?HoverFormat: string, + ?InsideRange: StyleParam.Range, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?ZeroLineWidth: float, + ?Shift: int, + ?ShowDividers: bool, + ?DividerColor: Color, + ?DividerWidth: int, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?Domain: StyleParam.Range, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?UIRevision: #IConvertible, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?Calendar: StyleParam.Calendar, + ?BackgroundColor: Color, + ?ShowBackground: bool ) = LinearAxis() |> LinearAxis.style ( @@ -365,84 +365,84 @@ type LinearAxis() = static member initCategorical ( categoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: StyleParam.AutoRange, - [<Optional; DefaultParameterValue(null)>] ?AutoShift: bool, - [<Optional; DefaultParameterValue(null)>] ?RangeMode: StyleParam.RangeMode, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?FixedRange: bool, - [<Optional; DefaultParameterValue(null)>] ?ScaleAnchor: StyleParam.ScaleAnchor, - [<Optional; DefaultParameterValue(null)>] ?ScaleRatio: float, - [<Optional; DefaultParameterValue(null)>] ?Constrain: StyleParam.AxisConstraint, - [<Optional; DefaultParameterValue(null)>] ?ConstrainToward: StyleParam.AxisConstraintDirection, - [<Optional; DefaultParameterValue(null)>] ?Matches: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Rangebreaks: seq<Rangebreak>, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TicksOn: StyleParam.CategoryTickAnchor, - [<Optional; DefaultParameterValue(null)>] ?TickLabelMode: StyleParam.TickLabelMode, - [<Optional; DefaultParameterValue(null)>] ?TickLabelPosition: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [<Optional; DefaultParameterValue(null)>] ?Mirror: StyleParam.Mirror, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?AutoMargin: StyleParam.TickAutoMargin, - [<Optional; DefaultParameterValue(null)>] ?ShowSpikes: bool, - [<Optional; DefaultParameterValue(null)>] ?SpikeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SpikeThickness: int, - [<Optional; DefaultParameterValue(null)>] ?SpikeDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?SpikeMode: StyleParam.SpikeMode, - [<Optional; DefaultParameterValue(null)>] ?SpikeSnap: StyleParam.SpikeSnap, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?Minor: Minor, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Shift: int, - [<Optional; DefaultParameterValue(null)>] ?ShowDividers: bool, - [<Optional; DefaultParameterValue(null)>] ?DividerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?DividerWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Anchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?Domain: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Position: float, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?RangeSlider: RangeSlider, - [<Optional; DefaultParameterValue(null)>] ?RangeSelector: RangeSelector, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar + ?Visible: bool, + ?Color: Color, + ?Title: Title, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoShift: bool, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?ScaleAnchor: StyleParam.ScaleAnchor, + ?ScaleRatio: float, + ?Constrain: StyleParam.AxisConstraint, + ?ConstrainToward: StyleParam.AxisConstraintDirection, + ?Matches: StyleParam.LinearAxisId, + ?Rangebreaks: seq<Rangebreak>, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TicksOn: StyleParam.CategoryTickAnchor, + ?TickLabelMode: StyleParam.TickLabelMode, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?Mirror: StyleParam.Mirror, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?AutoMargin: StyleParam.TickAutoMargin, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?SpikeDash: StyleParam.DrawingStyle, + ?SpikeMode: StyleParam.SpikeMode, + ?SpikeSnap: StyleParam.SpikeSnap, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?Minor: Minor, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?HoverFormat: string, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?ZeroLineWidth: float, + ?Shift: int, + ?ShowDividers: bool, + ?DividerColor: Color, + ?DividerWidth: int, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?Domain: StyleParam.Range, + ?Position: float, + ?CategoryArray: seq<#IConvertible>, + ?UIRevision: #IConvertible, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?Calendar: StyleParam.Calendar ) = LinearAxis() |> LinearAxis.style ( @@ -588,61 +588,61 @@ type LinearAxis() = /// <param name="StartLineWidth">Sets the width (in px) of the start line.</param> static member initCarpet ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: StyleParam.AutoRange, - [<Optional; DefaultParameterValue(null)>] ?RangeMode: StyleParam.RangeMode, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?FixedRange: bool, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: float, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ArrayDTick: int, - [<Optional; DefaultParameterValue(null)>] ?ArrayTick0: int, - [<Optional; DefaultParameterValue(null)>] ?CheaterType: StyleParam.CheaterType, - [<Optional; DefaultParameterValue(null)>] ?EndLine: bool, - [<Optional; DefaultParameterValue(null)>] ?EndLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?EndLineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?LabelPadding: int, - [<Optional; DefaultParameterValue(null)>] ?LabelPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?LabelSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?MinorGridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MinorGridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?MinorGridCount: int, - [<Optional; DefaultParameterValue(null)>] ?MinorGridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?StartLine: bool, - [<Optional; DefaultParameterValue(null)>] ?StartLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?StartLineWidth: int + ?Color: Color, + ?Title: Title, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?ShowTickLabels: bool, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?ArrayDTick: int, + ?ArrayTick0: int, + ?CheaterType: StyleParam.CheaterType, + ?EndLine: bool, + ?EndLineColor: Color, + ?EndLineWidth: int, + ?LabelAlias: DynamicObj, + ?LabelPadding: int, + ?LabelPrefix: string, + ?LabelSuffix: string, + ?MinorGridColor: Color, + ?MinorGridDash: StyleParam.DrawingStyle, + ?MinorGridCount: int, + ?MinorGridWidth: int, + ?Smoothing: float, + ?StartLine: bool, + ?StartLineColor: Color, + ?StartLineWidth: int ) = LinearAxis() |> LinearAxis.style ( @@ -734,32 +734,32 @@ type LinearAxis() = /// <param name="Visible">A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false</param> static member initIndicatorGauge ( - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?DTick: #IConvertible, + ?LabelAlias: DynamicObj, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?NTicks: int, + ?Range: StyleParam.Range, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Tick0: #IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?TickLen: int, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int, + ?Visible: bool ) = LinearAxis() |> LinearAxis.style ( @@ -900,217 +900,216 @@ type LinearAxis() = /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: StyleParam.AutoRange, - [<Optional; DefaultParameterValue(null)>] ?AutoRangeOptions: AutoRangeOptions, - [<Optional; DefaultParameterValue(null)>] ?AutoShift: bool, - [<Optional; DefaultParameterValue(null)>] ?RangeMode: StyleParam.RangeMode, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?FixedRange: bool, - [<Optional; DefaultParameterValue(null)>] ?ScaleAnchor: StyleParam.ScaleAnchor, - [<Optional; DefaultParameterValue(null)>] ?ScaleRatio: float, - [<Optional; DefaultParameterValue(null)>] ?Constrain: StyleParam.AxisConstraint, - [<Optional; DefaultParameterValue(null)>] ?ConstrainToward: StyleParam.AxisConstraintDirection, - [<Optional; DefaultParameterValue(null)>] ?Matches: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Rangebreaks: seq<Rangebreak>, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TicksOn: StyleParam.CategoryTickAnchor, - [<Optional; DefaultParameterValue(null)>] ?TickLabelMode: StyleParam.TickLabelMode, - [<Optional; DefaultParameterValue(null)>] ?TickLabelPosition: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [<Optional; DefaultParameterValue(null)>] ?Mirror: StyleParam.Mirror, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?AutoMargin: StyleParam.TickAutoMargin, - [<Optional; DefaultParameterValue(null)>] ?ShowSpikes: bool, - [<Optional; DefaultParameterValue(null)>] ?SpikeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SpikeThickness: int, - [<Optional; DefaultParameterValue(null)>] ?SpikeDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?SpikeMode: StyleParam.SpikeMode, - [<Optional; DefaultParameterValue(null)>] ?SpikeSnap: StyleParam.SpikeSnap, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?Minor: Minor, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?InsideRange: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ZeroLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ZeroLineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Shift: int, - [<Optional; DefaultParameterValue(null)>] ?ShowDividers: bool, - [<Optional; DefaultParameterValue(null)>] ?DividerColor: Color, - [<Optional; DefaultParameterValue(null)>] ?DividerWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Anchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?Overlaying: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?Domain: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Position: float, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?RangeSlider: RangeSlider, - [<Optional; DefaultParameterValue(null)>] ?RangeSelector: RangeSelector, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?ArrayDTick: int, - [<Optional; DefaultParameterValue(null)>] ?ArrayTick0: int, - [<Optional; DefaultParameterValue(null)>] ?CheaterType: StyleParam.CheaterType, - [<Optional; DefaultParameterValue(null)>] ?EndLine: bool, - [<Optional; DefaultParameterValue(null)>] ?EndLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?EndLineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?LabelPadding: int, - [<Optional; DefaultParameterValue(null)>] ?LabelPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?LabelSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?MinorGridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?MinorGridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?MinorGridCount: int, - [<Optional; DefaultParameterValue(null)>] ?MinorGridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?StartLine: bool, - [<Optional; DefaultParameterValue(null)>] ?StartLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?StartLineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?BackgroundColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowBackground: bool + ?Visible: bool, + ?Color: Color, + ?Title: Title, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoRangeOptions: AutoRangeOptions, + ?AutoShift: bool, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?ScaleAnchor: StyleParam.ScaleAnchor, + ?ScaleRatio: float, + ?Constrain: StyleParam.AxisConstraint, + ?ConstrainToward: StyleParam.AxisConstraintDirection, + ?Matches: StyleParam.LinearAxisId, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible, + ?Rangebreaks: seq<Rangebreak>, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TicksOn: StyleParam.CategoryTickAnchor, + ?TickLabelMode: StyleParam.TickLabelMode, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?Mirror: StyleParam.Mirror, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?AutoMargin: StyleParam.TickAutoMargin, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?SpikeDash: StyleParam.DrawingStyle, + ?SpikeMode: StyleParam.SpikeMode, + ?SpikeSnap: StyleParam.SpikeSnap, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?Minor: Minor, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?HoverFormat: string, + ?InsideRange: StyleParam.Range, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?ZeroLineWidth: float, + ?Shift: int, + ?ShowDividers: bool, + ?DividerColor: Color, + ?DividerWidth: int, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?Domain: StyleParam.Range, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?UIRevision: #IConvertible, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?Calendar: StyleParam.Calendar, + ?ArrayDTick: int, + ?ArrayTick0: int, + ?CheaterType: StyleParam.CheaterType, + ?EndLine: bool, + ?EndLineColor: Color, + ?EndLineWidth: int, + ?LabelPadding: int, + ?LabelPrefix: string, + ?LabelSuffix: string, + ?MinorGridColor: Color, + ?MinorGridDash: StyleParam.DrawingStyle, + ?MinorGridCount: int, + ?MinorGridWidth: int, + ?Smoothing: float, + ?StartLine: bool, + ?StartLineColor: Color, + ?StartLineWidth: int, + ?BackgroundColor: Color, + ?ShowBackground: bool ) = (fun (axis: LinearAxis) -> - Visible |> DynObj.setValueOpt axis "visible" - Color |> DynObj.setValueOpt axis "color" - Title |> DynObj.setValueOpt axis "title" - AxisType |> DynObj.setValueOptBy axis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setValueOptBy axis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - AutoRange |> DynObj.setValueOptBy axis "autorange" StyleParam.AutoRange.convert - AutoRangeOptions |> DynObj.setValueOpt axis "autorangeoptions" - AutoShift |> DynObj.setValueOpt axis "autoshift" - RangeMode |> DynObj.setValueOptBy axis "rangemode" StyleParam.RangeMode.convert - Range |> DynObj.setValueOptBy axis "range" StyleParam.Range.convert - FixedRange |> DynObj.setValueOpt axis "fixedrange" - ScaleAnchor |> DynObj.setValueOptBy axis "scaleanchor" StyleParam.ScaleAnchor.convert - ScaleRatio |> DynObj.setValueOpt axis "scaleratio" - Constrain |> DynObj.setValueOptBy axis "constrain" StyleParam.AxisConstraint.convert - ConstrainToward |> DynObj.setValueOptBy axis "constraintoward" StyleParam.AxisConstraintDirection.convert - Matches |> DynObj.setValueOptBy axis "matches" StyleParam.LinearAxisId.convert - MaxAllowed |> DynObj.setValueOpt axis "maxallowed" - MinAllowed |> DynObj.setValueOpt axis "minallowed" - Rangebreaks |> DynObj.setValueOpt axis "rangebreaks" - TickMode |> DynObj.setValueOptBy axis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setValueOpt axis "nticks" - Tick0 |> DynObj.setValueOpt axis "tick0" - DTick |> DynObj.setValueOpt axis "dtick" - TickVals |> DynObj.setValueOpt axis "tickvals" - TickText |> DynObj.setValueOpt axis "ticktext" - Ticks |> DynObj.setValueOptBy axis "ticks" StyleParam.TickOptions.convert - TicksOn |> DynObj.setValueOptBy axis "tickson" StyleParam.CategoryTickAnchor.convert - TickLabelMode |> DynObj.setValueOptBy axis "ticklabelmode" StyleParam.TickLabelMode.convert - TickLabelPosition |> DynObj.setValueOptBy axis "ticklabelposition" StyleParam.TickLabelPosition.convert - TickLabelStep |> DynObj.setValueOpt axis "ticklabelstep" - TickLabelOverflow |> DynObj.setValueOptBy axis "ticklabeloverflow" StyleParam.TickLabelOverflow.convert - Mirror |> DynObj.setValueOptBy axis "mirror" StyleParam.Mirror.convert - TickLen |> DynObj.setValueOpt axis "ticklen" - TickWidth |> DynObj.setValueOpt axis "tickwidth" - TickColor |> DynObj.setValueOpt axis "tickcolor" - ShowTickLabels |> DynObj.setValueOpt axis "showticklabels" - AutoMargin |> DynObj.setValueOptBy axis "automargin" StyleParam.TickAutoMargin.convert - ShowSpikes |> DynObj.setValueOpt axis "showspikes" - SpikeColor |> DynObj.setValueOpt axis "spikecolor" - SpikeThickness |> DynObj.setValueOpt axis "spikethickness" - SpikeDash |> DynObj.setValueOptBy axis "spikedash" StyleParam.DrawingStyle.convert - SpikeMode |> DynObj.setValueOptBy axis "spikemode" StyleParam.SpikeMode.convert - SpikeSnap |> DynObj.setValueOptBy axis "spikesnap" StyleParam.SpikeSnap.convert - TickFont |> DynObj.setValueOpt axis "tickfont" - TickAngle |> DynObj.setValueOpt axis "tickangle" - ShowTickPrefix |> DynObj.setValueOptBy axis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setValueOpt axis "tickprefix" - ShowTickSuffix |> DynObj.setValueOptBy axis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setValueOpt axis "ticksuffix" - ShowExponent |> DynObj.setValueOptBy axis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setValueOptBy axis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setValueOpt axis "minexponent" - Minor |> DynObj.setValueOpt axis "minor" - SeparateThousands |> DynObj.setValueOpt axis "separatethousands" - TickFormat |> DynObj.setValueOpt axis "tickformat" - TickFormatStops |> DynObj.setValueOpt axis "tickformatstops" - HoverFormat |> DynObj.setValueOpt axis "hoverformat" - InsideRange |> DynObj.setValueOptBy axis "insiderange" StyleParam.Range.convert - ShowLine |> DynObj.setValueOpt axis "showline" - LineColor |> DynObj.setValueOpt axis "linecolor" - LineWidth |> DynObj.setValueOpt axis "linewidth" - ShowGrid |> DynObj.setValueOpt axis "showgrid" - GridColor |> DynObj.setValueOpt axis "gridcolor" - GridDash |> DynObj.setValueOptBy axis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt axis "gridwidth" - ZeroLine |> DynObj.setValueOpt axis "zeroline" - ZeroLineColor |> DynObj.setValueOpt axis "zerolinecolor" - ZeroLineWidth |> DynObj.setValueOpt axis "zerolinewidth" - Shift |> DynObj.setValueOpt axis "shift" - ShowDividers |> DynObj.setValueOpt axis "showdividers" - DividerColor |> DynObj.setValueOpt axis "dividercolor" - DividerWidth |> DynObj.setValueOpt axis "dividerwidth" - Anchor |> DynObj.setValueOptBy axis "anchor" StyleParam.LinearAxisId.convert - Side |> DynObj.setValueOptBy axis "side" StyleParam.Side.convert - Overlaying |> DynObj.setValueOptBy axis "overlaying" StyleParam.LinearAxisId.convert - LabelAlias |> DynObj.setValueOpt axis "labelalias" - Layer |> DynObj.setValueOptBy axis "layer" StyleParam.Layer.convert - Domain |> DynObj.setValueOptBy axis "domain" StyleParam.Range.convert - Position |> DynObj.setValueOpt axis "position" - CategoryOrder |> DynObj.setValueOptBy axis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setValueOpt axis "categoryarray" - UIRevision |> DynObj.setValueOpt axis "uirevision" - RangeSlider |> DynObj.setValueOpt axis "rangeslider" - RangeSelector |> DynObj.setValueOpt axis "rangeselector" - Calendar |> DynObj.setValueOptBy axis "calendar" StyleParam.Calendar.convert - ArrayDTick |> DynObj.setValueOpt axis "arraydtick" - ArrayTick0 |> DynObj.setValueOpt axis "arraytick0" - CheaterType |> DynObj.setValueOptBy axis "cheatertype" StyleParam.CheaterType.convert - EndLine |> DynObj.setValueOpt axis "endline" - EndLineColor |> DynObj.setValueOpt axis "endlinecolor" - EndLineWidth |> DynObj.setValueOpt axis "endlinewidth" - LabelPadding |> DynObj.setValueOpt axis "labelpadding" - LabelPrefix |> DynObj.setValueOpt axis "labelprefix" - LabelSuffix |> DynObj.setValueOpt axis "labelsuffix" - MinorGridColor |> DynObj.setValueOpt axis "minorgridcolor" - MinorGridDash |> DynObj.setValueOptBy axis "minorgriddash" StyleParam.DrawingStyle.convert - MinorGridCount |> DynObj.setValueOpt axis "minorgridcount" - MinorGridWidth |> DynObj.setValueOpt axis "minorgridwidth" - Smoothing |> DynObj.setValueOpt axis "smoothing" - StartLine |> DynObj.setValueOpt axis "startline" - StartLineColor |> DynObj.setValueOpt axis "startlinecolor" - StartLineWidth |> DynObj.setValueOpt axis "startlinewidth" - BackgroundColor |> DynObj.setValueOpt axis "backgroundcolor" - ShowBackground |> DynObj.setValueOpt axis "showbackground" - - - axis) + axis + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "type" AxisType StyleParam.AxisType.convert + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalPropertyBy "autorange" AutoRange StyleParam.AutoRange.convert + |> DynObj.withOptionalProperty "autorangeoptions" AutoRangeOptions + |> DynObj.withOptionalProperty "autoshift" AutoShift + |> DynObj.withOptionalPropertyBy "rangemode" RangeMode StyleParam.RangeMode.convert + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalProperty "fixedrange" FixedRange + |> DynObj.withOptionalPropertyBy "scaleanchor" ScaleAnchor StyleParam.ScaleAnchor.convert + |> DynObj.withOptionalProperty "scaleratio" ScaleRatio + |> DynObj.withOptionalPropertyBy "constrain" Constrain StyleParam.AxisConstraint.convert + |> DynObj.withOptionalPropertyBy "constraintoward" ConstrainToward StyleParam.AxisConstraintDirection.convert + |> DynObj.withOptionalPropertyBy "matches" Matches StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "maxallowed" MaxAllowed + |> DynObj.withOptionalProperty "minallowed" MinAllowed + |> DynObj.withOptionalProperty "rangebreaks" Rangebreaks + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalPropertyBy "tickson" TicksOn StyleParam.CategoryTickAnchor.convert + |> DynObj.withOptionalPropertyBy "ticklabelmode" TickLabelMode StyleParam.TickLabelMode.convert + |> DynObj.withOptionalPropertyBy "ticklabelposition" TickLabelPosition StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalPropertyBy "ticklabeloverflow" TickLabelOverflow StyleParam.TickLabelOverflow.convert + |> DynObj.withOptionalPropertyBy "mirror" Mirror StyleParam.Mirror.convert + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "automargin" AutoMargin StyleParam.TickAutoMargin.convert + |> DynObj.withOptionalProperty "showspikes" ShowSpikes + |> DynObj.withOptionalProperty "spikecolor" SpikeColor + |> DynObj.withOptionalProperty "spikethickness" SpikeThickness + |> DynObj.withOptionalPropertyBy "spikedash" SpikeDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalPropertyBy "spikemode" SpikeMode StyleParam.SpikeMode.convert + |> DynObj.withOptionalPropertyBy "spikesnap" SpikeSnap StyleParam.SpikeSnap.convert + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "minexponent" MinExponent + |> DynObj.withOptionalProperty "minor" Minor + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalPropertyBy "insiderange" InsideRange StyleParam.Range.convert + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "zeroline" ZeroLine + |> DynObj.withOptionalProperty "zerolinecolor" ZeroLineColor + |> DynObj.withOptionalProperty "zerolinewidth" ZeroLineWidth + |> DynObj.withOptionalProperty "shift" Shift + |> DynObj.withOptionalProperty "showdividers" ShowDividers + |> DynObj.withOptionalProperty "dividercolor" DividerColor + |> DynObj.withOptionalProperty "dividerwidth" DividerWidth + |> DynObj.withOptionalPropertyBy "anchor" Anchor StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + |> DynObj.withOptionalPropertyBy "overlaying" Overlaying StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalPropertyBy "domain" Domain StyleParam.Range.convert + |> DynObj.withOptionalProperty "position" Position + |> DynObj.withOptionalPropertyBy "categoryorder" CategoryOrder StyleParam.CategoryOrder.convert + |> DynObj.withOptionalProperty "categoryarray" CategoryArray + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "rangeslider" RangeSlider + |> DynObj.withOptionalProperty "rangeselector" RangeSelector + |> DynObj.withOptionalPropertyBy "calendar" Calendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "arraydtick" ArrayDTick + |> DynObj.withOptionalProperty "arraytick0" ArrayTick0 + |> DynObj.withOptionalPropertyBy "cheatertype" CheaterType StyleParam.CheaterType.convert + |> DynObj.withOptionalProperty "endline" EndLine + |> DynObj.withOptionalProperty "endlinecolor" EndLineColor + |> DynObj.withOptionalProperty "endlinewidth" EndLineWidth + |> DynObj.withOptionalProperty "labelpadding" LabelPadding + |> DynObj.withOptionalProperty "labelprefix" LabelPrefix + |> DynObj.withOptionalProperty "labelsuffix" LabelSuffix + |> DynObj.withOptionalProperty "minorgridcolor" MinorGridColor + |> DynObj.withOptionalPropertyBy "minorgriddash" MinorGridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "minorgridcount" MinorGridCount + |> DynObj.withOptionalProperty "minorgridwidth" MinorGridWidth + |> DynObj.withOptionalProperty "smoothing" Smoothing + |> DynObj.withOptionalProperty "startline" StartLine + |> DynObj.withOptionalProperty "startlinecolor" StartLineColor + |> DynObj.withOptionalProperty "startlinewidth" StartLineWidth + |> DynObj.withOptionalProperty "backgroundcolor" BackgroundColor + |> DynObj.withOptionalProperty "showbackground" ShowBackground + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs index 7cb8e62d7..e74beabe8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs @@ -10,12 +10,12 @@ type Margin() = /// Init Margin type static member init ( - [<Optional; DefaultParameterValue(null)>] ?Left, - [<Optional; DefaultParameterValue(null)>] ?Right, - [<Optional; DefaultParameterValue(null)>] ?Top, - [<Optional; DefaultParameterValue(null)>] ?Bottom, - [<Optional; DefaultParameterValue(null)>] ?Pad, - [<Optional; DefaultParameterValue(null)>] ?Autoexpand + ?Left, + ?Right, + ?Top, + ?Bottom, + ?Pad, + ?Autoexpand ) = Margin() |> Margin.style ( @@ -31,20 +31,20 @@ type Margin() = // Applies the styles to Margin() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Left, - [<Optional; DefaultParameterValue(null)>] ?Right, - [<Optional; DefaultParameterValue(null)>] ?Top, - [<Optional; DefaultParameterValue(null)>] ?Bottom, - [<Optional; DefaultParameterValue(null)>] ?Pad, - [<Optional; DefaultParameterValue(null)>] ?Autoexpand + ?Left, + ?Right, + ?Top, + ?Bottom, + ?Pad, + ?Autoexpand ) = (fun (margin: Margin) -> - Left |> DynObj.setValueOpt margin "l" - Right |> DynObj.setValueOpt margin "r" - Top |> DynObj.setValueOpt margin "t" - Bottom |> DynObj.setValueOpt margin "b" - Pad |> DynObj.setValueOpt margin "pad" - Autoexpand |> DynObj.setValueOpt margin "autoexpand" - - margin) + margin + |> DynObj.withOptionalProperty "l" Left + |> DynObj.withOptionalProperty "r" Right + |> DynObj.withOptionalProperty "t" Top + |> DynObj.withOptionalProperty "b" Bottom + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "autoexpand" Autoexpand + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs index 67e00580d..06737787c 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs @@ -27,19 +27,19 @@ type Minor() = /// <param name="TickWidth">Sets the tick width (in px).</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: float, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int + ?DTick: #IConvertible, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?NTicks: int, + ?ShowGrid: bool, + ?Tick0: #IConvertible, + ?TickColor: Color, + ?TickLen: int, + ?TickMode: StyleParam.TickMode, + ?Ticks: StyleParam.TickOptions, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int ) = Minor() |> Minor.style ( @@ -76,34 +76,34 @@ type Minor() = /// <param name="TickWidth">Sets the tick width (in px).</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: float, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int + ?DTick: #IConvertible, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?NTicks: int, + ?ShowGrid: bool, + ?Tick0: #IConvertible, + ?TickColor: Color, + ?TickLen: int, + ?TickMode: StyleParam.TickMode, + ?Ticks: StyleParam.TickOptions, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int ) = (fun (minor: Minor) -> - DTick |> DynObj.setValueOpt minor "dtick" - GridColor |> DynObj.setValueOpt minor "gridcolor" - GridDash |> DynObj.setValueOptBy minor "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt minor "gridwidth" - NTicks |> DynObj.setValueOpt minor "nticks" - ShowGrid |> DynObj.setValueOpt minor "showgrid" - Tick0 |> DynObj.setValueOpt minor "tick0" - TickColor |> DynObj.setValueOpt minor "tickcolor" - TickLen |> DynObj.setValueOpt minor "ticklen" - TickMode |> DynObj.setValueOptBy minor "tickmode" StyleParam.TickMode.convert - Ticks |> DynObj.setValueOptBy minor "ticks" StyleParam.TickOptions.convert - TickVals |> DynObj.setValueOpt minor "tickvals" - TickWidth |> DynObj.setValueOpt minor "tickwidth" - - minor) + minor + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs index 31b63cd9e..6287be07b 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs @@ -10,13 +10,13 @@ type ModeBar() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?ActiveColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Add: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Remove: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?ActiveColor: Color, + ?Add: seq<string>, + ?BGColor: Color, + ?Color: Color, + ?Orientation: StyleParam.Orientation, + ?Remove: string, + ?UIRevision: string ) = ModeBar() |> ModeBar.style ( @@ -31,22 +31,22 @@ type ModeBar() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?ActiveColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Add: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Remove: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?ActiveColor: Color, + ?Add: seq<string>, + ?BGColor: Color, + ?Color: Color, + ?Orientation: StyleParam.Orientation, + ?Remove: string, + ?UIRevision: string ) = (fun (modeBar: ModeBar) -> - ActiveColor |> DynObj.setValueOpt modeBar "activecolor" - Add |> DynObj.setValueOpt modeBar "add" - BGColor |> DynObj.setValueOpt modeBar "bgcolor" - Color |> DynObj.setValueOpt modeBar "color" - Orientation |> DynObj.setValueOptBy modeBar "orientation" StyleParam.Orientation.convert - Remove |> DynObj.setValueOpt modeBar "remove" - UIRevision |> DynObj.setValueOpt modeBar "uirevision " - - modeBar) + modeBar + |> DynObj.withOptionalProperty "activecolor" ActiveColor + |> DynObj.withOptionalProperty "add" Add + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "remove" Remove + |> DynObj.withOptionalProperty "uirevision " UIRevision + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs index ee91cb5ca..d342b05ed 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs @@ -17,10 +17,10 @@ type NewSelection() = /// <param name="Mode">Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.NewSelectionMode + ?LineColor: Color, + ?LineDash: StyleParam.DrawingStyle, + ?LineWidth: float, + ?Mode: StyleParam.NewSelectionMode ) = NewSelection() |> NewSelection.style (?LineColor = LineColor, ?LineDash = LineDash, ?LineWidth = LineWidth, ?Mode = Mode) @@ -34,17 +34,17 @@ type NewSelection() = /// <param name="Mode">Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.NewSelectionMode + ?LineColor: Color, + ?LineDash: StyleParam.DrawingStyle, + ?LineWidth: float, + ?Mode: StyleParam.NewSelectionMode ) = (fun (newSelection: NewSelection) -> let line = Line.init (?Color = LineColor, ?Dash = LineDash, ?Width = LineWidth) - line |> DynObj.setValue newSelection "line" - Mode |> DynObj.setValueOptBy newSelection "mode" StyleParam.NewSelectionMode.convert - - newSelection) + newSelection + |> DynObj.withProperty "line" line + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.NewSelectionMode.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs index 9040dc40f..eff8bb910 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs @@ -13,7 +13,7 @@ type NewShape() = /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="newShape">The NewShape to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (newShape:NewShape) = newShape.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (newShape:NewShape) = newShape.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns the Legend anchor of the given NewShape. @@ -38,9 +38,7 @@ type NewShape() = let id = StyleParam.SubPlotId.Legend legendId - (fun (newShape: NewShape) -> - newShape.SetValue("legend", StyleParam.SubPlotId.convert id) - newShape) + (fun (newShape: NewShape) -> newShape |> DynObj.withProperty "legend" (StyleParam.SubPlotId.convert id)) /// <summary> /// Returns a new NewShape object with the given styling. @@ -61,20 +59,20 @@ type NewShape() = /// <param name="Visible">Determines whether or not new shape is visible. If "legendonly", the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible).</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?DrawDirection: StyleParam.DrawDirection, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillRule: StyleParam.FillRule, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?LegendWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible + ?DrawDirection: StyleParam.DrawDirection, + ?FillColor: Color, + ?FillRule: StyleParam.FillRule, + ?Layer: StyleParam.Layer, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Visible: StyleParam.Visible ) = NewShape() |> NewShape.style ( @@ -113,36 +111,36 @@ type NewShape() = /// <param name="Visible">Determines whether or not new shape is visible. If "legendonly", the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible).</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?DrawDirection: StyleParam.DrawDirection, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillRule: StyleParam.FillRule, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?LegendWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible + ?DrawDirection: StyleParam.DrawDirection, + ?FillColor: Color, + ?FillRule: StyleParam.FillRule, + ?Layer: StyleParam.Layer, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Visible: StyleParam.Visible ) = (fun (newShape: NewShape) -> - DrawDirection |> DynObj.setValueOptBy newShape "drawdirection" StyleParam.DrawDirection.convert - FillColor |> DynObj.setValueOpt newShape "fillcolor" - FillRule |> DynObj.setValueOptBy newShape "fillrule" StyleParam.FillRule.convert - Layer |> DynObj.setValueOptBy newShape "layer" StyleParam.Layer.convert - ShowLegend |> DynObj.setValueOpt newShape "showlegend" - Legend |> DynObj.setValueOptBy newShape "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt newShape "legendrank" - LegendGroup |> DynObj.setValueOpt newShape "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt newShape "legendgrouptitle" - LegendWidth |> DynObj.setValueOpt newShape "legendwidth" - Line |> DynObj.setValueOpt newShape "line" - Name |> DynObj.setValueOpt newShape "name" - Opacity |> DynObj.setValueOpt newShape "opacity" - Visible |> DynObj.setValueOptBy newShape "visible" StyleParam.Visible.convert - - newShape) + newShape + |> DynObj.withOptionalPropertyBy "drawdirection" DrawDirection StyleParam.DrawDirection.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalPropertyBy "fillrule" FillRule StyleParam.FillRule.convert + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "legendwidth" LegendWidth + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs index 537f97dd5..dcce7b0b9 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs @@ -12,17 +12,17 @@ type RangeSelector() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Buttons: seq<Button>, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ActiveColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: int + ?Visible: bool, + ?Buttons: seq<Button>, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?Font: Font, + ?BGColor: Color, + ?ActiveColor: Color, + ?BorderColor: Color, + ?BorderWidth: int ) = RangeSelector() |> RangeSelector.style ( @@ -41,30 +41,30 @@ type RangeSelector() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Buttons: seq<Button>, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ActiveColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: int + ?Visible: bool, + ?Buttons: seq<Button>, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?Font: Font, + ?BGColor: Color, + ?ActiveColor: Color, + ?BorderColor: Color, + ?BorderWidth: int ) = (fun (rangeSelector: RangeSelector) -> - Visible |> DynObj.setValueOpt rangeSelector "visible" - Buttons |> DynObj.setValueOpt rangeSelector "buttons" - X |> DynObj.setValueOpt rangeSelector "x" - XAnchor |> DynObj.setValueOptBy rangeSelector "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setValueOpt rangeSelector "y" - YAnchor |> DynObj.setValueOptBy rangeSelector "yanchor" StyleParam.YAnchorPosition.convert - Font |> DynObj.setValueOpt rangeSelector "font" - BGColor |> DynObj.setValueOpt rangeSelector "bgcolor" - ActiveColor |> DynObj.setValueOpt rangeSelector "activecolor" - BorderColor |> DynObj.setValueOpt rangeSelector "bordercolor" - BorderWidth |> DynObj.setValueOpt rangeSelector "borderwidth" - - rangeSelector) + rangeSelector + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "buttons" Buttons + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "activecolor" ActiveColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs index e3e0f07ba..093c5a7c8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs @@ -13,15 +13,15 @@ type RangeSlider() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?BgColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: bool, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?YAxisRangeMode: StyleParam.RangesliderRangeMode, - [<Optional; DefaultParameterValue(null)>] ?YAxisRange: StyleParam.Range + ?BgColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?AutoRange: bool, + ?Range: StyleParam.Range, + ?Thickness: float, + ?Visible: bool, + ?YAxisRangeMode: StyleParam.RangesliderRangeMode, + ?YAxisRange: StyleParam.Range ) = RangeSlider() |> RangeSlider.style ( @@ -39,32 +39,30 @@ type RangeSlider() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?BgColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: float, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: bool, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?YAxisRangeMode: StyleParam.RangesliderRangeMode, - [<Optional; DefaultParameterValue(null)>] ?YAxisRange: StyleParam.Range + ?BgColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?AutoRange: bool, + ?Range: StyleParam.Range, + ?Thickness: float, + ?Visible: bool, + ?YAxisRangeMode: StyleParam.RangesliderRangeMode, + ?YAxisRange: StyleParam.Range ) = fun (rangeslider: RangeSlider) -> - BgColor |> DynObj.setValueOpt rangeslider "bgcolor" - BorderColor |> DynObj.setValueOpt rangeslider "bordercolor" - BorderWidth |> DynObj.setValueOpt rangeslider "borderwidth" - AutoRange |> DynObj.setValueOpt rangeslider "autorange" - Range |> DynObj.setValueOptBy rangeslider "range" StyleParam.Range.convert - Thickness |> DynObj.setValueOpt rangeslider "thickness" - Visible |> DynObj.setValueOpt rangeslider "visible" let yAxis = - let tmp = DynamicObj() - YAxisRangeMode |> DynObj.setValueOptBy tmp "rangemode" StyleParam.RangesliderRangeMode.convert - YAxisRange |> DynObj.setValueOptBy tmp "range" StyleParam.Range.convert - tmp - - yAxis |> DynObj.setValue rangeslider "yaxis" - + DynamicObj() + |> DynObj.withOptionalPropertyBy "rangemode" YAxisRangeMode StyleParam.RangesliderRangeMode.convert + |> DynObj.withOptionalPropertyBy "range" YAxisRange StyleParam.Range.convert rangeslider + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "autorange" AutoRange + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withProperty "yaxis" yAxis + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs index d068097ed..a80e9adbd 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs @@ -20,13 +20,13 @@ type Rangebreak() = /// <param name="TemplateItemName">Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?Bounds: #IConvertible * #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.RangebreakPattern, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?DValue: int, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?Enabled: bool, + ?Bounds: #IConvertible * #IConvertible, + ?Pattern: StyleParam.RangebreakPattern, + ?Values: seq<#IConvertible>, + ?DValue: int, + ?Name: string, + ?TemplateItemName: string ) = Rangebreak() |> Rangebreak.style ( @@ -51,21 +51,22 @@ type Rangebreak() = /// <param name="TemplateItemName">Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?Bounds: #IConvertible * #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.RangebreakPattern, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?DValue: int, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?Enabled: bool, + ?Bounds: #IConvertible * #IConvertible, + ?Pattern: StyleParam.RangebreakPattern, + ?Values: seq<#IConvertible>, + ?DValue: int, + ?Name: string, + ?TemplateItemName: string ) = (fun (rangebreak: Rangebreak) -> - Enabled |> DynObj.setValueOpt rangebreak "enabled" - Bounds |> DynObj.setValueOptBy rangebreak "bounds" (fun (a, b) -> [| a; b |]) - Pattern |> DynObj.setValueOptBy rangebreak "pattern" StyleParam.RangebreakPattern.convert - Values |> DynObj.setValueOpt rangebreak "values" - DValue |> DynObj.setValueOpt rangebreak "dvalue" - Name |> DynObj.setValueOpt rangebreak "name" - TemplateItemName |> DynObj.setValueOpt rangebreak "templateitemname" - rangebreak) + rangebreak + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalPropertyBy "bounds" Bounds (fun (a, b) -> [| a; b |]) + |> DynObj.withOptionalPropertyBy "pattern" Pattern StyleParam.RangebreakPattern.convert + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "dvalue" DValue + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs index 898b0cce0..a98c644bc 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs @@ -25,18 +25,18 @@ type Selection() = /// <param name="Yref">Sets the selection's x coordinate axis. If set to a y axis id (e.g. "y" or "y2"), the `y` position refers to a y coordinate. If set to "paper", the `y` position refers to the distance from the bottom of the plotting area in normalized coordinates where "0" ("1") corresponds to the bottom (top). If set to a y axis ID followed by "domain" (separated by a space), the position behaves like for "paper", but refers to the distance in fractions of the domain length from the bottom of the domain of that axis: e.g., "y2 domain" refers to the domain of the second y axis and a y position of 0.5 refers to the point between the bottom and the top of the domain of the second y axis.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Path: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?SelectionType: StyleParam.SelectionType, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?X1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Xref: string, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Yref: string + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Path: string, + ?TemplateItemName: string, + ?SelectionType: StyleParam.SelectionType, + ?X0: #IConvertible, + ?X1: #IConvertible, + ?Xref: string, + ?Y0: #IConvertible, + ?Y1: #IConvertible, + ?Yref: string ) = Selection() |> Selection.style ( @@ -71,32 +71,32 @@ type Selection() = /// <param name="Yref">Sets the selection's x coordinate axis. If set to a y axis id (e.g. "y" or "y2"), the `y` position refers to a y coordinate. If set to "paper", the `y` position refers to the distance from the bottom of the plotting area in normalized coordinates where "0" ("1") corresponds to the bottom (top). If set to a y axis ID followed by "domain" (separated by a space), the position behaves like for "paper", but refers to the distance in fractions of the domain length from the bottom of the domain of that axis: e.g., "y2 domain" refers to the domain of the second y axis and a y position of 0.5 refers to the point between the bottom and the top of the domain of the second y axis.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Path: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?SelectionType: StyleParam.SelectionType, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?X1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Xref: string, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Yref: string + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Path: string, + ?TemplateItemName: string, + ?SelectionType: StyleParam.SelectionType, + ?X0: #IConvertible, + ?X1: #IConvertible, + ?Xref: string, + ?Y0: #IConvertible, + ?Y1: #IConvertible, + ?Yref: string ) = (fun (selection: Selection) -> - Line |> DynObj.setValueOpt selection "line" - Name |> DynObj.setValueOpt selection "name" - Opacity |> DynObj.setValueOpt selection "opacity" - Path |> DynObj.setValueOpt selection "path" - TemplateItemName |> DynObj.setValueOpt selection "templateitemname" - SelectionType |> DynObj.setValueOptBy selection "type" StyleParam.SelectionType.convert - X0 |> DynObj.setValueOpt selection "x0" - X1 |> DynObj.setValueOpt selection "x1" - Xref |> DynObj.setValueOpt selection "xref" - Y0 |> DynObj.setValueOpt selection "y0" - Y1 |> DynObj.setValueOpt selection "y1" - Yref |> DynObj.setValueOpt selection "yref" - - selection) + selection + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "path" Path + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalPropertyBy "type" SelectionType StyleParam.SelectionType.convert + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "x1" X1 + |> DynObj.withOptionalProperty "xref" Xref + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "y1" Y1 + |> DynObj.withOptionalProperty "yref" Yref + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs index a86e20aee..eeeeb87a9 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs @@ -14,7 +14,7 @@ type Shape() = /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="shape">The shape to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (shape:Shape) = shape.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (shape:Shape) = shape.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns the Legend anchor of the given shape. @@ -39,9 +39,7 @@ type Shape() = let id = StyleParam.SubPlotId.Legend legendId - (fun (shape: Shape) -> - shape.SetValue("legend", StyleParam.SubPlotId.convert id) - shape) + (fun (shape: Shape) -> shape |> DynObj.withProperty "legend" (StyleParam.SubPlotId.convert id)) /// <summary> /// Returns a new Shape object with the given styling. @@ -76,34 +74,34 @@ type Shape() = /// <param name="YSizeMode">Sets the shapes's sizing mode along the y axis. If set to "scaled", `y0`, `y1` and y coordinates within `path` refer to data values on the y axis or a fraction of the plot area's height (`yref` set to "paper"). If set to "pixel", `yanchor` specifies the y position in terms of data or plot fraction but `y0`, `y1` and y coordinates within `path` are pixels relative to `yanchor`. This way, the shape can have a fixed height while maintaining a position relative to data or plot fraction.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Editable: bool, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillRule: StyleParam.FillRule, - [<Optional; DefaultParameterValue(null)>] ?Label: ShapeLabel, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?LegendWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Path: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?ShapeType: StyleParam.ShapeType, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?X1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Xref: string, - [<Optional; DefaultParameterValue(null)>] ?XSizeMode: StyleParam.ShapeSizeMode, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Yref: string, - [<Optional; DefaultParameterValue(null)>] ?YSizeMode: StyleParam.ShapeSizeMode + ?Editable: bool, + ?FillColor: Color, + ?FillRule: StyleParam.FillRule, + ?Label: ShapeLabel, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Layer: StyleParam.Layer, + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Path: string, + ?TemplateItemName: string, + ?ShapeType: StyleParam.ShapeType, + ?Visible: bool, + ?X0: #IConvertible, + ?X1: #IConvertible, + ?XAnchor: StyleParam.LinearAxisId, + ?Xref: string, + ?XSizeMode: StyleParam.ShapeSizeMode, + ?Y0: #IConvertible, + ?Y1: #IConvertible, + ?YAnchor: StyleParam.LinearAxisId, + ?Yref: string, + ?YSizeMode: StyleParam.ShapeSizeMode ) = Shape() |> Shape.style ( @@ -170,64 +168,63 @@ type Shape() = /// <param name="YSizeMode">Sets the shapes's sizing mode along the y axis. If set to "scaled", `y0`, `y1` and y coordinates within `path` refer to data values on the y axis or a fraction of the plot area's height (`yref` set to "paper"). If set to "pixel", `yanchor` specifies the y position in terms of data or plot fraction but `y0`, `y1` and y coordinates within `path` are pixels relative to `yanchor`. This way, the shape can have a fixed height while maintaining a position relative to data or plot fraction.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Editable: bool, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillRule: StyleParam.FillRule, - [<Optional; DefaultParameterValue(null)>] ?Label: ShapeLabel, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?LegendWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Path: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?ShapeType: StyleParam.ShapeType, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?X1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Xref: string, - [<Optional; DefaultParameterValue(null)>] ?XSizeMode: StyleParam.ShapeSizeMode, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y1: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Yref: string, - [<Optional; DefaultParameterValue(null)>] ?YSizeMode: StyleParam.ShapeSizeMode + ?Editable: bool, + ?FillColor: Color, + ?FillRule: StyleParam.FillRule, + ?Label: ShapeLabel, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Layer: StyleParam.Layer, + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Path: string, + ?TemplateItemName: string, + ?ShapeType: StyleParam.ShapeType, + ?Visible: bool, + ?X0: #IConvertible, + ?X1: #IConvertible, + ?XAnchor: StyleParam.LinearAxisId, + ?Xref: string, + ?XSizeMode: StyleParam.ShapeSizeMode, + ?Y0: #IConvertible, + ?Y1: #IConvertible, + ?YAnchor: StyleParam.LinearAxisId, + ?Yref: string, + ?YSizeMode: StyleParam.ShapeSizeMode ) = - (fun (shape: Shape) -> + fun (shape: Shape) -> - Editable |> DynObj.setValueOpt shape "editable" - FillColor |> DynObj.setValueOpt shape "fillcolor" - FillRule |> DynObj.setValueOptBy shape "fillrule" StyleParam.FillRule.convert - Label |> DynObj.setValueOpt shape "label" - ShowLegend |> DynObj.setValueOpt shape "showlegend" - Legend |> DynObj.setValueOptBy shape "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt shape "legendrank" - LegendGroup |> DynObj.setValueOpt shape "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt shape "legendgrouptitle" - LegendWidth |> DynObj.setValueOpt shape "legendwidth" - Layer |> DynObj.setValueOptBy shape "layer" StyleParam.Layer.convert - Line |> DynObj.setValueOpt shape "line" - Name |> DynObj.setValueOpt shape "name" - Opacity |> DynObj.setValueOpt shape "opacity" - Path |> DynObj.setValueOpt shape "path" - TemplateItemName |> DynObj.setValueOpt shape "templateitemname" - ShapeType |> DynObj.setValueOptBy shape "type" StyleParam.ShapeType.convert - Visible |> DynObj.setValueOpt shape "visible" - X0 |> DynObj.setValueOpt shape "x0" - X1 |> DynObj.setValueOpt shape "x1" - XAnchor |> DynObj.setValueOptBy shape "xanchor" StyleParam.LinearAxisId.convert - Xref |> DynObj.setValueOpt shape "xref" - XSizeMode |> DynObj.setValueOptBy shape "xsizemode" StyleParam.ShapeSizeMode.convert - Y0 |> DynObj.setValueOpt shape "y0" - Y1 |> DynObj.setValueOpt shape "y1" - YAnchor |> DynObj.setValueOptBy shape "yanchor" StyleParam.LinearAxisId.convert - Yref |> DynObj.setValueOpt shape "yref" - YSizeMode |> DynObj.setValueOptBy shape "ysizemode" StyleParam.ShapeSizeMode.convert - - shape) + shape + |> DynObj.withOptionalProperty "editable" Editable + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalPropertyBy "fillrule" FillRule StyleParam.FillRule.convert + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "legendwidth" LegendWidth + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "path" Path + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalPropertyBy "type" ShapeType StyleParam.ShapeType.convert + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "x1" X1 + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "xref" Xref + |> DynObj.withOptionalPropertyBy "xsizemode" XSizeMode StyleParam.ShapeSizeMode.convert + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "y1" Y1 + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "yref" Yref + |> DynObj.withOptionalPropertyBy "ysizemode" YSizeMode StyleParam.ShapeSizeMode.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs index 241c86a60..590ff4219 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs @@ -25,14 +25,14 @@ type ShapeLabel() = /// <param name="YAnchor">Sets the label's vertical position anchor This anchor binds the specified `textposition` to the "top", "middle" or "bottom" of the label text. For example, if `textposition` is set to "top right" and `yanchor` to "top" then the top-most portion of the label text lines up with the top-most edge of the shape.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Padding: int, - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: StyleParam.TextAngle, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition + ?Font: Font, + ?Padding: int, + ?Text: string, + ?TextAngle: StyleParam.TextAngle, + ?TextPosition: StyleParam.TextPosition, + ?TextTemplate: string, + ?XAnchor: StyleParam.XAnchorPosition, + ?YAnchor: StyleParam.YAnchorPosition ) = ShapeLabel() @@ -60,26 +60,25 @@ type ShapeLabel() = /// <param name="YAnchor">Sets the label's vertical position anchor This anchor binds the specified `textposition` to the "top", "middle" or "bottom" of the label text. For example, if `textposition` is set to "top right" and `yanchor` to "top" then the top-most portion of the label text lines up with the top-most edge of the shape.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Padding: int, - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: StyleParam.TextAngle, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition + ?Font: Font, + ?Padding: int, + ?Text: string, + ?TextAngle: StyleParam.TextAngle, + ?TextPosition: StyleParam.TextPosition, + ?TextTemplate: string, + ?XAnchor: StyleParam.XAnchorPosition, + ?YAnchor: StyleParam.YAnchorPosition ) = (fun (shapeLabel: ShapeLabel) -> - Font |> DynObj.setValueOpt shapeLabel "font" - Padding |> DynObj.setValueOpt shapeLabel "padding" - Text |> DynObj.setValueOpt shapeLabel "text" - TextAngle |> DynObj.setValueOptBy shapeLabel "textangle" StyleParam.TextAngle.convert - TextPosition |> DynObj.setValueOptBy shapeLabel "textposition" StyleParam.TextPosition.convert - TextTemplate |> DynObj.setValueOpt shapeLabel "texttemplate" - XAnchor |> DynObj.setValueOptBy shapeLabel "xanchor" StyleParam.XAnchorPosition.convert - YAnchor |> DynObj.setValueOptBy shapeLabel "yanchor" StyleParam.YAnchorPosition.convert - shapeLabel + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "padding" Padding + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalPropertyBy "textangle" TextAngle StyleParam.TextAngle.convert + |> DynObj.withOptionalPropertyBy "textposition" TextPosition StyleParam.TextPosition.convert + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert ) \ No newline at end of file diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs index 18c12e2db..746a6b7fb 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs @@ -141,28 +141,28 @@ type Slider() = ?YAnchor: StyleParam.YAnchorPosition ) = (fun (slider: Slider) -> - Active |> DynObj.setValueOpt slider "active" - ActiveBgColor |> DynObj.setValueOpt slider "activebgcolor" - BgColor |> DynObj.setValueOpt slider "bgcolor" - BorderColor |> DynObj.setValueOpt slider "bordercolor" - BorderWidth |> DynObj.setValueOpt slider "borderwidth" - CurrentValue |> DynObj.setValueOpt slider "currentvalue" - Font |> DynObj.setValueOpt slider "font" - Len |> DynObj.setValueOpt slider "len" - LenMode |> DynObj.setValueOptBy slider "lenmode" StyleParam.UnitMode.convert - MinorTickLen |> DynObj.setValueOpt slider "minorticklen" - Name |> DynObj.setValueOpt slider "name" - Padding |> DynObj.setValueOpt slider "pad" - Steps |> DynObj.setValueOpt slider "steps" - TemplateItemName |> DynObj.setValueOpt slider "templateitemname" - TickColor |> DynObj.setValueOpt slider "tickcolor" - TickLen |> DynObj.setValueOpt slider "ticklen" - TickWidth |> DynObj.setValueOpt slider "tickwidth" - Transition |> DynObj.setValueOpt slider "transition" - Visible |> DynObj.setValueOpt slider "visible" - X |> DynObj.setValueOpt slider "x" - XAnchor |> DynObj.setValueOptBy slider "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setValueOpt slider "y" - YAnchor |> DynObj.setValueOptBy slider "yanchor" StyleParam.YAnchorPosition.convert - - slider) + slider + |> DynObj.withOptionalProperty "active" Active + |> DynObj.withOptionalProperty "activebgcolor" ActiveBgColor + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "currentvalue" CurrentValue + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "len" Len + |> DynObj.withOptionalPropertyBy "lenmode" LenMode StyleParam.UnitMode.convert + |> DynObj.withOptionalProperty "minorticklen" MinorTickLen + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "pad" Padding + |> DynObj.withOptionalProperty "steps" Steps + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "transition" Transition + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + ) \ No newline at end of file diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs index 68d456a54..a457e9383 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs @@ -50,10 +50,12 @@ type SliderCurrentValue() = if autoValueIsProvided then printf "The value '%s' is not supported by CurrentValue" (StyleParam.XAnchorPosition.Auto |> string) - Font |> DynObj.setValueOpt currentValue "font" - Offset |> DynObj.setValueOpt currentValue "offset" - Prefix |> DynObj.setValueOpt currentValue "prefix" - Suffix |> DynObj.setValueOpt currentValue "suffix" - Visible |> DynObj.setValueOpt currentValue "visible" - XAnchor |> DynObj.setValueOptBy currentValue "xanchor" StyleParam.XAnchorPosition.convert - currentValue) + currentValue + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "offset" Offset + |> DynObj.withOptionalProperty "prefix" Prefix + |> DynObj.withOptionalProperty "suffix" Suffix + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + ) + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs index ccea6afb6..7b48e4e61 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs @@ -80,12 +80,13 @@ type SliderStep() = let argsAsDictionaries = Args |> Option.map (fun args -> args |> Seq.map (fun arg -> [ arg ] |> dict)) - argsAsDictionaries |> DynObj.setValueOpt step "args" - Execute |> DynObj.setValueOpt step "execute" - Label |> DynObj.setValueOpt step "label" - Method |> DynObj.setValueOptBy step "method" StyleParam.Method.convert - Name |> DynObj.setValueOpt step "name" - TemplateItemName |> DynObj.setValueOpt step "templateitemname" - Value |> DynObj.setValueOpt step "value" - Visible |> DynObj.setValueOpt step "visible" - step) + step + |> DynObj.withOptionalProperty "args" argsAsDictionaries + |> DynObj.withOptionalProperty "execute" Execute + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalPropertyBy "method" Method StyleParam.Method.convert + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "visible" Visible + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs index 11b2a9485..41e7342c4 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs @@ -10,22 +10,23 @@ type Transition() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Duration: int, - [<Optional; DefaultParameterValue(null)>] ?Easing: StyleParam.TransitionEasing, - [<Optional; DefaultParameterValue(null)>] ?Ordering: StyleParam.TransitionOrdering + ?Duration: int, + ?Easing: StyleParam.TransitionEasing, + ?Ordering: StyleParam.TransitionOrdering ) = Transition() |> Transition.style (?Duration = Duration, ?Easing = Easing, ?Ordering = Ordering) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Duration: int, - [<Optional; DefaultParameterValue(null)>] ?Easing: StyleParam.TransitionEasing, - [<Optional; DefaultParameterValue(null)>] ?Ordering: StyleParam.TransitionOrdering + ?Duration: int, + ?Easing: StyleParam.TransitionEasing, + ?Ordering: StyleParam.TransitionOrdering ) = (fun (transition: Transition) -> - Duration |> DynObj.setValueOpt transition "duration" - Easing |> DynObj.setValueOptBy transition "easing" StyleParam.TransitionEasing.convert - Ordering |> DynObj.setValueOptBy transition "ordering" StyleParam.TransitionOrdering.convert + transition + |> DynObj.withOptionalProperty "duration" Duration + |> DynObj.withOptionalPropertyBy "easing" Easing StyleParam.TransitionEasing.convert + |> DynObj.withOptionalPropertyBy "ordering" Ordering StyleParam.TransitionOrdering.convert - transition) + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs index f065418c0..27cd26e62 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs @@ -10,19 +10,19 @@ type UniformText() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?MinSize: int, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.UniformTextMode + ?MinSize: int, + ?Mode: StyleParam.UniformTextMode ) = UniformText() |> UniformText.style (?MinSize = MinSize, ?Mode = Mode) static member style ( - [<Optional; DefaultParameterValue(null)>] ?MinSize: int, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.UniformTextMode + ?MinSize: int, + ?Mode: StyleParam.UniformTextMode ) = (fun (uniformText: UniformText) -> - MinSize |> DynObj.setValueOpt uniformText "minsize" - Mode |> DynObj.setValueOptBy uniformText "mode" StyleParam.UniformTextMode.convert - - uniformText) + uniformText + |> DynObj.withOptionalProperty "minsize" MinSize + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.UniformTextMode.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs index f0607cf74..db833c261 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs @@ -10,14 +10,14 @@ type UpdateMenuButton() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Args: seq<DynamicObj>, - [<Optional; DefaultParameterValue(null)>] ?Args2: seq<DynamicObj>, - [<Optional; DefaultParameterValue(null)>] ?Execute: bool, - [<Optional; DefaultParameterValue(null)>] ?Label: string, - [<Optional; DefaultParameterValue(null)>] ?Method: StyleParam.UpdateMethod, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?Args: seq<DynamicObj>, + ?Args2: seq<DynamicObj>, + ?Execute: bool, + ?Label: string, + ?Method: StyleParam.UpdateMethod, + ?Name: string, + ?TemplateItemName: string, + ?Visible: bool ) = UpdateMenuButton() |> UpdateMenuButton.style ( @@ -34,50 +34,49 @@ type UpdateMenuButton() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Args: seq<DynamicObj>, - [<Optional; DefaultParameterValue(null)>] ?Args2: seq<DynamicObj>, - [<Optional; DefaultParameterValue(null)>] ?Execute: bool, - [<Optional; DefaultParameterValue(null)>] ?Label: string, - [<Optional; DefaultParameterValue(null)>] ?Method: StyleParam.UpdateMethod, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?Args: seq<DynamicObj>, + ?Args2: seq<DynamicObj>, + ?Execute: bool, + ?Label: string, + ?Method: StyleParam.UpdateMethod, + ?Name: string, + ?TemplateItemName: string, + ?Visible: bool ) = (fun (updateMenuButton: UpdateMenuButton) -> - Args |> DynObj.setValueOpt updateMenuButton "args" - Args2 |> DynObj.setValueOpt updateMenuButton "args2" - Execute |> DynObj.setValueOpt updateMenuButton "execute" - Label |> DynObj.setValueOpt updateMenuButton "label" - Method |> DynObj.setValueOptBy updateMenuButton "method" StyleParam.UpdateMethod.convert - Name |> DynObj.setValueOpt updateMenuButton "name" - TemplateItemName |> DynObj.setValueOpt updateMenuButton "templateitemname" - Visible |> DynObj.setValueOpt updateMenuButton "visible" - - - updateMenuButton) + updateMenuButton + |> DynObj.withOptionalProperty "args" Args + |> DynObj.withOptionalProperty "args2" Args2 + |> DynObj.withOptionalProperty "execute" Execute + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalPropertyBy "method" Method StyleParam.UpdateMethod.convert + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "visible" Visible + ) type UpdateMenu() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Active: int, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Buttons: seq<UpdateMenuButton>, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.UpdateMenuDirection, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Pad: Padding, - [<Optional; DefaultParameterValue(null)>] ?ShowActive: bool, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.UpdateMenuType, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition + ?Active: int, + ?BGColor: Color, + ?BorderColor: Color, + ?Buttons: seq<UpdateMenuButton>, + ?Direction: StyleParam.UpdateMenuDirection, + ?Font: Font, + ?Name: string, + ?Pad: Padding, + ?ShowActive: bool, + ?TemplateItemName: string, + ?Type: StyleParam.UpdateMenuType, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition ) = UpdateMenu() |> UpdateMenu.style ( @@ -102,40 +101,40 @@ type UpdateMenu() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Active: int, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Buttons: seq<UpdateMenuButton>, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.UpdateMenuDirection, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Pad: Padding, - [<Optional; DefaultParameterValue(null)>] ?ShowActive: bool, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.UpdateMenuType, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?XAnchor: StyleParam.XAnchorPosition, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?YAnchor: StyleParam.YAnchorPosition + ?Active: int, + ?BGColor: Color, + ?BorderColor: Color, + ?Buttons: seq<UpdateMenuButton>, + ?Direction: StyleParam.UpdateMenuDirection, + ?Font: Font, + ?Name: string, + ?Pad: Padding, + ?ShowActive: bool, + ?TemplateItemName: string, + ?Type: StyleParam.UpdateMenuType, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition ) = (fun (updateMenu: UpdateMenu) -> - Active |> DynObj.setValueOpt updateMenu "active" - BGColor |> DynObj.setValueOpt updateMenu "bgcolor" - BorderColor |> DynObj.setValueOpt updateMenu "bordercolor" - Buttons |> DynObj.setValueOpt updateMenu "buttons" - Direction |> DynObj.setValueOptBy updateMenu "direction" StyleParam.UpdateMenuDirection.convert - Font |> DynObj.setValueOpt updateMenu "font" - Name |> DynObj.setValueOpt updateMenu "name" - Pad |> DynObj.setValueOpt updateMenu "pad" - ShowActive |> DynObj.setValueOpt updateMenu "showactive" - TemplateItemName |> DynObj.setValueOpt updateMenu "templateitemname" - Type |> DynObj.setValueOptBy updateMenu "type" StyleParam.UpdateMenuType.convert - Visible |> DynObj.setValueOpt updateMenu "visible" - X |> DynObj.setValueOpt updateMenu "x" - XAnchor |> DynObj.setValueOptBy updateMenu "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setValueOpt updateMenu "y" - YAnchor |> DynObj.setValueOptBy updateMenu "yanchor" StyleParam.YAnchorPosition.convert - - updateMenu) + updateMenu + |> DynObj.withOptionalProperty "active" Active + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "buttons" Buttons + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.UpdateMenuDirection.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "showactive" ShowActive + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.UpdateMenuType.convert + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs index 61bd3fe87..93c8a0f0c 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs @@ -44,37 +44,37 @@ type Geo() = /// <param name="LonAxis">Sets the longitudinal axis for this geo trace</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?FitBounds: StyleParam.GeoFitBounds, - [<Optional; DefaultParameterValue(null)>] ?Resolution: StyleParam.GeoResolution, - [<Optional; DefaultParameterValue(null)>] ?Scope: StyleParam.GeoScope, - [<Optional; DefaultParameterValue(null)>] ?Projection: GeoProjection, - [<Optional; DefaultParameterValue(null)>] ?Center: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?ShowCoastLines: bool, - [<Optional; DefaultParameterValue(null)>] ?CoastLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CoastLineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowLand: bool, - [<Optional; DefaultParameterValue(null)>] ?LandColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowOcean: bool, - [<Optional; DefaultParameterValue(null)>] ?OceanColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowLakes: bool, - [<Optional; DefaultParameterValue(null)>] ?LakeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowRivers: bool, - [<Optional; DefaultParameterValue(null)>] ?RiverColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RiverWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowCountries: bool, - [<Optional; DefaultParameterValue(null)>] ?CountryColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CountryWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowSubunits: bool, - [<Optional; DefaultParameterValue(null)>] ?SubunitColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SubunitWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowFrame: bool, - [<Optional; DefaultParameterValue(null)>] ?FrameColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FrameWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BgColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LatAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?LonAxis: LinearAxis + ?FitBounds: StyleParam.GeoFitBounds, + ?Resolution: StyleParam.GeoResolution, + ?Scope: StyleParam.GeoScope, + ?Projection: GeoProjection, + ?Center: (float * float), + ?Visible: bool, + ?Domain: Domain, + ?ShowCoastLines: bool, + ?CoastLineColor: Color, + ?CoastLineWidth: float, + ?ShowLand: bool, + ?LandColor: Color, + ?ShowOcean: bool, + ?OceanColor: Color, + ?ShowLakes: bool, + ?LakeColor: Color, + ?ShowRivers: bool, + ?RiverColor: Color, + ?RiverWidth: float, + ?ShowCountries: bool, + ?CountryColor: Color, + ?CountryWidth: float, + ?ShowSubunits: bool, + ?SubunitColor: Color, + ?SubunitWidth: float, + ?ShowFrame: bool, + ?FrameColor: Color, + ?FrameWidth: float, + ?BgColor: Color, + ?LatAxis: LinearAxis, + ?LonAxis: LinearAxis ) = Geo() |> Geo.style ( @@ -145,78 +145,77 @@ type Geo() = /// <param name="LonAxis">Sets the longitudinal axis for this geo trace</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?FitBounds: StyleParam.GeoFitBounds, - [<Optional; DefaultParameterValue(null)>] ?Resolution: StyleParam.GeoResolution, - [<Optional; DefaultParameterValue(null)>] ?Scope: StyleParam.GeoScope, - [<Optional; DefaultParameterValue(null)>] ?Projection: GeoProjection, - [<Optional; DefaultParameterValue(null)>] ?Center: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?ShowCoastLines: bool, - [<Optional; DefaultParameterValue(null)>] ?CoastLineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CoastLineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowLand: bool, - [<Optional; DefaultParameterValue(null)>] ?LandColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowOcean: bool, - [<Optional; DefaultParameterValue(null)>] ?OceanColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowLakes: bool, - [<Optional; DefaultParameterValue(null)>] ?LakeColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowRivers: bool, - [<Optional; DefaultParameterValue(null)>] ?RiverColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RiverWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowCountries: bool, - [<Optional; DefaultParameterValue(null)>] ?CountryColor: Color, - [<Optional; DefaultParameterValue(null)>] ?CountryWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowSubunits: bool, - [<Optional; DefaultParameterValue(null)>] ?SubunitColor: Color, - [<Optional; DefaultParameterValue(null)>] ?SubunitWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowFrame: bool, - [<Optional; DefaultParameterValue(null)>] ?FrameColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FrameWidth: float, - [<Optional; DefaultParameterValue(null)>] ?BgColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LatAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?LonAxis: LinearAxis + ?FitBounds: StyleParam.GeoFitBounds, + ?Resolution: StyleParam.GeoResolution, + ?Scope: StyleParam.GeoScope, + ?Projection: GeoProjection, + ?Center: (float * float), + ?Visible: bool, + ?Domain: Domain, + ?ShowCoastLines: bool, + ?CoastLineColor: Color, + ?CoastLineWidth: float, + ?ShowLand: bool, + ?LandColor: Color, + ?ShowOcean: bool, + ?OceanColor: Color, + ?ShowLakes: bool, + ?LakeColor: Color, + ?ShowRivers: bool, + ?RiverColor: Color, + ?RiverWidth: float, + ?ShowCountries: bool, + ?CountryColor: Color, + ?CountryWidth: float, + ?ShowSubunits: bool, + ?SubunitColor: Color, + ?SubunitWidth: float, + ?ShowFrame: bool, + ?FrameColor: Color, + ?FrameWidth: float, + ?BgColor: Color, + ?LatAxis: LinearAxis, + ?LonAxis: LinearAxis ) = - (fun (geo: Geo) -> + fun (geo: Geo) -> - Domain |> DynObj.setValueOpt geo "domain" - FitBounds |> DynObj.setValueOptBy geo "fitbounds" StyleParam.GeoFitBounds.convert - Resolution |> DynObj.setValueOptBy geo "resolution" StyleParam.GeoResolution.convert - Scope |> DynObj.setValueOptBy geo "scope" StyleParam.GeoScope.convert - Projection |> DynObj.setValueOpt geo "projection" + let center = + Center + |> Option.map (fun (lon, lat) -> + DynamicObj() + |> DynObj.withProperty "lon" lon + |> DynObj.withProperty "lat" lat + ) - Center - |> Option.map (fun (lon, lat) -> - let t = DynamicObj() - t?lon <- lon - t?lat <- lat - t) - |> DynObj.setValueOpt geo "center" - - Visible |> DynObj.setValueOpt geo "visible" - ShowCoastLines |> DynObj.setValueOpt geo "showcoastline" - CoastLineColor |> DynObj.setValueOpt geo "coastlinecolor" - CoastLineWidth |> DynObj.setValueOpt geo "coastlinewidth" - ShowLand |> DynObj.setValueOpt geo "showland" - LandColor |> DynObj.setValueOpt geo "landcolor" - ShowOcean |> DynObj.setValueOpt geo "showocean" - OceanColor |> DynObj.setValueOpt geo "oceancolor" - ShowLakes |> DynObj.setValueOpt geo "showlakes" - LakeColor |> DynObj.setValueOpt geo "lakecolor" - ShowRivers |> DynObj.setValueOpt geo "showrivers" - RiverColor |> DynObj.setValueOpt geo "rivercolor" - RiverWidth |> DynObj.setValueOpt geo "riverwidth" - ShowCountries |> DynObj.setValueOpt geo "showcountries" - CountryColor |> DynObj.setValueOpt geo "countrycolor" - CountryWidth |> DynObj.setValueOpt geo "countrywidth" - ShowSubunits |> DynObj.setValueOpt geo "showsubunits" - SubunitColor |> DynObj.setValueOpt geo "subunitcolor" - SubunitWidth |> DynObj.setValueOpt geo "subunitwidth" - ShowFrame |> DynObj.setValueOpt geo "showframe" - FrameColor |> DynObj.setValueOpt geo "framecolor" - FrameWidth |> DynObj.setValueOpt geo "framewidth" - BgColor |> DynObj.setValueOpt geo "bgcolor" - LatAxis |> DynObj.setValueOpt geo "lataxis" - LonAxis |> DynObj.setValueOpt geo "lonaxis" - - geo) + geo + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "fitbounds" FitBounds StyleParam.GeoFitBounds.convert + |> DynObj.withOptionalPropertyBy "resolution" Resolution StyleParam.GeoResolution.convert + |> DynObj.withOptionalPropertyBy "scope" Scope StyleParam.GeoScope.convert + |> DynObj.withOptionalProperty "projection" Projection + |> DynObj.withOptionalProperty "center" center + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "showcoastline" ShowCoastLines + |> DynObj.withOptionalProperty "coastlinecolor" CoastLineColor + |> DynObj.withOptionalProperty "coastlinewidth" CoastLineWidth + |> DynObj.withOptionalProperty "showland" ShowLand + |> DynObj.withOptionalProperty "landcolor" LandColor + |> DynObj.withOptionalProperty "showocean" ShowOcean + |> DynObj.withOptionalProperty "oceancolor" OceanColor + |> DynObj.withOptionalProperty "showlakes" ShowLakes + |> DynObj.withOptionalProperty "lakecolor" LakeColor + |> DynObj.withOptionalProperty "showrivers" ShowRivers + |> DynObj.withOptionalProperty "rivercolor" RiverColor + |> DynObj.withOptionalProperty "riverwidth" RiverWidth + |> DynObj.withOptionalProperty "showcountries" ShowCountries + |> DynObj.withOptionalProperty "countrycolor" CountryColor + |> DynObj.withOptionalProperty "countrywidth" CountryWidth + |> DynObj.withOptionalProperty "showsubunits" ShowSubunits + |> DynObj.withOptionalProperty "subunitcolor" SubunitColor + |> DynObj.withOptionalProperty "subunitwidth" SubunitWidth + |> DynObj.withOptionalProperty "showframe" ShowFrame + |> DynObj.withOptionalProperty "framecolor" FrameColor + |> DynObj.withOptionalProperty "framewidth" FrameWidth + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "lataxis" LatAxis + |> DynObj.withOptionalProperty "lonaxis" LonAxis diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs index 1bb3163fd..7124b42d0 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs @@ -15,9 +15,9 @@ type GeoProjectionRotation() = /// <param name="Roll">Roll the map (in degrees) For example, a roll of "180" makes the map appear upside down.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Longitude: float, - [<Optional; DefaultParameterValue(null)>] ?Latitude: float, - [<Optional; DefaultParameterValue(null)>] ?Roll: int + ?Longitude: float, + ?Latitude: float, + ?Roll: int ) = GeoProjectionRotation() |> GeoProjectionRotation.style (?Longitude = Longitude, ?Latitude = Latitude, ?Roll = Roll) @@ -28,16 +28,16 @@ type GeoProjectionRotation() = /// <param name="Roll">Roll the map (in degrees) For example, a roll of "180" makes the map appear upside down.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Longitude: float, - [<Optional; DefaultParameterValue(null)>] ?Latitude: float, - [<Optional; DefaultParameterValue(null)>] ?Roll: int + ?Longitude: float, + ?Latitude: float, + ?Roll: int ) = - (fun (rotation: GeoProjectionRotation) -> - Longitude |> DynObj.setValueOpt rotation "lon" - Latitude |> DynObj.setValueOpt rotation "lat" - Roll |> DynObj.setValueOpt rotation "roll" + fun (rotation: GeoProjectionRotation) -> - rotation) + rotation + |> DynObj.withOptionalProperty "lon" Longitude + |> DynObj.withOptionalProperty "lat" Latitude + |> DynObj.withOptionalProperty "roll" Roll /// <summary>Determines the map projection in geo traces.</summary> type GeoProjection() = @@ -51,9 +51,9 @@ type GeoProjection() = static member init ( projectionType: StyleParam.GeoProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Rotation: GeoProjectionRotation, - [<Optional; DefaultParameterValue(null)>] ?Parallels: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Scale: float + ?Rotation: GeoProjectionRotation, + ?Parallels: (float * float), + ?Scale: float ) = GeoProjection() |> GeoProjection.style ( @@ -71,17 +71,14 @@ type GeoProjection() = static member style ( projectionType: StyleParam.GeoProjectionType, - [<Optional; DefaultParameterValue(null)>] ?Rotation: GeoProjectionRotation, - [<Optional; DefaultParameterValue(null)>] ?Parallels: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Scale: float + ?Rotation: GeoProjectionRotation, + ?Parallels: (float * float), + ?Scale: float ) = - (fun (projection: GeoProjection) -> + fun (projection: GeoProjection) -> - projectionType |> StyleParam.GeoProjectionType.convert |> DynObj.setValue projection "type" - - Parallels |> Option.map (fun (a, b) -> sprintf "[%f,%f]" a b) |> DynObj.setValueOpt projection "parallels" - - Rotation |> DynObj.setValueOpt projection "rotation" - Scale |> DynObj.setValueOpt projection "scale" - - projection) + projection + |> DynObj.withProperty "type" (StyleParam.GeoProjectionType.convert projectionType) + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalPropertyBy "parallels" Parallels (fun (a, b) -> sprintf "[%f,%f]" a b) + |> DynObj.withOptionalProperty "scale" Scale diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs index d65351e0d..23485fe1e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs @@ -24,15 +24,15 @@ type Mapbox() = /// <param name="Layers">Sets the layers of this Mapbox</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?AccessToken: string, - [<Optional; DefaultParameterValue(null)>] ?Style: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?Bounds: MapboxBounds, - [<Optional; DefaultParameterValue(null)>] ?Center: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Zoom: float, - [<Optional; DefaultParameterValue(null)>] ?Bearing: float, - [<Optional; DefaultParameterValue(null)>] ?Pitch: float, - [<Optional; DefaultParameterValue(null)>] ?Layers: seq<MapboxLayer> + ?Domain: Domain, + ?AccessToken: string, + ?Style: StyleParam.MapboxStyle, + ?Bounds: MapboxBounds, + ?Center: (float * float), + ?Zoom: float, + ?Bearing: float, + ?Pitch: float, + ?Layers: seq<MapboxLayer> ) = Mapbox() |> Mapbox.style ( @@ -59,34 +59,33 @@ type Mapbox() = /// <param name="Layers">Sets the layers of this Mapbox</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?AccessToken: string, - [<Optional; DefaultParameterValue(null)>] ?Style: StyleParam.MapboxStyle, - [<Optional; DefaultParameterValue(null)>] ?Bounds: MapboxBounds, - [<Optional; DefaultParameterValue(null)>] ?Center: (float * float), - [<Optional; DefaultParameterValue(null)>] ?Zoom: float, - [<Optional; DefaultParameterValue(null)>] ?Bearing: float, - [<Optional; DefaultParameterValue(null)>] ?Pitch: float, - [<Optional; DefaultParameterValue(null)>] ?Layers: seq<MapboxLayer> + ?Domain: Domain, + ?AccessToken: string, + ?Style: StyleParam.MapboxStyle, + ?Bounds: MapboxBounds, + ?Center: (float * float), + ?Zoom: float, + ?Bearing: float, + ?Pitch: float, + ?Layers: seq<MapboxLayer> ) = - (fun (mapBox: Mapbox) -> + fun (mapBox: Mapbox) -> - Domain |> DynObj.setValueOpt mapBox "domain" - AccessToken |> DynObj.setValueOpt mapBox "accesstoken" - Style |> DynObj.setValueOptBy mapBox "style" StyleParam.MapboxStyle.convert - Bounds |> DynObj.setValueOpt mapBox "bounds" + let center = + Center + |> Option.map (fun (lon, lat) -> + DynamicObj() + |> DynObj.withProperty "lon" lon + |> DynObj.withProperty "lat" lat + ) - Center - |> Option.map (fun (lon, lat) -> - let t = DynamicObj() - t?lon <- lon - t?lat <- lat - t) - |> DynObj.setValueOpt mapBox "center" - - Zoom |> DynObj.setValueOpt mapBox "zoom" - Bearing |> DynObj.setValueOpt mapBox "bearing" - Pitch |> DynObj.setValueOpt mapBox "pitch" - Layers |> DynObj.setValueOpt mapBox "layers" - - mapBox) + mapBox + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "accesstoken" AccessToken + |> DynObj.withOptionalPropertyBy "style" Style StyleParam.MapboxStyle.convert + |> DynObj.withOptionalProperty "bounds" Bounds + |> DynObj.withOptionalProperty "center" center + |> DynObj.withOptionalProperty "zoom" Zoom + |> DynObj.withOptionalProperty "bearing" Bearing + |> DynObj.withOptionalProperty "pitch" Pitch + |> DynObj.withOptionalProperty "layers" Layers diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs index 9de578b7a..3f442a4af 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs @@ -19,10 +19,10 @@ type MapboxBounds() = /// <param name="West">Sets the minimum latitude of the map (in degrees North) if `east`, `west` and `north` are declared.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?East: float, - [<Optional; DefaultParameterValue(null)>] ?North: float, - [<Optional; DefaultParameterValue(null)>] ?South: float, - [<Optional; DefaultParameterValue(null)>] ?West: float + ?East: float, + ?North: float, + ?South: float, + ?West: float ) = MapboxBounds() |> MapboxBounds.style (?East = East, ?North = North, ?South = South, ?West = West) @@ -35,16 +35,15 @@ type MapboxBounds() = /// <param name="West">Sets the minimum latitude of the map (in degrees North) if `east`, `west` and `north` are declared.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?East: float, - [<Optional; DefaultParameterValue(null)>] ?North: float, - [<Optional; DefaultParameterValue(null)>] ?South: float, - [<Optional; DefaultParameterValue(null)>] ?West: float + ?East: float, + ?North: float, + ?South: float, + ?West: float ) = - (fun (mapboxBounds: MapboxBounds) -> + fun (mapboxBounds: MapboxBounds) -> - East |> DynObj.setValueOpt mapboxBounds "east" - North |> DynObj.setValueOpt mapboxBounds "north" - South |> DynObj.setValueOpt mapboxBounds "south" - West |> DynObj.setValueOpt mapboxBounds "west" - - mapboxBounds) + mapboxBounds + |> DynObj.withOptionalProperty "east" East + |> DynObj.withOptionalProperty "north" North + |> DynObj.withOptionalProperty "south" South + |> DynObj.withOptionalProperty "west" West \ No newline at end of file diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs index d1ddccb7d..13b399e12 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs @@ -23,14 +23,14 @@ type MapboxCluster() = /// <param name="MultiStep">Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?MaxZoom: float, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Step: int, - [<Optional; DefaultParameterValue(null)>] ?MultiStep: seq<int> + ?Color: Color, + ?Enabled: bool, + ?MaxZoom: float, + ?Opacity: float, + ?Size: int, + ?MultiSize: seq<int>, + ?Step: int, + ?MultiStep: seq<int> ) = MapboxCluster() |> MapboxCluster.style ( @@ -57,23 +57,21 @@ type MapboxCluster() = /// <param name="MultiStep">Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?MaxZoom: float, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Step: int, - [<Optional; DefaultParameterValue(null)>] ?MultiStep: seq<int> + ?Color: Color, + ?Enabled: bool, + ?MaxZoom: float, + ?Opacity: float, + ?Size: int, + ?MultiSize: seq<int>, + ?Step: int, + ?MultiStep: seq<int> ) = - (fun (mapboxCluster: MapboxCluster) -> - - Color |> DynObj.setValueOpt mapboxCluster "color" - Enabled |> DynObj.setValueOpt mapboxCluster "enabled" - MaxZoom |> DynObj.setValueOpt mapboxCluster "maxzoom" - Opacity |> DynObj.setValueOpt mapboxCluster "opacity" - (Size, MultiSize) |> DynObj.setSingleOrMultiOpt mapboxCluster "size" - (Step, MultiStep) |> DynObj.setSingleOrMultiOpt mapboxCluster "step" - - mapboxCluster) + fun (mapboxCluster: MapboxCluster) -> + mapboxCluster + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalProperty "maxzoom" MaxZoom + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalSingleOrMultiProperty"size" (Size, MultiSize) + |> DynObj.withOptionalSingleOrMultiProperty"step" (Step, MultiStep) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs index 548a7172c..399707ee8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs @@ -14,23 +14,23 @@ type MapboxLayer() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?SourceType: StyleParam.MapboxLayerSourceType, - [<Optional; DefaultParameterValue(null)>] ?Source: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?SourceLayer: string, - [<Optional; DefaultParameterValue(null)>] ?SourceAttribution: string, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.MapboxLayerType, - [<Optional; DefaultParameterValue(null)>] ?Coordinates: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MinZoom: float, - [<Optional; DefaultParameterValue(null)>] ?MaxZoom: float, - [<Optional; DefaultParameterValue(null)>] ?CircleRadius: float, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?FillOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Symbol: MapboxLayerSymbol, - [<Optional; DefaultParameterValue(null)>] ?Name: string + ?Visible: bool, + ?SourceType: StyleParam.MapboxLayerSourceType, + ?Source: #IConvertible, + ?SourceLayer: string, + ?SourceAttribution: string, + ?Type: StyleParam.MapboxLayerType, + ?Coordinates: seq<#IConvertible * #IConvertible>, + ?Below: string, + ?Color: Color, + ?Opacity: float, + ?MinZoom: float, + ?MaxZoom: float, + ?CircleRadius: float, + ?Line: Line, + ?FillOutlineColor: Color, + ?Symbol: MapboxLayerSymbol, + ?Name: string ) = MapboxLayer() |> MapboxLayer.style ( @@ -57,56 +57,53 @@ type MapboxLayer() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?SourceType: StyleParam.MapboxLayerSourceType, - [<Optional; DefaultParameterValue(null)>] ?Source: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?SourceLayer: string, - [<Optional; DefaultParameterValue(null)>] ?SourceAttribution: string, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.MapboxLayerType, - [<Optional; DefaultParameterValue(null)>] ?Coordinates: seq<#IConvertible * #IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MinZoom: float, - [<Optional; DefaultParameterValue(null)>] ?MaxZoom: float, - [<Optional; DefaultParameterValue(null)>] ?CircleRadius: float, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?FillOutlineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Symbol: MapboxLayerSymbol, - [<Optional; DefaultParameterValue(null)>] ?Name: string + ?Visible: bool, + ?SourceType: StyleParam.MapboxLayerSourceType, + ?Source: #IConvertible, + ?SourceLayer: string, + ?SourceAttribution: string, + ?Type: StyleParam.MapboxLayerType, + ?Coordinates: seq<#IConvertible * #IConvertible>, + ?Below: string, + ?Color: Color, + ?Opacity: float, + ?MinZoom: float, + ?MaxZoom: float, + ?CircleRadius: float, + ?Line: Line, + ?FillOutlineColor: Color, + ?Symbol: MapboxLayerSymbol, + ?Name: string ) = - (fun (mapBoxLayer: MapboxLayer) -> + fun (mapBoxLayer: MapboxLayer) -> - Visible |> DynObj.setValueOpt mapBoxLayer "visible" - SourceType |> DynObj.setValueOptBy mapBoxLayer "sourcetype" StyleParam.MapboxLayerSourceType.convert - Source |> DynObj.setValueOpt mapBoxLayer "source" - SourceLayer |> DynObj.setValueOpt mapBoxLayer "sourcelayer" - SourceAttribution |> DynObj.setValueOpt mapBoxLayer "sourceattribution" - Type |> DynObj.setValueOptBy mapBoxLayer "type" StyleParam.MapboxLayerType.convert - Coordinates |> DynObj.setValueOpt mapBoxLayer "coordinates" - Below |> DynObj.setValueOpt mapBoxLayer "below" - Color |> DynObj.setValueOpt mapBoxLayer "color" - Opacity |> DynObj.setValueOpt mapBoxLayer "opacity" - MinZoom |> DynObj.setValueOpt mapBoxLayer "minzoom" - MaxZoom |> DynObj.setValueOpt mapBoxLayer "maxzoom" + let circle = + CircleRadius + |> Option.map (fun r -> + DynamicObj() |> DynObj.withProperty "radius" r + ) - CircleRadius - |> Option.map (fun r -> - let circle = DynamicObj() - circle?radius <- r - circle) - |> DynObj.setValueOpt mapBoxLayer "circle" + let fill = + FillOutlineColor + |> Option.map (fun c -> + DynamicObj() |> DynObj.withProperty "outlinecolor" c + ) - Line |> DynObj.setValueOpt mapBoxLayer "line" - - FillOutlineColor - |> Option.map (fun c -> - let fill = DynamicObj() - fill?outlinecolor <- c - fill) - |> DynObj.setValueOpt mapBoxLayer "fill" - - Symbol |> DynObj.setValueOpt mapBoxLayer "symbol" - Name |> DynObj.setValueOpt mapBoxLayer "name" - - mapBoxLayer) + mapBoxLayer + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "sourcetype" SourceType StyleParam.MapboxLayerSourceType.convert + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalProperty "sourcelayer" SourceLayer + |> DynObj.withOptionalProperty "sourceattribution" SourceAttribution + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.MapboxLayerType.convert + |> DynObj.withOptionalProperty "coordinates" Coordinates + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "minzoom" MinZoom + |> DynObj.withOptionalProperty "maxzoom" MaxZoom + |> DynObj.withOptionalProperty "circle" circle + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "fill" fill + |> DynObj.withOptionalProperty "symbol" Symbol + |> DynObj.withOptionalProperty "name" Name diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs index 2d2277c5b..915f042fd 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs @@ -14,12 +14,12 @@ type MapboxLayerSymbol() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Icon: string, - [<Optional; DefaultParameterValue(null)>] ?IconSize: float, - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?Placement: StyleParam.MapboxLayerSymbolPlacement, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition + ?Icon: string, + ?IconSize: float, + ?Text: string, + ?Placement: StyleParam.MapboxLayerSymbolPlacement, + ?TextFont: Font, + ?TextPosition: StyleParam.TextPosition ) = MapboxLayerSymbol() |> MapboxLayerSymbol.style ( @@ -35,24 +35,19 @@ type MapboxLayerSymbol() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Icon: string, - [<Optional; DefaultParameterValue(null)>] ?IconSize: float, - [<Optional; DefaultParameterValue(null)>] ?Text: string, - [<Optional; DefaultParameterValue(null)>] ?Placement: StyleParam.MapboxLayerSymbolPlacement, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition + ?Icon: string, + ?IconSize: float, + ?Text: string, + ?Placement: StyleParam.MapboxLayerSymbolPlacement, + ?TextFont: Font, + ?TextPosition: StyleParam.TextPosition ) = - (fun (mapBoxLayerSymbol: MapboxLayerSymbol) -> - - Icon |> DynObj.setValueOpt mapBoxLayerSymbol "icon" - IconSize |> DynObj.setValueOpt mapBoxLayerSymbol "iconsize" - Text |> DynObj.setValueOpt mapBoxLayerSymbol "text" - - Placement - |> DynObj.setValueOptBy mapBoxLayerSymbol "placement" StyleParam.MapboxLayerSymbolPlacement.convert - - TextFont |> DynObj.setValueOpt mapBoxLayerSymbol "textfont" - TextPosition |> DynObj.setValueOptBy mapBoxLayerSymbol "textposition" StyleParam.TextPosition.convert - - - mapBoxLayerSymbol) + fun (mapBoxLayerSymbol: MapboxLayerSymbol) -> + + mapBoxLayerSymbol + |> DynObj.withOptionalProperty "icon" Icon + |> DynObj.withOptionalProperty "iconsize" IconSize + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalPropertyBy "placement" Placement StyleParam.MapboxLayerSymbolPlacement.convert + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textposition" TextPosition StyleParam.TextPosition.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs index 8d885cf98..fdda0020b 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs @@ -60,51 +60,51 @@ type AngularAxis() = /// <param name="Layer">Sets the layer on which this axis is displayed. If "above traces", this axis is displayed above all the subplot's traces If "below traces", this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to "false" to show markers and/or text nodes above this axis.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ThetaUnit: StyleParam.AngularUnit, - [<Optional; DefaultParameterValue(null)>] ?Period: float, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Rotation: int, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer + ?Visible: bool, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?ThetaUnit: StyleParam.AngularUnit, + ?Period: float, + ?Direction: StyleParam.Direction, + ?Rotation: int, + ?HoverFormat: string, + ?UIRevision: #IConvertible, + ?Color: Color, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: int, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?SeparateThousands: bool, + ?TickFont: Font, + ?TickAngle: int, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?TickLabelStep: int, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer ) = AngularAxis() |> AngularAxis.style ( @@ -205,98 +205,97 @@ type AngularAxis() = /// <param name="Layer">Sets the layer on which this axis is displayed. If "above traces", this axis is displayed above all the subplot's traces If "below traces", this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to "false" to show markers and/or text nodes above this axis.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ThetaUnit: StyleParam.AngularUnit, - [<Optional; DefaultParameterValue(null)>] ?Period: float, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Rotation: int, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer + ?Visible: bool, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?ThetaUnit: StyleParam.AngularUnit, + ?Period: float, + ?Direction: StyleParam.Direction, + ?Rotation: int, + ?HoverFormat: string, + ?UIRevision: #IConvertible, + ?Color: Color, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: int, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?SeparateThousands: bool, + ?TickFont: Font, + ?TickAngle: int, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?TickLabelStep: int, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer ) = fun (angularAxis: AngularAxis) -> - Visible |> DynObj.setValueOpt angularAxis "visible" - AxisType |> DynObj.setValueOptBy angularAxis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setValueOptBy angularAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - CategoryOrder |> DynObj.setValueOptBy angularAxis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setValueOpt angularAxis "categoryarray" - ThetaUnit |> DynObj.setValueOpt angularAxis "thetaunit" - Period |> DynObj.setValueOpt angularAxis "period" - Direction |> DynObj.setValueOptBy angularAxis "direction" StyleParam.Direction.convert - Rotation |> DynObj.setValueOpt angularAxis "rotation" - HoverFormat |> DynObj.setValueOpt angularAxis "hoverformat" - UIRevision |> DynObj.setValueOpt angularAxis "uirevision" - Color |> DynObj.setValueOpt angularAxis "color" - ShowLine |> DynObj.setValueOpt angularAxis "showline" - LineColor |> DynObj.setValueOpt angularAxis "linecolor" - LineWidth |> DynObj.setValueOpt angularAxis "linewidth" - ShowGrid |> DynObj.setValueOpt angularAxis "showgrid" - GridColor |> DynObj.setValueOpt angularAxis "gridcolor" - GridDash |> DynObj.setValueOptBy angularAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt angularAxis "gridwidth" - TickMode |> DynObj.setValueOptBy angularAxis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setValueOpt angularAxis "nticks" - Tick0 |> DynObj.setValueOpt angularAxis "tick0" - DTick |> DynObj.setValueOpt angularAxis "dtick" - TickVals |> DynObj.setValueOpt angularAxis "tickvals" - TickText |> DynObj.setValueOpt angularAxis "ticktext" - Ticks |> DynObj.setValueOptBy angularAxis "ticks" StyleParam.TickOptions.convert - TickLen |> DynObj.setValueOpt angularAxis "ticklen" - TickWidth |> DynObj.setValueOpt angularAxis "tickwidth" - TickColor |> DynObj.setValueOpt angularAxis "tickcolor" - ShowTickLabels |> DynObj.setValueOpt angularAxis "showticklabels" - ShowTickPrefix |> DynObj.setValueOptBy angularAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setValueOpt angularAxis "tickprefix" - ShowTickSuffix |> DynObj.setValueOptBy angularAxis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setValueOpt angularAxis "ticksuffix" - ShowExponent |> DynObj.setValueOptBy angularAxis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setValueOptBy angularAxis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setValueOpt angularAxis "minexponent" - SeparateThousands |> DynObj.setValueOpt angularAxis "separatethousands" - TickFont |> DynObj.setValueOpt angularAxis "tickfont" - TickAngle |> DynObj.setValueOpt angularAxis "tickangle" - TickFormat |> DynObj.setValueOpt angularAxis "tickformat" - TickFormatStops |> DynObj.setValueOpt angularAxis "tickformatstops" - TickLabelStep |> DynObj.setValueOpt angularAxis "ticklabelstep" - LabelAlias |> DynObj.setValueOpt angularAxis "labelalias" - Layer |> DynObj.setValueOptBy angularAxis "layer" StyleParam.Layer.convert - angularAxis + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "type" AxisType StyleParam.AxisType.convert + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalPropertyBy "categoryorder" CategoryOrder StyleParam.CategoryOrder.convert + |> DynObj.withOptionalProperty "categoryarray" CategoryArray + |> DynObj.withOptionalProperty "thetaunit" ThetaUnit + |> DynObj.withOptionalProperty "period" Period + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.Direction.convert + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "minexponent" MinExponent + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs index af2793048..7e11dbefb 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs @@ -22,14 +22,14 @@ type Polar() = /// <param name="UIRevision">Controls persistence of user-driven changes in axis attributes, if not overridden in the individual axes. Defaults to `layout.uirevision`.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Sector: float * float, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RadialAxis: RadialAxis, - [<Optional; DefaultParameterValue(null)>] ?AngularAxis: AngularAxis, - [<Optional; DefaultParameterValue(null)>] ?GridShape: StyleParam.PolarGridShape, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Domain: Domain, + ?Sector: float * float, + ?Hole: float, + ?BGColor: Color, + ?RadialAxis: RadialAxis, + ?AngularAxis: AngularAxis, + ?GridShape: StyleParam.PolarGridShape, + ?UIRevision: string ) = Polar() |> Polar.style ( @@ -58,38 +58,36 @@ type Polar() = /// <param name="BarGap">Sets the gap (in plot fraction) between bars of adjacent location coordinates.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Sector: float * float, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?RadialAxis: RadialAxis, - [<Optional; DefaultParameterValue(null)>] ?AngularAxis: AngularAxis, - [<Optional; DefaultParameterValue(null)>] ?GridShape: StyleParam.PolarGridShape, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string, - [<Optional; DefaultParameterValue(null)>] ?BarMode: StyleParam.BarMode, - [<Optional; DefaultParameterValue(null)>] ?BarGap: float + ?Domain: Domain, + ?Sector: float * float, + ?Hole: float, + ?BGColor: Color, + ?RadialAxis: RadialAxis, + ?AngularAxis: AngularAxis, + ?GridShape: StyleParam.PolarGridShape, + ?UIRevision: string, + ?BarMode: StyleParam.BarMode, + ?BarGap: float ) = - (fun (polar: Polar) -> - - Domain |> DynObj.setValueOpt polar "domain" - Sector |> DynObj.setValueOptBy polar "sector" (fun (a, b) -> [| a; b |]) - Hole |> DynObj.setValueOpt polar "hole" - BGColor |> DynObj.setValueOpt polar "bgcolor" - RadialAxis |> DynObj.setValueOpt polar "radialaxis" - AngularAxis |> DynObj.setValueOpt polar "angularaxis" - GridShape |> DynObj.setValueOptBy polar "gridshape" StyleParam.PolarGridShape.convert - UIRevision |> DynObj.setValueOpt polar "uirevision" - BarMode |> DynObj.setValueOptBy polar "barmode" StyleParam.BarMode.convert - BarGap |> DynObj.setValueOpt polar "bargap" - - polar) + fun (polar: Polar) -> + polar + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "sector" Sector (fun (a, b) -> [| a; b |]) + |> DynObj.withOptionalProperty "hole" Hole + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "radialaxis" RadialAxis + |> DynObj.withOptionalProperty "angularaxis" AngularAxis + |> DynObj.withOptionalPropertyBy "gridshape" GridShape StyleParam.PolarGridShape.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalPropertyBy "barmode" BarMode StyleParam.BarMode.convert + |> DynObj.withOptionalProperty "bargap" BarGap /// <summary> /// Returns Some(dynamic member value) of the object's underlying DynamicObj when a dynamic member with the given name exists, and None otherwise. /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="polar">The object to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (polar: Polar) = polar.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (polar: Polar) = polar.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns the AngularAxis object of the given polar object. @@ -106,7 +104,7 @@ type Polar() = /// <param name="angularAxis">The new AngularAxis object</param> static member setAngularAxis(angularAxis: AngularAxis) = (fun (polar: Polar) -> - polar.SetValue("angularaxis", angularAxis) + polar.SetProperty("angularaxis", angularAxis) polar) /// <summary> @@ -124,5 +122,5 @@ type Polar() = /// <param name="radialAxis">The new RadialAxis object</param> static member setRadialAxis(radialAxis: RadialAxis) = (fun (polar: Polar) -> - polar.SetValue("radialaxis", radialAxis) + polar.SetProperty("radialaxis", radialAxis) polar) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs index c97b4274c..582f39162 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs @@ -65,57 +65,57 @@ type RadialAxis() = /// <param name="Calendar">Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar`</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: StyleParam.AutoRange, - [<Optional; DefaultParameterValue(null)>] ?AutoRangeOptions: AutoRangeOptions, - [<Optional; DefaultParameterValue(null)>] ?RangeMode: StyleParam.RangeMode, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Angle: float, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar + ?Visible: bool, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoRangeOptions: AutoRangeOptions, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?Angle: float, + ?Side: StyleParam.Direction, + ?Title: Title, + ?HoverFormat: string, + ?UIRevision: #IConvertible, + ?Color: Color, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: int, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?SeparateThousands: bool, + ?TickFont: Font, + ?TickAngle: int, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?TickLabelStep: int, + ?Calendar: StyleParam.Calendar ) = RadialAxis() |> RadialAxis.style ( @@ -228,110 +228,108 @@ type RadialAxis() = /// <param name="Calendar">Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar`</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [<Optional; DefaultParameterValue(null)>] ?AutoRange: StyleParam.AutoRange, - [<Optional; DefaultParameterValue(null)>] ?AutoRangeOptions: AutoRangeOptions, - [<Optional; DefaultParameterValue(null)>] ?RangeMode: StyleParam.RangeMode, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?CategoryOrder: StyleParam.CategoryOrder, - [<Optional; DefaultParameterValue(null)>] ?CategoryArray: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Angle: float, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickMode: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?NTicks: int, - [<Optional; DefaultParameterValue(null)>] ?Tick0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTick: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickOptions, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?ShowExponent: StyleParam.ShowExponent, - [<Optional; DefaultParameterValue(null)>] ?ExponentFormat: StyleParam.ExponentFormat, - [<Optional; DefaultParameterValue(null)>] ?MinExponent: float, - [<Optional; DefaultParameterValue(null)>] ?SeparateThousands: bool, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormatStops: seq<TickFormatStop>, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?TickLabelStep: int, - [<Optional; DefaultParameterValue(null)>] ?Calendar: StyleParam.Calendar + ?Visible: bool, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoRangeOptions: AutoRangeOptions, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?Angle: float, + ?Side: StyleParam.Direction, + ?Title: Title, + ?HoverFormat: string, + ?UIRevision: #IConvertible, + ?Color: Color, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: int, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?SeparateThousands: bool, + ?TickFont: Font, + ?TickAngle: int, + ?TickFormat: string, + ?TickFormatStops: seq<TickFormatStop>, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?TickLabelStep: int, + ?Calendar: StyleParam.Calendar ) = fun (radialAxis: RadialAxis) -> - - Visible |> DynObj.setValueOpt radialAxis "visible" - AxisType |> DynObj.setValueOptBy radialAxis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setValueOptBy radialAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - AutoRange |> DynObj.setValueOptBy radialAxis "autorange" StyleParam.AutoRange.convert - AutoRangeOptions |> DynObj.setValueOpt radialAxis "autorangeoptions" - RangeMode |> DynObj.setValueOptBy radialAxis "rangemode" StyleParam.RangeMode.convert - Range |> DynObj.setValueOptBy radialAxis "range" StyleParam.Range.convert - CategoryOrder |> DynObj.setValueOptBy radialAxis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setValueOpt radialAxis "categoryarray" - Angle |> DynObj.setValueOpt radialAxis "angle" - Side |> DynObj.setValueOptBy radialAxis "side" StyleParam.Direction.convert - Title |> DynObj.setValueOpt radialAxis "title" - HoverFormat |> DynObj.setValueOpt radialAxis "hoverformat" - UIRevision |> DynObj.setValueOpt radialAxis "uirevision" - Color |> DynObj.setValueOpt radialAxis "color" - ShowLine |> DynObj.setValueOpt radialAxis "showline" - LineColor |> DynObj.setValueOpt radialAxis "linecolor" - LineWidth |> DynObj.setValueOpt radialAxis "linewidth" - MaxAllowed |> DynObj.setValueOpt radialAxis "maxallowed" - MinAllowed |> DynObj.setValueOpt radialAxis "minallowed" - ShowGrid |> DynObj.setValueOpt radialAxis "showgrid" - GridColor |> DynObj.setValueOpt radialAxis "gridcolor" - GridDash |> DynObj.setValueOptBy radialAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt radialAxis "gridwidth" - TickMode |> DynObj.setValueOptBy radialAxis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setValueOpt radialAxis "nticks" - Tick0 |> DynObj.setValueOpt radialAxis "tick0" - DTick |> DynObj.setValueOpt radialAxis "dtick" - TickVals |> DynObj.setValueOpt radialAxis "tickvals" - TickText |> DynObj.setValueOpt radialAxis "ticktext" - Ticks |> DynObj.setValueOptBy radialAxis "ticks" StyleParam.TickOptions.convert - TickLen |> DynObj.setValueOpt radialAxis "ticklen" - TickWidth |> DynObj.setValueOpt radialAxis "tickwidth" - TickColor |> DynObj.setValueOpt radialAxis "tickcolor" - ShowTickLabels |> DynObj.setValueOpt radialAxis "showticklabels" - ShowTickPrefix |> DynObj.setValueOptBy radialAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setValueOpt radialAxis "tickprefix" - ShowTickSuffix |> DynObj.setValueOptBy radialAxis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setValueOpt radialAxis "ticksuffix" - ShowExponent |> DynObj.setValueOptBy radialAxis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setValueOptBy radialAxis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setValueOpt radialAxis "minexponent" - SeparateThousands |> DynObj.setValueOpt radialAxis "separatethousands" - TickFont |> DynObj.setValueOpt radialAxis "tickfont" - TickAngle |> DynObj.setValueOpt radialAxis "tickangle" - TickFormat |> DynObj.setValueOpt radialAxis "tickformat" - TickFormatStops |> DynObj.setValueOpt radialAxis "tickformatstops" - LabelAlias |> DynObj.setValueOpt radialAxis "labelalias" - Layer |> DynObj.setValueOptBy radialAxis "layer" StyleParam.Layer.convert - TickLabelStep |> DynObj.setValueOpt radialAxis "ticklabelstep" - Calendar |> DynObj.setValueOptBy radialAxis "calendar" StyleParam.Calendar.convert - radialAxis + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "type" AxisType StyleParam.AxisType.convert + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalPropertyBy "autorange" AutoRange StyleParam.AutoRange.convert + |> DynObj.withOptionalProperty "autorangeoptions" AutoRangeOptions + |> DynObj.withOptionalPropertyBy "rangemode" RangeMode StyleParam.RangeMode.convert + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "categoryorder" CategoryOrder StyleParam.CategoryOrder.convert + |> DynObj.withOptionalProperty "categoryarray" CategoryArray + |> DynObj.withOptionalProperty "angle" Angle + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Direction.convert + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "maxallowed" MaxAllowed + |> DynObj.withOptionalProperty "minallowed" MinAllowed + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "minexponent" MinExponent + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalPropertyBy "calendar" Calendar StyleParam.Calendar.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs index 5cd120d72..d139a7bf2 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs @@ -39,30 +39,30 @@ type ImaginaryAxis() = /// <param name="Visible">A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?Color: Color, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?HoverFormat: string, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?LineColor: Color, + ?LineWidth: int, + ?ShowGrid: bool, + ?ShowLine: bool, + ?ShowTickLabels: bool, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickLen: int, + ?TickPrefix: string, + ?Ticks: StyleParam.TickLabelPosition, + ?TickSuffix: string, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int, + ?Visible: bool ) = ImaginaryAxis() |> ImaginaryAxis.style ( @@ -122,56 +122,55 @@ type ImaginaryAxis() = /// <param name="Visible">A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?Color: Color, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?HoverFormat: string, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?LineColor: Color, + ?LineWidth: int, + ?ShowGrid: bool, + ?ShowLine: bool, + ?ShowTickLabels: bool, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickLen: int, + ?TickPrefix: string, + ?Ticks: StyleParam.TickLabelPosition, + ?TickSuffix: string, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int, + ?Visible: bool ) = fun (imaginaryAxis: ImaginaryAxis) -> - Color |> DynObj.setValueOpt imaginaryAxis "color" - GridColor |> DynObj.setValueOpt imaginaryAxis "gridcolor" - GridDash |> DynObj.setValueOptBy imaginaryAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt imaginaryAxis "gridwidth" - HoverFormat |> DynObj.setValueOpt imaginaryAxis "hoverformat" - LabelAlias |> DynObj.setValueOpt imaginaryAxis "labelalias" - Layer |> DynObj.setValueOptBy imaginaryAxis "layer" StyleParam.Layer.convert - LineColor |> DynObj.setValueOpt imaginaryAxis "linecolor" - LineWidth |> DynObj.setValueOpt imaginaryAxis "linewidth" - ShowGrid |> DynObj.setValueOpt imaginaryAxis "showgrid" - ShowLine |> DynObj.setValueOpt imaginaryAxis "showline" - ShowTickLabels |> DynObj.setValueOpt imaginaryAxis "showticklabels" - ShowTickSuffix |> DynObj.setValueOptBy imaginaryAxis "showticksuffix" StyleParam.ShowTickOption.convert - ShowTickPrefix |> DynObj.setValueOptBy imaginaryAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickColor |> DynObj.setValueOpt imaginaryAxis "tickcolor" - TickFont |> DynObj.setValueOpt imaginaryAxis "tickfont" - TickFormat |> DynObj.setValueOpt imaginaryAxis "tickformat" - TickLen |> DynObj.setValueOpt imaginaryAxis "ticklen" - TickPrefix |> DynObj.setValueOpt imaginaryAxis "tickprefix" - Ticks |> DynObj.setValueOptBy imaginaryAxis "ticks" StyleParam.TickLabelPosition.convert - TickSuffix |> DynObj.setValueOpt imaginaryAxis "ticksuffix" - TickVals |> DynObj.setValueOpt imaginaryAxis "tickvals" - TickWidth |> DynObj.setValueOpt imaginaryAxis "tickwidth" - Visible |> DynObj.setValueOpt imaginaryAxis "visible" - imaginaryAxis + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "visible" Visible diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs index c15fca2db..dfc74640b 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs @@ -41,32 +41,32 @@ type RealAxis() = /// <param name="Visible">A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?Color: Color, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?HoverFormat: string, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?LineColor: Color, + ?LineWidth: int, + ?ShowGrid: bool, + ?ShowLine: bool, + ?ShowTickLabels: bool, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?Side: StyleParam.Side, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickLen: int, + ?TickPrefix: string, + ?Ticks: StyleParam.TickLabelPosition, + ?TickSuffix: string, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int, + ?Visible: bool ) = RealAxis() |> RealAxis.style ( @@ -129,60 +129,59 @@ type RealAxis() = /// <param name="Visible">A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?GridColor: Color, - [<Optional; DefaultParameterValue(null)>] ?GridDash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?GridWidth: int, - [<Optional; DefaultParameterValue(null)>] ?HoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?LabelAlias: DynamicObj, - [<Optional; DefaultParameterValue(null)>] ?Layer: StyleParam.Layer, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: int, - [<Optional; DefaultParameterValue(null)>] ?ShowGrid: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLine: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowTickSuffix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?ShowTickPrefix: StyleParam.ShowTickOption, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?TickAngle: int, - [<Optional; DefaultParameterValue(null)>] ?TickColor: Color, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: string, - [<Optional; DefaultParameterValue(null)>] ?TickLen: int, - [<Optional; DefaultParameterValue(null)>] ?TickPrefix: string, - [<Optional; DefaultParameterValue(null)>] ?Ticks: StyleParam.TickLabelPosition, - [<Optional; DefaultParameterValue(null)>] ?TickSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?TickVals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?Color: Color, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: int, + ?HoverFormat: string, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?LineColor: Color, + ?LineWidth: int, + ?ShowGrid: bool, + ?ShowLine: bool, + ?ShowTickLabels: bool, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?Side: StyleParam.Side, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickLen: int, + ?TickPrefix: string, + ?Ticks: StyleParam.TickLabelPosition, + ?TickSuffix: string, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int, + ?Visible: bool ) = fun (realAxis: RealAxis) -> - Color |> DynObj.setValueOpt realAxis "color" - GridColor |> DynObj.setValueOpt realAxis "gridcolor" - GridDash |> DynObj.setValueOptBy realAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt realAxis "gridwidth" - HoverFormat |> DynObj.setValueOpt realAxis "hoverformat" - LabelAlias |> DynObj.setValueOpt realAxis "labelalias" - Layer |> DynObj.setValueOptBy realAxis "layer" StyleParam.Layer.convert - LineColor |> DynObj.setValueOpt realAxis "linecolor" - LineWidth |> DynObj.setValueOpt realAxis "linewidth" - ShowGrid |> DynObj.setValueOpt realAxis "showgrid" - ShowLine |> DynObj.setValueOpt realAxis "showline" - ShowTickLabels |> DynObj.setValueOpt realAxis "showticklabels" - ShowTickSuffix |> DynObj.setValueOptBy realAxis "showticksuffix" StyleParam.ShowTickOption.convert - ShowTickPrefix |> DynObj.setValueOptBy realAxis "showtickprefix" StyleParam.ShowTickOption.convert - Side |> DynObj.setValueOptBy realAxis "side" StyleParam.Side.convert - TickAngle |> DynObj.setValueOpt realAxis "tickangle" - TickColor |> DynObj.setValueOpt realAxis "tickcolor" - TickFont |> DynObj.setValueOpt realAxis "tickfont" - TickFormat |> DynObj.setValueOpt realAxis "tickformat" - TickLen |> DynObj.setValueOpt realAxis "ticklen" - TickPrefix |> DynObj.setValueOpt realAxis "tickprefix" - Ticks |> DynObj.setValueOptBy realAxis "ticks" StyleParam.TickLabelPosition.convert - TickSuffix |> DynObj.setValueOpt realAxis "ticksuffix" - TickVals |> DynObj.setValueOpt realAxis "tickvals" - TickWidth |> DynObj.setValueOpt realAxis "tickwidth" - Visible |> DynObj.setValueOpt realAxis "visible" - realAxis + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "visible" Visible diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs index 68d1effdf..7ce43daac 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs @@ -18,10 +18,10 @@ type Smith() = /// <param name="RealAxis">Sets the real axis of this smith subplot</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?ImaginaryAxis: ImaginaryAxis, - [<Optional; DefaultParameterValue(null)>] ?RealAxis: RealAxis + ?BGColor: Color, + ?Domain: Domain, + ?ImaginaryAxis: ImaginaryAxis, + ?RealAxis: RealAxis ) = Smith() |> Smith.style ( @@ -41,26 +41,24 @@ type Smith() = /// <param name="RealAxis">Sets the real axis of this smith subplot</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?ImaginaryAxis: ImaginaryAxis, - [<Optional; DefaultParameterValue(null)>] ?RealAxis: RealAxis + ?BGColor: Color, + ?Domain: Domain, + ?ImaginaryAxis: ImaginaryAxis, + ?RealAxis: RealAxis ) = fun (smith: Smith) -> - - BGColor |> DynObj.setValueOpt smith "bgcolor" - Domain |> DynObj.setValueOpt smith "domain" - ImaginaryAxis |> DynObj.setValueOpt smith "imaginaryaxis" - RealAxis |> DynObj.setValueOpt smith "realaxis" - smith + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "imaginaryaxis" ImaginaryAxis + |> DynObj.withOptionalProperty "realaxis" RealAxis /// <summary> /// Returns Some(dynamic member value) of the object's underlying DynamicObj when a dynamic member with the given name exists, and None otherwise. /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="smith">The object to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (smith: Smith) = smith.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (smith: Smith) = smith.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns the ImaginaryAxis object of the given smith object. @@ -77,7 +75,7 @@ type Smith() = /// <param name="imaginaryAxis">The new ImaginaryAxis object</param> static member setImaginaryAxis(imaginaryAxis: ImaginaryAxis) = (fun (smith: Smith) -> - smith.SetValue("imaginaryaxis", imaginaryAxis) + smith.SetProperty("imaginaryaxis", imaginaryAxis) smith) /// <summary> @@ -95,5 +93,5 @@ type Smith() = /// <param name="realAxis">The new RealAxis object</param> static member setRealAxis(realAxis: RealAxis) = (fun (smith: Smith) -> - smith.SetValue("realaxis", realAxis) + smith.SetProperty("realaxis", realAxis) smith) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs index a682a02ba..c6d27df34 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs @@ -19,12 +19,12 @@ type Ternary() = /// <param name="BGColor">Sets the background color of the ternary layout.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?AAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?BAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?CAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?CAxis: LinearAxis, + ?Domain: Domain, + ?Sum: #IConvertible, + ?BGColor: Color ) = Ternary() |> Ternary.style ( @@ -47,23 +47,21 @@ type Ternary() = /// <param name="BGColor">Sets the background color of the ternary layout.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?AAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?BAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?CAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?CAxis: LinearAxis, + ?Domain: Domain, + ?Sum: #IConvertible, + ?BGColor: Color ) = - (fun (ternary: Ternary) -> - - AAxis |> DynObj.setValueOpt ternary "aaxis" - BAxis |> DynObj.setValueOpt ternary "baxis" - CAxis |> DynObj.setValueOpt ternary "caxis" - Domain |> DynObj.setValueOpt ternary "domain" - Sum |> DynObj.setValueOpt ternary "sum" - BGColor |> DynObj.setValueOpt ternary "bgcolor" - - ternary) + fun (ternary: Ternary) -> + ternary + |> DynObj.withOptionalProperty "aaxis" AAxis + |> DynObj.withOptionalProperty "baxis" BAxis + |> DynObj.withOptionalProperty "caxis" CAxis + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "sum" Sum + |> DynObj.withOptionalProperty "bgcolor" BGColor /// <summary> @@ -71,7 +69,7 @@ type Ternary() = /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="ternary">The object to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (ternary: Ternary) = ternary.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (ternary: Ternary) = ternary.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns the a axis of the given ternary object. @@ -88,7 +86,7 @@ type Ternary() = /// <param name="aAxis">The new a axis object</param> static member setAAxis(aAxis: LinearAxis) = (fun (ternary: Ternary) -> - ternary.SetValue("aaxis", aAxis) + ternary.SetProperty("aaxis", aAxis) ternary) /// <summary> @@ -106,7 +104,7 @@ type Ternary() = /// <param name="bAxis">The new b axis object</param> static member setBAxis(bAxis: LinearAxis) = (fun (ternary: Ternary) -> - ternary.SetValue("baxis", bAxis) + ternary.SetProperty("baxis", bAxis) ternary) /// <summary> @@ -124,5 +122,5 @@ type Ternary() = /// <param name="cAxis">The new c axis object</param> static member setCAxis(cAxis: LinearAxis) = (fun (ternary: Ternary) -> - ternary.SetValue("caxis", cAxis) + ternary.SetProperty("caxis", cAxis) ternary) diff --git a/src/Plotly.NET/Plotly.NET.fsproj b/src/Plotly.NET/Plotly.NET.fsproj index dd6f856a6..839ee387d 100644 --- a/src/Plotly.NET/Plotly.NET.fsproj +++ b/src/Plotly.NET/Plotly.NET.fsproj @@ -36,6 +36,13 @@ <ItemGroup> <EmbeddedResource Remove="Layout\ObjectAbstractions\2D\**" /> <EmbeddedResource Remove="Layout\ObjectAbstractions\Carpet\**" /> + <InternalsVisibleTo Include="Plotly.NET.CSharp" /> + <InternalsVisibleTo Include="FSharpTestBase" /> + <InternalsVisibleTo Include="CSharpTestBase" /> + <InternalsVisibleTo Include="CoreTests" /> + <InternalsVisibleTo Include="StrongNameTests" /> + <InternalsVisibleTo Include="CSharpTests" /> + <InternalsVisibleTo Include="ImageExportTests" /> </ItemGroup> <ItemGroup> <None Include="RELEASE_NOTES.md" /> @@ -163,12 +170,11 @@ <Compile Include="ChartAPI\ChartCarpet.fs" /> <Compile Include="ChartAPI\ChartDomain.fs" /> <Compile Include="ChartAPI\ChartSmith.fs" /> - <Compile Include="CSharpLayer\GenericChartExtensions.fs" /> <None Include="Playground.fsx" /> </ItemGroup> <ItemGroup> - <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> - <PackageReference Include="DynamicObj" Version="2.0.0" /> + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> + <PackageReference Include="DynamicObj" Version="[4.0.3, 5.0.0)" /> <PackageReference Include="Giraffe.ViewEngine.StrongName" Version="2.0.0-alpha1" /> </ItemGroup> </Project> diff --git a/src/Plotly.NET/RELEASE_NOTES.md b/src/Plotly.NET/RELEASE_NOTES.md index 0a8cde75e..0c68e21a3 100644 --- a/src/Plotly.NET/RELEASE_NOTES.md +++ b/src/Plotly.NET/RELEASE_NOTES.md @@ -1,3 +1,5 @@ +### 5.1.0 - September 04 2024 + ### 5.0.0 - May 27 2024 Major release with lots of bug fixes, improvements, and upstream feature additions from plotly.js. Many changes are backwards-incompatible with previous versions. diff --git a/src/Plotly.NET/Templates/ChartTemplates.fs b/src/Plotly.NET/Templates/ChartTemplates.fs index f57d29d27..9ec2bd4ab 100644 --- a/src/Plotly.NET/Templates/ChartTemplates.fs +++ b/src/Plotly.NET/Templates/ChartTemplates.fs @@ -4,7 +4,6 @@ open Plotly.NET.LayoutObjects open Plotly.NET.TraceObjects open DynamicObj -open DynamicObj.Operators open System.Runtime.InteropServices module ChartTemplates = @@ -70,7 +69,7 @@ module ChartTemplates = Template.init (defaultLayout) - let dark = + let dark : Template = let initDarkAxisTemplate () = LinearAxis.init ( @@ -94,20 +93,18 @@ module ChartTemplates = Template.init (darkLayoutTemplate) - let darkMirrored = + let darkMirrored : Template = dark |> Template.mapLayoutTemplate (fun l -> - l.TryGetTypedValue<LinearAxis>("xaxis") - |> Option.map (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) - |> DynObj.setValueOpt l "xaxis" + let x = l.TryGetTypedPropertyValue<LinearAxis>("xaxis") + let y =l.TryGetTypedPropertyValue<LinearAxis>("yaxis") - l.TryGetTypedValue<LinearAxis>("yaxis") - |> Option.map (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) - |> DynObj.setValueOpt l "yaxis" + l + |> DynObj.withOptionalPropertyBy "xaxis" x (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) + |> DynObj.withOptionalPropertyBy "yaxis" y (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) + ) - l) - - let fslab = + let fslab : Template = let initFslabAxisTemplate () = LinearAxis.init ( @@ -132,7 +129,7 @@ module ChartTemplates = Template.init (fslabLayoutTemplate) |> Template.withColorWay ColorWays.fslab - let transparent = + let transparent : Template = let initTransparentAxisTemplate () = LinearAxis.init (ShowLine = true, ZeroLine = true) @@ -146,7 +143,7 @@ module ChartTemplates = Template.init (defaultLayout) - let transparentMirrored = + let transparentMirrored : Template = let initTransparentAxisTemplate () = LinearAxis.init ( ShowLine = true, @@ -166,7 +163,7 @@ module ChartTemplates = Template.init (defaultLayout) /// the default template, as used in the python lib by default. - let plotly = + let plotly : Template = // non-standard props, may change in the future let annotationdefaults = diff --git a/src/Plotly.NET/Templates/Template.fs b/src/Plotly.NET/Templates/Template.fs index 311222230..dc8740386 100644 --- a/src/Plotly.NET/Templates/Template.fs +++ b/src/Plotly.NET/Templates/Template.fs @@ -9,15 +9,15 @@ open System.Runtime.InteropServices type Template() = inherit DynamicObj() - static member init(layoutTemplate: Layout, [<Optional; DefaultParameterValue(null)>] ?TraceTemplates: seq<#Trace>) = + static member init(layoutTemplate: Layout, ?TraceTemplates: seq<#Trace>) = Template() |> Template.style (layoutTemplate, ?TraceTemplates = TraceTemplates) static member style ( layoutTemplate: Layout, - [<Optional; DefaultParameterValue(null)>] ?TraceTemplates: seq<#Trace> + ?TraceTemplates: seq<#Trace> ) = - (fun (template: Template) -> + fun (template: Template) -> let traceTemplates = TraceTemplates @@ -39,26 +39,26 @@ type Template() = let tmp = DynamicObj() traceTemplates - |> Option.iter (Seq.iter (fun (id, traceTemplate) -> traceTemplate |> DynObj.setValue tmp id)) + |> Option.iter (Seq.iter (fun (id, traceTemplate) -> tmp |> DynObj.setProperty id traceTemplate)) tmp - - layoutTemplate |> DynObj.setValue template "layout" - traceTemplates |> DynObj.setValue template "data" - - template) + template + |> DynObj.withProperty "layout" layoutTemplate + |> DynObj.withProperty "data" traceTemplates static member mapLayoutTemplate (styleF: Layout -> Layout) (template: Template) = - template.TryGetTypedValue<Layout>("layout") |> Option.map (styleF) |> DynObj.setValueOpt template "layout" + let l = template.TryGetTypedPropertyValue<Layout>("layout") template + |> DynObj.withOptionalPropertyBy "layout" l (styleF) static member mapTraceTemplates (styleF: #Trace[] -> #Trace[]) (template: Template) = - template.TryGetTypedValue<#Trace[]>("data") |> Option.map (styleF) |> DynObj.setValueOpt template "data" + let l = template.TryGetTypedPropertyValue<#Trace[]>("data") template + |> DynObj.withOptionalPropertyBy "data" l (styleF) static member withColorWay (colorway: Color) (template: Template) = template |> Template.mapLayoutTemplate (fun l -> - colorway |> DynObj.setValue l "colorway" - l) + l |> DynObj.withProperty "colorway" colorway + ) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs index f3cf69f62..71bff83c5 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs @@ -13,9 +13,9 @@ type Bins() = // Init Bins() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?Size: float + ?Start: float, + ?End: float, + ?Size: float ) = Bins() |> Bins.style (?Start = Start, ?End = End, ?Size = Size) @@ -23,14 +23,14 @@ type Bins() = // Applies the styles to Bins() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?Size: float + ?Start: float, + ?End: float, + ?Size: float ) = - (fun (bins: Bins) -> - Start |> DynObj.setValueOpt bins "start" - End |> DynObj.setValueOpt bins "end" - Size |> DynObj.setValueOpt bins "size" + fun (bins: Bins) -> - bins) + bins + |> DynObj.withOptionalProperty "start" Start + |> DynObj.withOptionalProperty "end" End + |> DynObj.withOptionalProperty "size" Size diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs index 2abb572e7..42193978b 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs @@ -13,11 +13,11 @@ type Box() = /// Initialized Line object static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float + ?Visible: bool, + ?Width: float, + ?FillColor: Color, + ?LineColor: Color, + ?LineWidth: float ) = Box() |> Box.style ( @@ -32,13 +32,13 @@ type Box() = // Applies the styles to Line() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float + ?Visible: bool, + ?Width: float, + ?FillColor: Color, + ?LineColor: Color, + ?LineWidth: float ) = - (fun (box: Box) -> + fun (box: Box) -> let line = if LineColor.IsSome || LineWidth.IsSome then @@ -46,10 +46,8 @@ type Box() = else None - Visible |> DynObj.setValueOpt box "visible" - Width |> DynObj.setValueOpt box "width" - FillColor |> DynObj.setValueOpt box "fillcolor" - line |> DynObj.setValueOpt box "line" - - // out -> - box) + box + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "line" line diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs index e19f41830..54024e809 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs @@ -11,23 +11,22 @@ type CapFill() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Fill: float, + ?Show: bool ) = CapFill() |> CapFill.style (?Fill = Fill, ?Show = Show) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Fill: float, + ?Show: bool ) = fun (capFill: CapFill) -> - Fill |> DynObj.setValueOpt capFill "fill" - Show |> DynObj.setValueOpt capFill "show" - capFill + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "show" Show type Caps() = @@ -35,23 +34,22 @@ type Caps() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: CapFill, - [<Optional; DefaultParameterValue(null)>] ?Y: CapFill, - [<Optional; DefaultParameterValue(null)>] ?Z: CapFill + ?X: CapFill, + ?Y: CapFill, + ?Z: CapFill ) = Caps() |> Caps.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: CapFill, - [<Optional; DefaultParameterValue(null)>] ?Y: CapFill, - [<Optional; DefaultParameterValue(null)>] ?Z: CapFill + ?X: CapFill, + ?Y: CapFill, + ?Z: CapFill ) = fun (caps: Caps) -> - X |> DynObj.setValueOpt caps "x" - Y |> DynObj.setValueOpt caps "y" - Z |> DynObj.setValueOpt caps "z" - caps + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs index defeb54c1..0b806d21d 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs @@ -12,46 +12,44 @@ type ContourProject() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: bool, - [<Optional; DefaultParameterValue(null)>] ?Y: bool, - [<Optional; DefaultParameterValue(null)>] ?Z: bool + ?X: bool, + ?Y: bool, + ?Z: bool ) = ContourProject() |> ContourProject.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: bool, - [<Optional; DefaultParameterValue(null)>] ?Y: bool, - [<Optional; DefaultParameterValue(null)>] ?Z: bool + ?X: bool, + ?Y: bool, + ?Z: bool ) = fun (contourProject: ContourProject) -> - X |> DynObj.setValueOpt contourProject "x" - Y |> DynObj.setValueOpt contourProject "y" - Z |> DynObj.setValueOpt contourProject "z" - contourProject + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z /// Contour object inherits from dynamic object type Contour() = inherit DynamicObj() /// Initialized a Contour object - //[<CompiledName("init")>] static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?Highlight: bool, - [<Optional; DefaultParameterValue(null)>] ?HighlightColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HighlightWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Project: ContourProject, - [<Optional; DefaultParameterValue(null)>] ?Show: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?UseColorMap: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Color: Color, + ?End: float, + ?Highlight: bool, + ?HighlightColor: Color, + ?HighlightWidth: float, + ?Project: ContourProject, + ?Show: bool, + ?Size: float, + ?Start: float, + ?UseColorMap: bool, + ?Width: float ) = Contour() |> Contour.style ( @@ -70,37 +68,34 @@ type Contour() = // Applies the styles to Contours() - //[<CompiledName("style")>] static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?Highlight: bool, - [<Optional; DefaultParameterValue(null)>] ?HighlightColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HighlightWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Project: ContourProject, - [<Optional; DefaultParameterValue(null)>] ?Show: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?UseColorMap: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Color: Color, + ?End: float, + ?Highlight: bool, + ?HighlightColor: Color, + ?HighlightWidth: float, + ?Project: ContourProject, + ?Show: bool, + ?Size: float, + ?Start: float, + ?UseColorMap: bool, + ?Width: float ) = - (fun (contour: Contour) -> - Color |> DynObj.setValueOpt contour "color" - End |> DynObj.setValueOpt contour "end" - Highlight |> DynObj.setValueOpt contour "highlight" - HighlightColor |> DynObj.setValueOpt contour "highlightcolor" - HighlightWidth |> DynObj.setValueOpt contour "highlightwidth" - Project |> DynObj.setValueOpt contour "project" - Show |> DynObj.setValueOpt contour "show" - Size |> DynObj.setValueOpt contour "size" - Start |> DynObj.setValueOpt contour "start" - UseColorMap |> DynObj.setValueOpt contour "usecolormap" - Width |> DynObj.setValueOpt contour "width" - - - contour) + fun (contour: Contour) -> + contour + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "end" End + |> DynObj.withOptionalProperty "highlight" Highlight + |> DynObj.withOptionalProperty "highlightcolor" HighlightColor + |> DynObj.withOptionalProperty "highlightwidth" HighlightWidth + |> DynObj.withOptionalProperty "project" Project + |> DynObj.withOptionalProperty "show" Show + |> DynObj.withOptionalProperty "size" Size + |> DynObj.withOptionalProperty "start" Start + |> DynObj.withOptionalProperty "usecolormap" UseColorMap + |> DynObj.withOptionalProperty "width" Width /// Contours type inherits from dynamic object type Contours() = @@ -108,17 +103,17 @@ type Contours() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Coloring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?LabelFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Operation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ShowLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLines: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?Value: #IConvertible + ?Coloring: StyleParam.ContourColoring, + ?End: float, + ?LabelFont: Font, + ?LabelFormat: string, + ?Operation: StyleParam.ConstraintOperation, + ?ShowLabels: bool, + ?ShowLines: bool, + ?Size: float, + ?Start: float, + ?Type: StyleParam.ContourType, + ?Value: #IConvertible ) = Contours() |> Contours.style ( @@ -138,69 +133,65 @@ type Contours() = /// Initialized Contours object - //[<CompiledName("init")>] static member initSurface ( - [<Optional; DefaultParameterValue(null)>] ?X: Contour, - [<Optional; DefaultParameterValue(null)>] ?Y: Contour, - [<Optional; DefaultParameterValue(null)>] ?Z: Contour + ?X: Contour, + ?Y: Contour, + ?Z: Contour ) = Contours() |> Contours.style (?X = X, ?Y = Y, ?Z = Z) // Applies the styles to Contours() - //[<CompiledName("style")>] static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: Contour, - [<Optional; DefaultParameterValue(null)>] ?Y: Contour, - [<Optional; DefaultParameterValue(null)>] ?Z: Contour, - [<Optional; DefaultParameterValue(null)>] ?Coloring: StyleParam.ContourColoring, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?LabelFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Operation: StyleParam.ConstraintOperation, - [<Optional; DefaultParameterValue(null)>] ?ShowLabels: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowLines: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ContourType, - [<Optional; DefaultParameterValue(null)>] ?Value: #IConvertible + ?X: Contour, + ?Y: Contour, + ?Z: Contour, + ?Coloring: StyleParam.ContourColoring, + ?End: float, + ?LabelFont: Font, + ?LabelFormat: string, + ?Operation: StyleParam.ConstraintOperation, + ?ShowLabels: bool, + ?ShowLines: bool, + ?Size: float, + ?Start: float, + ?Type: StyleParam.ContourType, + ?Value: #IConvertible ) = - (fun (contours: Contours) -> - X |> DynObj.setValueOpt contours "x" - Y |> DynObj.setValueOpt contours "y" - Z |> DynObj.setValueOpt contours "z" - Coloring |> DynObj.setValueOptBy contours "coloring" StyleParam.ContourColoring.convert - End |> DynObj.setValueOpt contours "end" - LabelFont |> DynObj.setValueOpt contours "labelfont" - LabelFormat |> DynObj.setValueOpt contours "labelformat" - Operation |> DynObj.setValueOptBy contours "operation" StyleParam.ConstraintOperation.convert - ShowLabels |> DynObj.setValueOpt contours "showlabels" - ShowLines |> DynObj.setValueOpt contours "showlines" - Size |> DynObj.setValueOpt contours "size" - Start |> DynObj.setValueOpt contours "start" - Type |> DynObj.setValueOptBy contours "type" StyleParam.ContourType.convert - Value |> DynObj.setValueOpt contours "value" - - - contours) - + fun (contours: Contours) -> + + contours + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalPropertyBy "coloring" Coloring StyleParam.ContourColoring.convert + |> DynObj.withOptionalProperty "end" End + |> DynObj.withOptionalProperty "labelfont" LabelFont + |> DynObj.withOptionalProperty "labelformat" LabelFormat + |> DynObj.withOptionalPropertyBy "operation" Operation StyleParam.ConstraintOperation.convert + |> DynObj.withOptionalProperty "showlabels" ShowLabels + |> DynObj.withOptionalProperty "showlines" ShowLines + |> DynObj.withOptionalProperty "size" Size + |> DynObj.withOptionalProperty "start" Start + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.ContourType.convert + |> DynObj.withOptionalProperty "value" Value // Initialized x-y-z-Contours with the same properties static member initXyz ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?Highlight: bool, - [<Optional; DefaultParameterValue(null)>] ?HighlightColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HighlightWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Project: ContourProject, - [<Optional; DefaultParameterValue(null)>] ?Show: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?UseColorMap: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Color: Color, + ?End: float, + ?Highlight: bool, + ?HighlightColor: Color, + ?HighlightWidth: float, + ?Project: ContourProject, + ?Show: bool, + ?Size: float, + ?Start: float, + ?UseColorMap: bool, + ?Width: float ) = Contours() |> Contours.styleXyz ( @@ -218,20 +209,19 @@ type Contours() = ) // Applies the styles to Contours() - //[<CompiledName("styleXyz")>] static member styleXyz ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?End: float, - [<Optional; DefaultParameterValue(null)>] ?Highlight: bool, - [<Optional; DefaultParameterValue(null)>] ?HighlightColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HighlightWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Project: ContourProject, - [<Optional; DefaultParameterValue(null)>] ?Show: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: float, - [<Optional; DefaultParameterValue(null)>] ?Start: float, - [<Optional; DefaultParameterValue(null)>] ?UseColorMap: bool, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Color: Color, + ?End: float, + ?Highlight: bool, + ?HighlightColor: Color, + ?HighlightWidth: float, + ?Project: ContourProject, + ?Show: bool, + ?Size: float, + ?Start: float, + ?UseColorMap: bool, + ?Width: float ) = (fun (contours: Contours) -> diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs index ddf762aca..47c5d9210 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs @@ -23,9 +23,9 @@ type Cumulative() = // Init Cumulative() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.CumulativeDirection, - [<Optional; DefaultParameterValue(null)>] ?Currentbin: StyleParam.Currentbin + ?Enabled: bool, + ?Direction: StyleParam.CumulativeDirection, + ?Currentbin: StyleParam.Currentbin ) = Cumulative() |> Cumulative.style (?Enabled = Enabled, ?Direction = Direction, ?Currentbin = Currentbin) @@ -33,14 +33,14 @@ type Cumulative() = // Applies the styles to Cumulative() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Enabled: bool, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.CumulativeDirection, - [<Optional; DefaultParameterValue(null)>] ?Currentbin: StyleParam.Currentbin + ?Enabled: bool, + ?Direction: StyleParam.CumulativeDirection, + ?Currentbin: StyleParam.Currentbin ) = - (fun (cumulative: Cumulative) -> - Enabled |> DynObj.setValueOpt cumulative "enabled" - Direction |> DynObj.setValueOptBy cumulative "direction" StyleParam.CumulativeDirection.convert - Currentbin |> DynObj.setValueOptBy cumulative "currentbin" StyleParam.Currentbin.convert + fun (cumulative: Cumulative) -> - cumulative) + cumulative + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.CumulativeDirection.convert + |> DynObj.withOptionalPropertyBy "currentbin" Currentbin StyleParam.Currentbin.convert diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs index b0ab62229..a36a5746e 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs @@ -13,17 +13,17 @@ type Dimension() = /// Initializes dimensions object to be used with parcats and parcoords plots static member initParallel ( - [<Optional; DefaultParameterValue(null)>] ?ConstraintRange: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Label: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiSelect: bool, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Tickvals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?ConstraintRange: StyleParam.Range, + ?Label: #IConvertible, + ?MultiSelect: bool, + ?Name: string, + ?Range: StyleParam.Range, + ?TemplateItemName: string, + ?TickFormat: StyleParam.TickMode, + ?TickText: seq<#IConvertible>, + ?Tickvals: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Visible: bool ) = Dimension() |> Dimension.style ( @@ -45,13 +45,13 @@ type Dimension() = /// Initializes dimensions object to be used with SPLOM plots static member initSplom ( - [<Optional; DefaultParameterValue(null)>] ?AxisMatches: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType, - [<Optional; DefaultParameterValue(null)>] ?Label: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?AxisMatches: bool, + ?AxisType: StyleParam.AxisType, + ?Label: #IConvertible, + ?Name: string, + ?TemplateItemName: string, + ?Values: seq<#IConvertible>, + ?Visible: bool ) = Dimension() |> Dimension.style ( @@ -69,38 +69,36 @@ type Dimension() = // Applies the styles to Dimensions() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Label: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?ConstraintRange: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?MultiSelect: bool, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?TickFormat: StyleParam.TickMode, - [<Optional; DefaultParameterValue(null)>] ?TickText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Tickvals: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?AxisMatches: bool, - [<Optional; DefaultParameterValue(null)>] ?AxisType: StyleParam.AxisType + ?Label: #IConvertible, + ?Name: string, + ?TemplateItemName: string, + ?Values: seq<#IConvertible>, + ?Visible: bool, + ?ConstraintRange: StyleParam.Range, + ?MultiSelect: bool, + ?Range: StyleParam.Range, + ?TickFormat: StyleParam.TickMode, + ?TickText: seq<#IConvertible>, + ?Tickvals: seq<#IConvertible>, + ?AxisMatches: bool, + ?AxisType: StyleParam.AxisType ) = - (fun (dims: Dimension) -> + fun (dims: Dimension) -> let axis = LinearAxis.init (?AxisType = AxisType) + |> DynObj.withOptionalProperty "matches" AxisMatches - AxisMatches |> DynObj.setValueOpt axis "matches" - - Label |> DynObj.setValueOpt dims "label" - Name |> DynObj.setValueOpt dims "name" - TemplateItemName |> DynObj.setValueOpt dims "templateitemname" - Values |> DynObj.setValueOpt dims "values" - Visible |> DynObj.setValueOpt dims "visible" - ConstraintRange |> DynObj.setValueOptBy dims "constraintrange" StyleParam.Range.convert - MultiSelect |> DynObj.setValueOpt dims "multiselect" - Range |> DynObj.setValueOptBy dims "range" StyleParam.Range.convert - TickFormat |> DynObj.setValueOptBy dims "tickformat" StyleParam.TickMode.convert - TickText |> DynObj.setValueOpt dims "ticktext" - Tickvals |> DynObj.setValueOpt dims "tickvals" - axis |> DynObj.setValue dims "axis" - - dims) + dims + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "constraintrange" ConstraintRange StyleParam.Range.convert + |> DynObj.withOptionalProperty "multiselect" MultiSelect + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "tickformat" TickFormat StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalProperty "tickvals" Tickvals + |> DynObj.withProperty "axis" axis diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs index faae15472..6cedddff5 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs @@ -28,19 +28,19 @@ type Error() = /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = Error() |> Error.style ( @@ -77,34 +77,33 @@ type Error() = /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = - (fun (error: Error) -> - Visible |> DynObj.setValueOpt error "visible" - Type |> DynObj.setValueOptBy error "type" StyleParam.ErrorType.convert - Symmetric |> DynObj.setValueOpt error "symmetric" - Array |> DynObj.setValueOpt error "array" - Arrayminus |> DynObj.setValueOpt error "arrayminus" - Value |> DynObj.setValueOpt error "value" - Valueminus |> DynObj.setValueOpt error "valueminus" - Traceref |> DynObj.setValueOpt error "traceref" - Tracerefminus |> DynObj.setValueOpt error "tracerefminus" - Copy_ystyle |> DynObj.setValueOpt error "copy_ystyle" - Color |> DynObj.setValueOpt error "color" - Thickness |> DynObj.setValueOpt error "thickness" - Width |> DynObj.setValueOpt error "width" + fun (error: Error) -> - // out -> - error) + error + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.ErrorType.convert + |> DynObj.withOptionalProperty "symmetric" Symmetric + |> DynObj.withOptionalProperty "array" Array + |> DynObj.withOptionalProperty "arrayminus" Arrayminus + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "valueminus" Valueminus + |> DynObj.withOptionalProperty "traceref" Traceref + |> DynObj.withOptionalProperty "tracerefminus" Tracerefminus + |> DynObj.withOptionalProperty "copy_ystyle" Copy_ystyle + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "width" Width diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs b/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs index c370fb26d..120ce5e29 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs @@ -11,10 +11,10 @@ type FinanceMarker() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle + ?FillColor: Color, + ?LineColor: Color, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle ) = FinanceMarker() |> FinanceMarker.style ( @@ -27,19 +27,18 @@ type FinanceMarker() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineColor: Color, - [<Optional; DefaultParameterValue(null)>] ?LineWidth: float, - [<Optional; DefaultParameterValue(null)>] ?LineDash: StyleParam.DrawingStyle + ?FillColor: Color, + ?LineColor: Color, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle ) = - (fun (financeMarker: FinanceMarker) -> + fun (financeMarker: FinanceMarker) -> let line = - financeMarker.TryGetTypedValue<Line>("line") + financeMarker.TryGetTypedPropertyValue<Line>("line") |> Option.defaultValue(Plotly.NET.Line.init()) |> Line.style (?Color = LineColor, ?Width = LineWidth, ?Dash = LineDash) - FillColor |> DynObj.setValueOpt financeMarker "fillcolor" - line |> DynObj.setValue financeMarker "line" - - financeMarker) + financeMarker + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withProperty "line" line diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs b/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs index f8201e470..40b20c05b 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs @@ -20,23 +20,22 @@ type FunnelConnector() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?FillColor: Color, + ?Line: Line, + ?Visible: bool ) = FunnelConnector() |> FunnelConnector.style (?FillColor = FillColor, ?Line = Line, ?Visible = Visible) static member style ( - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool + ?FillColor: Color, + ?Line: Line, + ?Visible: bool ) = - (fun (connector: FunnelConnector) -> + fun (connector: FunnelConnector) -> - FillColor |> DynObj.setValueOpt connector "fillcolor" - Line |> DynObj.setValueOpt connector "line" - Visible |> DynObj.setValueOpt connector "visible" - - connector) + connector + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "visible" Visible diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs index e6f4d4f93..177ce0922 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs @@ -11,23 +11,21 @@ type Gradient() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.GradientType, - [<Optional; DefaultParameterValue(null)>] ?MultiTypes: seq<StyleParam.GradientType> + ?Color: Color, + ?Type: StyleParam.GradientType, + ?MultiTypes: seq<StyleParam.GradientType> ) = Gradient() |> Gradient.style (?Color = Color, ?Type = Type, ?MultiTypes = MultiTypes) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.GradientType, - [<Optional; DefaultParameterValue(null)>] ?MultiTypes: seq<StyleParam.GradientType> + ?Color: Color, + ?Type: StyleParam.GradientType, + ?MultiTypes: seq<StyleParam.GradientType> ) = fun (gradient: Gradient) -> - (Type, MultiTypes) |> DynObj.setSingleOrMultiOpt gradient "type" - - Color |> DynObj.setValueOpt gradient "color" - gradient + |> DynObj.withOptionalSingleOrMultiProperty "type" (Type, MultiTypes) + |> DynObj.setOptionalProperty "color" Color diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs index 872a53940..83c8e7f78 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs @@ -9,50 +9,45 @@ open System.Runtime.InteropServices type IcicleRoot() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Color: Color) = + static member init(?Color: Color) = IcicleRoot() |> IcicleRoot.style (?Color = Color) - static member style([<Optional; DefaultParameterValue(null)>] ?Color: Color) = - (fun (icicleRoot: IcicleRoot) -> - - Color |> DynObj.setValueOpt icicleRoot "color" - - icicleRoot) + static member style(?Color: Color) = + fun (icicleRoot: IcicleRoot) -> + icicleRoot + |> DynObj.withOptionalProperty "color" Color type IcicleLeaf() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Opacity: float) = + static member init(?Opacity: float) = IcicleLeaf() |> IcicleLeaf.style (?Opacity = Opacity) - static member style([<Optional; DefaultParameterValue(null)>] ?Opacity: float) = - (fun (icicleLeaf: IcicleLeaf) -> - - Opacity |> DynObj.setValueOpt icicleLeaf "opacity" - - icicleLeaf) + static member style(?Opacity: float) = + fun (icicleLeaf: IcicleLeaf) -> + icicleLeaf + |> DynObj.withOptionalProperty "opacity" Opacity type IcicleTiling() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Flip: StyleParam.TilingFlip, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Pad: int + ?Flip: StyleParam.TilingFlip, + ?Orientation: StyleParam.Orientation, + ?Pad: int ) = IcicleTiling() |> IcicleTiling.style (?Flip = Flip, ?Orientation = Orientation, ?Pad = Pad) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Flip: StyleParam.TilingFlip, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Pad: int + ?Flip: StyleParam.TilingFlip, + ?Orientation: StyleParam.Orientation, + ?Pad: int ) = - (fun (icicleTiling: IcicleTiling) -> - - Flip |> DynObj.setValueOptBy icicleTiling "flip" StyleParam.TilingFlip.convert - Orientation |> DynObj.setValueOptBy icicleTiling "orientation" StyleParam.Orientation.convert - Pad |> DynObj.setValueOpt icicleTiling "pad" + fun (icicleTiling: IcicleTiling) -> - icicleTiling) + icicleTiling + |> DynObj.withOptionalPropertyBy "flip" Flip StyleParam.TilingFlip.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "pad" Pad diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs index c91fb5ef7..d5680dc22 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs @@ -12,22 +12,21 @@ type IndicatorSymbol() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Symbol: string + ?Color: Color, + ?Symbol: string ) = IndicatorSymbol() |> IndicatorSymbol.style (?Color = Color, ?Symbol = Symbol) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Symbol: string + ?Color: Color, + ?Symbol: string ) = - (fun (indicatorDirection: IndicatorSymbol) -> + fun (indicatorDirection: IndicatorSymbol) -> - Color |> DynObj.setValueOpt indicatorDirection "color" - Symbol |> DynObj.setValueOpt indicatorDirection "symbol" - - indicatorDirection) + indicatorDirection + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "symbol" Symbol type IndicatorDelta() = inherit DynamicObj() @@ -46,15 +45,15 @@ type IndicatorDelta() = /// <param name="ValueFormat">Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Decreasing: IndicatorSymbol, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Increasing: IndicatorSymbol, - [<Optional; DefaultParameterValue(null)>] ?Position: StyleParam.IndicatorDeltaPosition, - [<Optional; DefaultParameterValue(null)>] ?Prefix: string, - [<Optional; DefaultParameterValue(null)>] ?Reference: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Relative: bool, - [<Optional; DefaultParameterValue(null)>] ?Suffix: string, - [<Optional; DefaultParameterValue(null)>] ?ValueFormat: string + ?Decreasing: IndicatorSymbol, + ?Font: Font, + ?Increasing: IndicatorSymbol, + ?Position: StyleParam.IndicatorDeltaPosition, + ?Prefix: string, + ?Reference: #IConvertible, + ?Relative: bool, + ?Suffix: string, + ?ValueFormat: string ) = IndicatorDelta() |> IndicatorDelta.style ( @@ -83,58 +82,56 @@ type IndicatorDelta() = /// <param name="ValueFormat">Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Decreasing: IndicatorSymbol, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Increasing: IndicatorSymbol, - [<Optional; DefaultParameterValue(null)>] ?Position: StyleParam.IndicatorDeltaPosition, - [<Optional; DefaultParameterValue(null)>] ?Prefix: string, - [<Optional; DefaultParameterValue(null)>] ?Reference: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Relative: bool, - [<Optional; DefaultParameterValue(null)>] ?Suffix: string, - [<Optional; DefaultParameterValue(null)>] ?ValueFormat: string + ?Decreasing: IndicatorSymbol, + ?Font: Font, + ?Increasing: IndicatorSymbol, + ?Position: StyleParam.IndicatorDeltaPosition, + ?Prefix: string, + ?Reference: #IConvertible, + ?Relative: bool, + ?Suffix: string, + ?ValueFormat: string ) = - (fun (indicatorDelta: IndicatorDelta) -> - - Decreasing |> DynObj.setValueOpt indicatorDelta "decreasing" - Font |> DynObj.setValueOpt indicatorDelta "font" - Increasing |> DynObj.setValueOpt indicatorDelta "increasing" - Position |> DynObj.setValueOptBy indicatorDelta "position" StyleParam.IndicatorDeltaPosition.convert - Prefix |> DynObj.setValueOpt indicatorDelta "prefix" - Reference |> DynObj.setValueOpt indicatorDelta "reference" - Relative |> DynObj.setValueOpt indicatorDelta "relative" - Suffix |> DynObj.setValueOpt indicatorDelta "suffix" - ValueFormat |> DynObj.setValueOpt indicatorDelta "valueformat" - - indicatorDelta) + fun (indicatorDelta: IndicatorDelta) -> + + indicatorDelta + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalPropertyBy "position" Position StyleParam.IndicatorDeltaPosition.convert + |> DynObj.withOptionalProperty "prefix" Prefix + |> DynObj.withOptionalProperty "reference" Reference + |> DynObj.withOptionalProperty "relative" Relative + |> DynObj.withOptionalProperty "suffix" Suffix + |> DynObj.withOptionalProperty "valueformat" ValueFormat type IndicatorNumber() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Prefix: string, - [<Optional; DefaultParameterValue(null)>] ?Suffix: string, - [<Optional; DefaultParameterValue(null)>] ?ValueFormat: string + ?Font: Font, + ?Prefix: string, + ?Suffix: string, + ?ValueFormat: string ) = IndicatorNumber() |> IndicatorNumber.style (?Font = Font, ?Prefix = Prefix, ?Suffix = Suffix, ?ValueFormat = ValueFormat) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Prefix: string, - [<Optional; DefaultParameterValue(null)>] ?Suffix: string, - [<Optional; DefaultParameterValue(null)>] ?ValueFormat: string + ?Font: Font, + ?Prefix: string, + ?Suffix: string, + ?ValueFormat: string ) = - (fun (indicatorNumber: IndicatorNumber) -> - - Font |> DynObj.setValueOpt indicatorNumber "font" - Prefix |> DynObj.setValueOpt indicatorNumber "prefix" - Suffix |> DynObj.setValueOpt indicatorNumber "suffix" - ValueFormat |> DynObj.setValueOpt indicatorNumber "valueformat" + fun (indicatorNumber: IndicatorNumber) -> - indicatorNumber) + indicatorNumber + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "prefix" Prefix + |> DynObj.withOptionalProperty "suffix" Suffix + |> DynObj.withOptionalProperty "valueformat" ValueFormat type IndicatorBar() = @@ -142,37 +139,36 @@ type IndicatorBar() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float + ?Color: Color, + ?Line: Line, + ?Thickness: float ) = IndicatorBar() |> IndicatorBar.style (?Color = Color, ?Line = Line, ?Thickness = Thickness) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float + ?Color: Color, + ?Line: Line, + ?Thickness: float ) = - (fun (indicatorBar: IndicatorBar) -> - - Color |> DynObj.setValueOpt indicatorBar "color" - Line |> DynObj.setValueOpt indicatorBar "line" - Thickness |> DynObj.setValueOpt indicatorBar "thickness" - - indicatorBar) + fun (indicatorBar: IndicatorBar) -> + indicatorBar + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "thickness" Thickness + type IndicatorStep() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float + ?Color: Color, + ?Line: Line, + ?Name: string, + ?Range: StyleParam.Range, + ?TemplateItemName: string, + ?Thickness: float ) = IndicatorStep() |> IndicatorStep.style ( @@ -186,23 +182,22 @@ type IndicatorStep() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Range: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float + ?Color: Color, + ?Line: Line, + ?Name: string, + ?Range: StyleParam.Range, + ?TemplateItemName: string, + ?Thickness: float ) = - (fun (indicatorSteps: IndicatorStep) -> + fun (indicatorSteps: IndicatorStep) -> - Color |> DynObj.setValueOpt indicatorSteps "color" - Line |> DynObj.setValueOpt indicatorSteps "line" - Name |> DynObj.setValueOpt indicatorSteps "name" - Range |> DynObj.setValueOptBy indicatorSteps "range" StyleParam.Range.convert - TemplateItemName |> DynObj.setValueOpt indicatorSteps "templateitemname" - Thickness |> DynObj.setValueOpt indicatorSteps "thickness" - - indicatorSteps) + indicatorSteps + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "thickness" Thickness type IndicatorThreshold() = @@ -210,25 +205,24 @@ type IndicatorThreshold() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Value: #IConvertible + ?Line: Line, + ?Thickness: float, + ?Value: #IConvertible ) = IndicatorThreshold() |> IndicatorThreshold.style (?Line = Line, ?Thickness = Thickness, ?Value = Value) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Value: #IConvertible + ?Line: Line, + ?Thickness: float, + ?Value: #IConvertible ) = - (fun (indicatorThreshold: IndicatorThreshold) -> - - Line |> DynObj.setValueOpt indicatorThreshold "line" - Thickness |> DynObj.setValueOpt indicatorThreshold "thickness" - Value |> DynObj.setValueOpt indicatorThreshold "value" + fun (indicatorThreshold: IndicatorThreshold) -> - indicatorThreshold) + indicatorThreshold + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "value" Value type IndicatorGauge() = @@ -236,14 +230,14 @@ type IndicatorGauge() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Axis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?Bar: IndicatorBar, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.IndicatorGaugeShape, - [<Optional; DefaultParameterValue(null)>] ?Steps: seq<IndicatorStep>, - [<Optional; DefaultParameterValue(null)>] ?Threshold: IndicatorThreshold + ?Axis: LinearAxis, + ?Bar: IndicatorBar, + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: int, + ?Shape: StyleParam.IndicatorGaugeShape, + ?Steps: seq<IndicatorStep>, + ?Threshold: IndicatorThreshold ) = IndicatorGauge() |> IndicatorGauge.style ( @@ -259,24 +253,23 @@ type IndicatorGauge() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Axis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?Bar: IndicatorBar, - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderColor: Color, - [<Optional; DefaultParameterValue(null)>] ?BorderWidth: int, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.IndicatorGaugeShape, - [<Optional; DefaultParameterValue(null)>] ?Steps: seq<IndicatorStep>, - [<Optional; DefaultParameterValue(null)>] ?Threshold: IndicatorThreshold + ?Axis: LinearAxis, + ?Bar: IndicatorBar, + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: int, + ?Shape: StyleParam.IndicatorGaugeShape, + ?Steps: seq<IndicatorStep>, + ?Threshold: IndicatorThreshold ) = - (fun (indicatorGauge: IndicatorGauge) -> - - Axis |> DynObj.setValueOpt indicatorGauge "axis" - Bar |> DynObj.setValueOpt indicatorGauge "bar" - BGColor |> DynObj.setValueOpt indicatorGauge "bgcolor" - BorderColor |> DynObj.setValueOpt indicatorGauge "bordercolor" - BorderWidth |> DynObj.setValueOpt indicatorGauge "borderwidth" - Shape |> DynObj.setValueOptBy indicatorGauge "shape" StyleParam.IndicatorGaugeShape.convert - Steps |> DynObj.setValueOpt indicatorGauge "steps" - Threshold |> DynObj.setValueOpt indicatorGauge "threshold" - - indicatorGauge) + fun (indicatorGauge: IndicatorGauge) -> + + indicatorGauge + |> DynObj.withOptionalProperty "axis" Axis + |> DynObj.withOptionalProperty "bar" Bar + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalPropertyBy "shape" Shape StyleParam.IndicatorGaugeShape.convert + |> DynObj.withOptionalProperty "steps" Steps + |> DynObj.withOptionalProperty "threshold" Threshold diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs index 6461431a4..fe2f198d5 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs @@ -22,13 +22,13 @@ type Lighting() = /// <param name="VertexNormalEpsilon">Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Ambient: float, - [<Optional; DefaultParameterValue(null)>] ?Diffuse: float, - [<Optional; DefaultParameterValue(null)>] ?FaceNormalEpsilon: float, - [<Optional; DefaultParameterValue(null)>] ?Fresnel: float, - [<Optional; DefaultParameterValue(null)>] ?Roughness: float, - [<Optional; DefaultParameterValue(null)>] ?Specular: float, - [<Optional; DefaultParameterValue(null)>] ?VertexNormalEpsilon: float + ?Ambient: float, + ?Diffuse: float, + ?FaceNormalEpsilon: float, + ?Fresnel: float, + ?Roughness: float, + ?Specular: float, + ?VertexNormalEpsilon: float ) = Lighting() |> Lighting.style ( @@ -53,25 +53,24 @@ type Lighting() = /// <param name="VertexNormalEpsilon">Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Ambient: float, - [<Optional; DefaultParameterValue(null)>] ?Diffuse: float, - [<Optional; DefaultParameterValue(null)>] ?FaceNormalEpsilon: float, - [<Optional; DefaultParameterValue(null)>] ?Fresnel: float, - [<Optional; DefaultParameterValue(null)>] ?Roughness: float, - [<Optional; DefaultParameterValue(null)>] ?Specular: float, - [<Optional; DefaultParameterValue(null)>] ?VertexNormalEpsilon: float + ?Ambient: float, + ?Diffuse: float, + ?FaceNormalEpsilon: float, + ?Fresnel: float, + ?Roughness: float, + ?Specular: float, + ?VertexNormalEpsilon: float ) = fun (l: Lighting) -> - Ambient |> DynObj.setValueOpt l "ambient" - Diffuse |> DynObj.setValueOpt l "diffuse" - FaceNormalEpsilon |> DynObj.setValueOpt l "facenormalepsilon" - Fresnel |> DynObj.setValueOpt l "fresnel" - Roughness |> DynObj.setValueOpt l "roughness" - Specular |> DynObj.setValueOpt l "specular" - VertexNormalEpsilon |> DynObj.setValueOpt l "vertexnormalepsilon" - l + |> DynObj.withOptionalProperty "ambient" Ambient + |> DynObj.withOptionalProperty "diffuse" Diffuse + |> DynObj.withOptionalProperty "facenormalepsilon" FaceNormalEpsilon + |> DynObj.withOptionalProperty "fresnel" Fresnel + |> DynObj.withOptionalProperty "roughness" Roughness + |> DynObj.withOptionalProperty "specular" Specular + |> DynObj.withOptionalProperty "vertexnormalepsilon" VertexNormalEpsilon type LightPosition() = inherit DynamicObj() @@ -84,9 +83,9 @@ type LightPosition() = /// <param name="Z"></param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = LightPosition() |> LightPosition.style (?X = X, ?Y = Y, ?Z = Z) @@ -98,14 +97,13 @@ type LightPosition() = /// <param name="Z"></param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: float, - [<Optional; DefaultParameterValue(null)>] ?Y: float, - [<Optional; DefaultParameterValue(null)>] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (lp: LightPosition) -> - X |> DynObj.setValueOpt lp "x" - Y |> DynObj.setValueOpt lp "y" - Z |> DynObj.setValueOpt lp "z" - lp + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs index 83c57d8b6..72da4260b 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs @@ -49,40 +49,40 @@ type Marker() = /// <param name="OutlierWidth">Sets the width of the outlier sample points.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Angle: float, - [<Optional; DefaultParameterValue(null)>] ?AngleRef: StyleParam.AngleRef, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Colors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?CornerRadius: int, - [<Optional; DefaultParameterValue(null)>] ?Gradient: Gradient, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Pattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?SizeMin: int, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.MarkerSizeMode, - [<Optional; DefaultParameterValue(null)>] ?SizeRef: int, - [<Optional; DefaultParameterValue(null)>] ?StandOff: float, - [<Optional; DefaultParameterValue(null)>] ?MultiStandOff: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Symbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Symbol3D: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: int + ?Angle: float, + ?AngleRef: StyleParam.AngleRef, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?Colors: seq<Color>, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?Colorscale: StyleParam.Colorscale, + ?CornerRadius: int, + ?Gradient: Gradient, + ?Outline: Line, + ?MaxDisplayed: int, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Pattern: Pattern, + ?ReverseScale: bool, + ?ShowScale: bool, + ?Size: int, + ?MultiSize: seq<int>, + ?SizeMin: int, + ?SizeMode: StyleParam.MarkerSizeMode, + ?SizeRef: int, + ?StandOff: float, + ?MultiStandOff: seq<float>, + ?Symbol: StyleParam.MarkerSymbol, + ?MultiSymbol: seq<StyleParam.MarkerSymbol>, + ?Symbol3D: StyleParam.MarkerSymbol3D, + ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, + ?OutlierColor: Color, + ?OutlierWidth: int ) = Marker() |> Marker.style ( @@ -161,71 +161,71 @@ type Marker() = /// <param name="OutlierWidth">Sets the width of the outlier sample points.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Angle: float, - [<Optional; DefaultParameterValue(null)>] ?AngleRef: StyleParam.AngleRef, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Colors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?CornerRadius: int, - [<Optional; DefaultParameterValue(null)>] ?Gradient: Gradient, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Pattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?SizeMin: int, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.MarkerSizeMode, - [<Optional; DefaultParameterValue(null)>] ?SizeRef: int, - [<Optional; DefaultParameterValue(null)>] ?StandOff: float, - [<Optional; DefaultParameterValue(null)>] ?MultiStandOff: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Symbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Symbol3D: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: int + ?Angle: float, + ?AngleRef: StyleParam.AngleRef, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?Colors: seq<Color>, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?Colorscale: StyleParam.Colorscale, + ?CornerRadius: int, + ?Gradient: Gradient, + ?Outline: Line, + ?MaxDisplayed: int, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Pattern: Pattern, + ?ReverseScale: bool, + ?ShowScale: bool, + ?Size: int, + ?MultiSize: seq<int>, + ?SizeMin: int, + ?SizeMode: StyleParam.MarkerSizeMode, + ?SizeRef: int, + ?StandOff: float, + ?MultiStandOff: seq<float>, + ?Symbol: StyleParam.MarkerSymbol, + ?MultiSymbol: seq<StyleParam.MarkerSymbol>, + ?Symbol3D: StyleParam.MarkerSymbol3D, + ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, + ?OutlierColor: Color, + ?OutlierWidth: int ) = (fun (marker: Marker) -> - Angle |> DynObj.setValueOpt marker "angle" - AngleRef |> DynObj.setValueOptBy marker "angleref" StyleParam.AngleRef.convert - AutoColorScale |> DynObj.setValueOpt marker "autocolorscale" - CAuto |> DynObj.setValueOpt marker "cauto" - CMax |> DynObj.setValueOpt marker "cmax" - CMid |> DynObj.setValueOpt marker "cmid" - CMin |> DynObj.setValueOpt marker "cmin" - Color |> DynObj.setValueOpt marker "color" - Colors |> DynObj.setValueOpt marker "colors" - ColorAxis |> DynObj.setValueOptBy marker "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt marker "colorbar" - Colorscale |> DynObj.setValueOptBy marker "colorscale" StyleParam.Colorscale.convert - CornerRadius |> DynObj.setValueOpt marker "cornerradius" - Gradient |> DynObj.setValueOpt marker "gradient" - Outline |> DynObj.setValueOpt marker "line" - (Size, MultiSize) |> DynObj.setSingleOrMultiOpt marker "size" - (Opacity, MultiOpacity) |> DynObj.setSingleOrMultiOpt marker "opacity" - Pattern |> DynObj.setValueOpt marker "pattern" - (Symbol, MultiSymbol) |> DynObj.setSingleOrMultiOptBy marker "symbol" StyleParam.MarkerSymbol.convert - (Symbol3D, MultiSymbol3D) |> DynObj.setSingleOrMultiOptBy marker "symbol" StyleParam.MarkerSymbol3D.convert - OutlierColor |> DynObj.setValueOpt marker "outliercolor" - OutlierWidth |> DynObj.setValueOpt marker "outlierwidth" - MaxDisplayed |> DynObj.setValueOpt marker "maxdisplayed" - ReverseScale |> DynObj.setValueOpt marker "reversescale" - ShowScale |> DynObj.setValueOpt marker "showscale" - SizeMin |> DynObj.setValueOpt marker "sizemin" - SizeMode |> DynObj.setValueOpt marker "sizemode" - SizeRef |> DynObj.setValueOpt marker "sizeref" - (StandOff, MultiStandOff) |> DynObj.setSingleOrMultiOpt marker "standoff" - - marker) + marker + |> DynObj.withOptionalProperty "angle" Angle + |> DynObj.withOptionalPropertyBy "angleref" AngleRef StyleParam.AngleRef.convert + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "colors" Colors + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalPropertyBy "colorscale" Colorscale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "cornerradius" CornerRadius + |> DynObj.withOptionalProperty "gradient" Gradient + |> DynObj.withOptionalProperty "line" Outline + |> DynObj.withOptionalSingleOrMultiProperty "size" (Size, MultiSize) + |> DynObj.withOptionalSingleOrMultiProperty "opacity" (Opacity, MultiOpacity) + |> DynObj.withOptionalProperty "pattern" Pattern + |> DynObj.withOptionalSingleOrMultiPropertyBy "symbol" (Symbol, MultiSymbol) StyleParam.MarkerSymbol.convert + |> DynObj.withOptionalSingleOrMultiPropertyBy "symbol" (Symbol3D, MultiSymbol3D) StyleParam.MarkerSymbol3D.convert + |> DynObj.withOptionalProperty "outliercolor" OutlierColor + |> DynObj.withOptionalProperty "outlierwidth" OutlierWidth + |> DynObj.withOptionalProperty "maxdisplayed" MaxDisplayed + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "sizemin" SizeMin + |> DynObj.withOptionalProperty "sizemode" SizeMode + |> DynObj.withOptionalProperty "sizeref" SizeRef + |> DynObj.withOptionalSingleOrMultiProperty "standoff" (StandOff, MultiStandOff) + ) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs b/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs index 9e8e54534..3cc24d09a 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs @@ -13,9 +13,9 @@ type MeanLine() = /// Initialized Line object static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Color: Color, + ?Width: float ) = MeanLine() |> MeanLine.style (?Visible = Visible, ?Color = Color, ?Width = Width) @@ -23,14 +23,13 @@ type MeanLine() = // Applies the styles to Line() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Color: Color, + ?Width: float ) = - (fun (line: MeanLine) -> - Visible |> DynObj.setValueOpt line "visible" - Color |> DynObj.setValueOpt line "color" - Width |> DynObj.setValueOpt line "width" + fun (line: MeanLine) -> - // out -> - line) + line + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "width" Width diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs index 548cddc4b..427e4a435 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs @@ -24,11 +24,11 @@ type Pathbar() = ///Textfont : Sets the font used inside `pathbar`. static member init ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?EdgeShape: StyleParam.PathbarEdgeShape, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Textfont: Font + ?Visible: bool, + ?Side: StyleParam.Side, + ?EdgeShape: StyleParam.PathbarEdgeShape, + ?Thickness: float, + ?Textfont: Font ) = Pathbar() @@ -55,17 +55,17 @@ type Pathbar() = ///Textfont : Sets the font used inside `pathbar`. static member style ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?EdgeShape: StyleParam.PathbarEdgeShape, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Textfont: Font + ?Visible: bool, + ?Side: StyleParam.Side, + ?EdgeShape: StyleParam.PathbarEdgeShape, + ?Thickness: float, + ?Textfont: Font ) = - (fun (pathbar: Pathbar) -> - Visible |> DynObj.setValueOpt pathbar "visible" - Side |> DynObj.setValueOptBy pathbar "side" StyleParam.Side.convert - EdgeShape |> DynObj.setValueOptBy pathbar "edgeshape" StyleParam.PathbarEdgeShape.convert - Thickness |> DynObj.setValueOpt pathbar "thickness" - Textfont |> DynObj.setValueOpt pathbar "textfont " + fun (pathbar: Pathbar) -> - pathbar) + pathbar + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + |> DynObj.withOptionalPropertyBy "edgeshape" EdgeShape StyleParam.PathbarEdgeShape.convert + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "textfont" Textfont diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs index 05701751d..3dda78620 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs @@ -23,15 +23,15 @@ type Pattern() = /// <param name="Solidity">Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern.</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FGOpacity: float, - [<Optional; DefaultParameterValue(null)>] ?FillMode: StyleParam.PatternFillMode, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Solidity: float + ?BGColor: Color, + ?FGColor: Color, + ?FGOpacity: float, + ?FillMode: StyleParam.PatternFillMode, + ?Shape: StyleParam.PatternShape, + ?MultiShape: seq<StyleParam.PatternShape>, + ?Size: int, + ?MultiSize: seq<int>, + ?Solidity: float ) = Pattern() |> Pattern.style ( @@ -60,25 +60,24 @@ type Pattern() = /// <param name="Solidity">Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern.</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?BGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FGColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FGOpacity: float, - [<Optional; DefaultParameterValue(null)>] ?FillMode: StyleParam.PatternFillMode, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.PatternShape, - [<Optional; DefaultParameterValue(null)>] ?MultiShape: seq<StyleParam.PatternShape>, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Solidity: float + ?BGColor: Color, + ?FGColor: Color, + ?FGOpacity: float, + ?FillMode: StyleParam.PatternFillMode, + ?Shape: StyleParam.PatternShape, + ?MultiShape: seq<StyleParam.PatternShape>, + ?Size: int, + ?MultiSize: seq<int>, + ?Solidity: float ) = fun (pattern: Pattern) -> - - BGColor |> DynObj.setValueOpt pattern "bgcolor" - FGColor |> DynObj.setValueOpt pattern "fgcolor" - FGOpacity |> DynObj.setValueOpt pattern "fgopacity" - FillMode |> DynObj.setValueOptBy pattern "fillmode" StyleParam.PatternFillMode.convert - (Shape, MultiShape) |> DynObj.setSingleOrMultiOptBy pattern "shape" StyleParam.PatternShape.convert - (Size, MultiSize) |> DynObj.setSingleOrMultiOpt pattern "size" - Solidity |> DynObj.setValueOpt pattern "solidity" - pattern + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "fgcolor" FGColor + |> DynObj.withOptionalProperty "fgopacity" FGOpacity + |> DynObj.withOptionalPropertyBy "fillmode" FillMode StyleParam.PatternFillMode.convert + |> DynObj.withOptionalSingleOrMultiPropertyBy "shape" (Shape, MultiShape) StyleParam.PatternShape.convert + |> DynObj.withOptionalSingleOrMultiProperty "size" (Size, MultiSize) + |> DynObj.withOptionalProperty "solidity" Solidity + diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs index d6261cd7b..d21c64a93 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs @@ -12,49 +12,47 @@ type ProjectionDimension() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Scale: float, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Opacity: float, + ?Scale: float, + ?Show: bool ) = ProjectionDimension() |> ProjectionDimension.style (?Opacity = Opacity, ?Scale = Scale, ?Show = Show) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Scale: float, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Opacity: float, + ?Scale: float, + ?Show: bool ) = fun (projectionDimension: ProjectionDimension) -> - Opacity |> DynObj.setValueOpt projectionDimension "opacity" - Scale |> DynObj.setValueOpt projectionDimension "scale" - Show |> DynObj.setValueOpt projectionDimension "show" - projectionDimension + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "scale" Scale + |> DynObj.withOptionalProperty "show" Show type Projection() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: ProjectionDimension, - [<Optional; DefaultParameterValue(null)>] ?Y: ProjectionDimension, - [<Optional; DefaultParameterValue(null)>] ?Z: ProjectionDimension + ?X: ProjectionDimension, + ?Y: ProjectionDimension, + ?Z: ProjectionDimension ) = Projection() |> Projection.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: ProjectionDimension, - [<Optional; DefaultParameterValue(null)>] ?Y: ProjectionDimension, - [<Optional; DefaultParameterValue(null)>] ?Z: ProjectionDimension + ?X: ProjectionDimension, + ?Y: ProjectionDimension, + ?Z: ProjectionDimension ) = fun (projection: Projection) -> - X |> DynObj.setValueOpt projection "x" - Y |> DynObj.setValueOpt projection "y" - Z |> DynObj.setValueOpt projection "z" - projection + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z \ No newline at end of file diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs index 17d13fa9c..9ae58ac34 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs @@ -11,19 +11,19 @@ type SankeyNodes() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Groups: seq<#seq<int>>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Label: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Pad: int, - [<Optional; DefaultParameterValue(null)>] ?Thickness: int, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible> + ?Color: Color, + ?CustomData: seq<#IConvertible>, + ?Groups: seq<#seq<int>>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverLabel: Hoverlabel, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Label: seq<string>, + ?Line: Line, + ?Pad: int, + ?Thickness: int, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible> ) = SankeyNodes() @@ -46,48 +46,46 @@ type SankeyNodes() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Groups: seq<#seq<int>>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Label: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Pad: int, - [<Optional; DefaultParameterValue(null)>] ?Thickness: int, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible> + ?Color: Color, + ?CustomData: seq<#IConvertible>, + ?Groups: seq<#seq<int>>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverLabel: Hoverlabel, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Label: seq<string>, + ?Line: Line, + ?Pad: int, + ?Thickness: int, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible> ) = - (fun (sankeyNodes: SankeyNodes) -> - - Color |> DynObj.setValueOpt sankeyNodes "color" - CustomData |> DynObj.setValueOpt sankeyNodes "customdata" - Groups |> DynObj.setValueOpt sankeyNodes "hoverinfo" - HoverInfo |> DynObj.setValueOptBy sankeyNodes "color" StyleParam.HoverInfo.convert - HoverLabel |> DynObj.setValueOpt sankeyNodes "hoverlabel" - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt sankeyNodes "hovertemplate" - Label |> DynObj.setValueOpt sankeyNodes "label" - Line |> DynObj.setValueOpt sankeyNodes "line" - Pad |> DynObj.setValueOpt sankeyNodes "pad" - Thickness |> DynObj.setValueOpt sankeyNodes "thickness" - X |> DynObj.setValueOpt sankeyNodes "x" - Y |> DynObj.setValueOpt sankeyNodes "y" - - sankeyNodes) + fun (sankeyNodes: SankeyNodes) -> + sankeyNodes + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "groups" Groups + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y type SankeyLinkColorscale() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?Label: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?CMax: float, + ?CMin: float, + ?ColorScale: StyleParam.Colorscale, + ?Label: string, + ?Name: string, + ?TemplateItemName: string ) = SankeyLinkColorscale() @@ -103,43 +101,41 @@ type SankeyLinkColorscale() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?Label: string, - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?TemplateItemName: string + ?CMax: float, + ?CMin: float, + ?ColorScale: StyleParam.Colorscale, + ?Label: string, + ?Name: string, + ?TemplateItemName: string ) = - (fun (sankeyLinkColorscale: SankeyLinkColorscale) -> + fun (sankeyLinkColorscale: SankeyLinkColorscale) -> - CMax |> DynObj.setValueOpt sankeyLinkColorscale "cmax" - CMin |> DynObj.setValueOpt sankeyLinkColorscale "cmin" - ColorScale |> DynObj.setValueOptBy sankeyLinkColorscale "colorscale" StyleParam.Colorscale.convert - Label |> DynObj.setValueOpt sankeyLinkColorscale "label" - Name |> DynObj.setValueOpt sankeyLinkColorscale "name" - TemplateItemName |> DynObj.setValueOpt sankeyLinkColorscale "templateitemname" - - - sankeyLinkColorscale) + sankeyLinkColorscale + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName type SankeyLinks() = inherit DynamicObj() static member init ( - [<Optional; DefaultParameterValue(null)>] ?ArrowLen: int, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorScales: seq<SankeyLinkColorscale>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Label: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Source: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Target: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Value: seq<#IConvertible> + ?ArrowLen: int, + ?Color: Color, + ?ColorScales: seq<SankeyLinkColorscale>, + ?CustomData: seq<#IConvertible>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverLabel: Hoverlabel, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Label: seq<string>, + ?Line: Line, + ?Source: seq<int>, + ?Target: seq<int>, + ?Value: seq<#IConvertible> ) = SankeyLinks() @@ -162,35 +158,33 @@ type SankeyLinks() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?ArrowLen: int, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorScales: seq<SankeyLinkColorscale>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Label: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Source: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Target: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?Value: seq<#IConvertible> + ?ArrowLen: int, + ?Color: Color, + ?ColorScales: seq<SankeyLinkColorscale>, + ?CustomData: seq<#IConvertible>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverLabel: Hoverlabel, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Label: seq<string>, + ?Line: Line, + ?Source: seq<int>, + ?Target: seq<int>, + ?Value: seq<#IConvertible> ) = - (fun (sankeyLinks: SankeyLinks) -> - - ArrowLen |> DynObj.setValueOpt sankeyLinks "arrowlen" - Color |> DynObj.setValueOpt sankeyLinks "color" - ColorScales |> DynObj.setValueOpt sankeyLinks "colorscales" - CustomData |> DynObj.setValueOpt sankeyLinks "customdata" - HoverInfo |> DynObj.setValueOptBy sankeyLinks "hoverinfo" StyleParam.HoverInfo.convert - HoverLabel |> DynObj.setValueOpt sankeyLinks "hoverlabel" - HoverTemplate |> DynObj.setValueOpt sankeyLinks "hovertemplate" - MultiHoverTemplate |> DynObj.setValueOpt sankeyLinks "multihovertemplate" - Label |> DynObj.setValueOpt sankeyLinks "label" - Line |> DynObj.setValueOpt sankeyLinks "line" - Source |> DynObj.setValueOpt sankeyLinks "source" - Target |> DynObj.setValueOpt sankeyLinks "target" - Value |> DynObj.setValueOpt sankeyLinks "value" - - - sankeyLinks) + fun (sankeyLinks: SankeyLinks) -> + + sankeyLinks + |> DynObj.withOptionalProperty "arrowlen" ArrowLen + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "colorscales" ColorScales + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalProperty "target" Target + |> DynObj.withOptionalProperty "value" Value + diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs index 60ec2a430..0bbca8455 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs @@ -11,26 +11,25 @@ type SlicesFill() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Locations: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Fill: float, + ?Locations: seq<#IConvertible>, + ?Show: bool ) = SlicesFill() |> SlicesFill.style (?Fill = Fill, ?Locations = Locations, ?Show = Show) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Locations: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Fill: float, + ?Locations: seq<#IConvertible>, + ?Show: bool ) = fun (slicesFill: SlicesFill) -> - Fill |> DynObj.setValueOpt slicesFill "fill" - Locations |> DynObj.setValueOpt slicesFill "locations" - Show |> DynObj.setValueOpt slicesFill "show" - slicesFill + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalProperty "show" Show type Slices() = @@ -38,23 +37,22 @@ type Slices() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: SlicesFill, - [<Optional; DefaultParameterValue(null)>] ?Y: SlicesFill, - [<Optional; DefaultParameterValue(null)>] ?Z: SlicesFill + ?X: SlicesFill, + ?Y: SlicesFill, + ?Z: SlicesFill ) = Slices() |> Slices.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: SlicesFill, - [<Optional; DefaultParameterValue(null)>] ?Y: SlicesFill, - [<Optional; DefaultParameterValue(null)>] ?Z: SlicesFill + ?X: SlicesFill, + ?Y: SlicesFill, + ?Z: SlicesFill ) = fun (slices: Slices) -> - X |> DynObj.setValueOpt slices "x" - Y |> DynObj.setValueOpt slices "y" - Z |> DynObj.setValueOpt slices "z" - slices + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs b/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs index 98a726ff9..245eae99e 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs @@ -11,20 +11,19 @@ type Spaceframe() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Fill: float, + ?Show: bool ) = Spaceframe() |> Spaceframe.style (?Fill = Fill, ?Show = Show) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Fill: float, + ?Show: bool ) = fun (spaceframe: Spaceframe) -> - Fill |> DynObj.setValueOpt spaceframe "fill" - Show |> DynObj.setValueOpt spaceframe "show" - spaceframe + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "show" Show diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs b/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs index 266305f00..4381ff51e 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs @@ -9,13 +9,12 @@ open System.Runtime.InteropServices type SplomDiagonal() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Visible: bool) = + static member init(?Visible: bool) = SplomDiagonal() |> SplomDiagonal.style (?Visible = Visible) - static member style([<Optional; DefaultParameterValue(null)>] ?Visible: bool) = + static member style(?Visible: bool) = fun (splomDiagonal: SplomDiagonal) -> - Visible |> DynObj.setValueOpt splomDiagonal "visible" - splomDiagonal + |> DynObj.withOptionalProperty "visible" Visible diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs b/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs index 716a9f8e9..693efadcd 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs @@ -18,9 +18,9 @@ type StreamTubeStarts() = /// <param name="Z">Sets the z components of the starting position of the streamtubes</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible> + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible> ) = StreamTubeStarts() |> StreamTubeStarts.style (?X = X, ?Y = Y, ?Z = Z) @@ -33,14 +33,13 @@ type StreamTubeStarts() = /// <param name="Z">Sets the z components of the starting position of the streamtubes</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible> + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible> ) = fun (streamTubeStarts: StreamTubeStarts) -> - X |> DynObj.setValueOpt streamTubeStarts "x" - Y |> DynObj.setValueOpt streamTubeStarts "y" - Z |> DynObj.setValueOpt streamTubeStarts "z" - streamTubeStarts + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs index bac124273..24c7af241 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs @@ -10,27 +10,25 @@ open System.Runtime.InteropServices type SunburstRoot() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Color: Color) = + static member init(?Color: Color) = SunburstRoot() |> SunburstRoot.style (?Color = Color) - static member style([<Optional; DefaultParameterValue(null)>] ?Color: Color) = - (fun (root: SunburstRoot) -> - - Color |> DynObj.setValueOpt root "color" - - root) + static member style(?Color: Color) = + fun (root: SunburstRoot) -> + root + |> DynObj.withOptionalProperty "color" Color type SunburstLeaf() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Opacity: float) = + static member init(?Opacity: float) = SunburstLeaf() |> SunburstLeaf.style (?Opacity = Opacity) - static member style([<Optional; DefaultParameterValue(null)>] ?Opacity: float) = - (fun (leaf: SunburstLeaf) -> + static member style(?Opacity: float) = + fun (leaf: SunburstLeaf) -> - Opacity |> DynObj.setValueOpt leaf "opacity" + leaf + |> DynObj.withOptionalProperty "opacity" Opacity - leaf) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs index 840adeee4..2c1c38a51 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs @@ -11,26 +11,25 @@ type Surface() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Count: int, - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.SurfacePattern, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Count: int, + ?Fill: float, + ?Pattern: StyleParam.SurfacePattern, + ?Show: bool ) = Surface() |> Surface.style (?Count = Count, ?Fill = Fill, ?Pattern = Pattern, ?Show = Show) static member style ( - [<Optional; DefaultParameterValue(null)>] ?Count: int, - [<Optional; DefaultParameterValue(null)>] ?Fill: float, - [<Optional; DefaultParameterValue(null)>] ?Pattern: StyleParam.SurfacePattern, - [<Optional; DefaultParameterValue(null)>] ?Show: bool + ?Count: int, + ?Fill: float, + ?Pattern: StyleParam.SurfacePattern, + ?Show: bool ) = fun (surface: Surface) -> - Count |> DynObj.setValueOpt surface "count" - Fill |> DynObj.setValueOpt surface "fill" - Pattern |> DynObj.setValueOptBy surface "pattern" StyleParam.SurfacePattern.convert - Show |> DynObj.setValueOpt surface "show" - surface + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalPropertyBy "pattern" Pattern StyleParam.SurfacePattern.convert + |> DynObj.withOptionalProperty "show" Show diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs index aa1e8605a..da60f429d 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs @@ -10,14 +10,13 @@ open System.Runtime.InteropServices type TableFill() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Color: Color) = + static member init(?Color: Color) = TableFill() |> TableFill.style (?Color = Color) - static member style([<Optional; DefaultParameterValue(null)>] ?Color: Color) = - (fun (fill: TableFill) -> - Color |> DynObj.setValueOpt fill "color" - fill) - + static member style(?Color: Color) = + fun (fill: TableFill) -> + fill + |> DynObj.withOptionalProperty "color" Color /// Cells type inherits from dynamic object type TableCells() = @@ -26,18 +25,18 @@ type TableCells() = /// Initialized Cells object static member init ( - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.HorizontalAlign, - [<Optional; DefaultParameterValue(null)>] ?MultiAlign: seq<StyleParam.HorizontalAlign>, - [<Optional; DefaultParameterValue(null)>] ?Fill: TableFill, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Format: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Prefix: string, - [<Optional; DefaultParameterValue(null)>] ?MultiPrefix: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Suffix: string, - [<Optional; DefaultParameterValue(null)>] ?MultiSuffix: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#seq<#IConvertible>> + ?Align: StyleParam.HorizontalAlign, + ?MultiAlign: seq<StyleParam.HorizontalAlign>, + ?Fill: TableFill, + ?Font: Font, + ?Format: seq<string>, + ?Height: int, + ?Line: Line, + ?Prefix: string, + ?MultiPrefix: seq<string>, + ?Suffix: string, + ?MultiSuffix: seq<string>, + ?Values: seq<#seq<#IConvertible>> ) = TableCells() |> TableCells.style ( @@ -58,32 +57,30 @@ type TableCells() = //Applies the styles to TableCells() static member style ( - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.HorizontalAlign, - [<Optional; DefaultParameterValue(null)>] ?MultiAlign: seq<StyleParam.HorizontalAlign>, - [<Optional; DefaultParameterValue(null)>] ?Fill: TableFill, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?Format: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Height: int, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Prefix: string, - [<Optional; DefaultParameterValue(null)>] ?MultiPrefix: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Suffix: string, - [<Optional; DefaultParameterValue(null)>] ?MultiSuffix: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#seq<#IConvertible>> + ?Align: StyleParam.HorizontalAlign, + ?MultiAlign: seq<StyleParam.HorizontalAlign>, + ?Fill: TableFill, + ?Font: Font, + ?Format: seq<string>, + ?Height: int, + ?Line: Line, + ?Prefix: string, + ?MultiPrefix: seq<string>, + ?Suffix: string, + ?MultiSuffix: seq<string>, + ?Values: seq<#seq<#IConvertible>> ) = - (fun (cells: TableCells) -> - - (Align, MultiAlign) |> DynObj.setSingleOrMultiOptBy cells "align" StyleParam.HorizontalAlign.convert - Fill |> DynObj.setValueOpt cells "fill" - Font |> DynObj.setValueOpt cells "font" - Format |> DynObj.setValueOpt cells "format" - Height |> DynObj.setValueOpt cells "height" - Line |> DynObj.setValueOpt cells "line" - (Prefix, MultiPrefix) |> DynObj.setSingleOrMultiOpt cells "prefix" - (Suffix, MultiSuffix) |> DynObj.setSingleOrMultiOpt cells "suffix" - Values |> DynObj.setValueOpt cells "values" - + fun (cells: TableCells) -> - cells) + cells + |> DynObj.withOptionalSingleOrMultiPropertyBy "align" (Align, MultiAlign) StyleParam.HorizontalAlign.convert + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "format" Format + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalSingleOrMultiProperty "prefix" (Prefix, MultiPrefix) + |> DynObj.withOptionalSingleOrMultiProperty "suffix" (Suffix, MultiSuffix) + |> DynObj.withOptionalProperty "values" Values type TableHeader = TableCells diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs b/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs index fa92b8aba..4a2043d82 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs @@ -18,9 +18,9 @@ type MarkerSelectionStyle() = /// <param name="Size">Sets the size of the selected/unselected markers</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Size: int + ?Opacity: float, + ?Color: Color, + ?Size: int ) = MarkerSelectionStyle() |> MarkerSelectionStyle.style (?Opacity = Opacity, ?Color = Color, ?Size = Size) @@ -32,17 +32,16 @@ type MarkerSelectionStyle() = /// <param name="Size">Sets the size of the selected/unselected markers</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Size: int + ?Opacity: float, + ?Color: Color, + ?Size: int ) = - (fun (markerSelectionStyle: MarkerSelectionStyle) -> + fun (markerSelectionStyle: MarkerSelectionStyle) -> - Opacity |> DynObj.setValueOpt markerSelectionStyle "opacity" - Color |> DynObj.setValueOpt markerSelectionStyle "color" - Size |> DynObj.setValueOpt markerSelectionStyle "size" - - markerSelectionStyle) + markerSelectionStyle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "size" Size /// <summary>Controls the style of selected lines in supported traces</summary> type LineSelectionStyle() = @@ -55,8 +54,8 @@ type LineSelectionStyle() = /// <param name="Color">Sets the color of the selected/unselected lines</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color + ?Opacity: float, + ?Color: Color ) = LineSelectionStyle() |> LineSelectionStyle.style (?Opacity = Opacity, ?Color = Color) @@ -67,15 +66,14 @@ type LineSelectionStyle() = /// <param name="Color">Sets the color of the selected/unselected lines</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color + ?Opacity: float, + ?Color: Color ) = - (fun (lineSelectionStyle: LineSelectionStyle) -> - - Opacity |> DynObj.setValueOpt lineSelectionStyle "opacity" - Color |> DynObj.setValueOpt lineSelectionStyle "color" + fun (lineSelectionStyle: LineSelectionStyle) -> - lineSelectionStyle) + lineSelectionStyle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "color" Color /// <summary>Controls the style of selected text in supported traces</summary> type FontSelectionStyle() = @@ -85,19 +83,18 @@ type FontSelectionStyle() = /// Returns a new FontSelectionStyle object with the given styles /// </summary> /// <param name="Color">Sets the color of the selected/unselected text</param> - static member init([<Optional; DefaultParameterValue(null)>] ?Color: Color) = + static member init(?Color: Color) = FontSelectionStyle() |> FontSelectionStyle.style (?Color = Color) /// <summary> /// Returns a function that applies the given styles to a FontSelectionStyle object /// </summary> /// <param name="Color">Sets the color of the selected/unselected text</param> - static member style([<Optional; DefaultParameterValue(null)>] ?Color: Color) = - (fun (fontSelectionStyle: FontSelectionStyle) -> + static member style(?Color: Color) = + fun (fontSelectionStyle: FontSelectionStyle) -> - Color |> DynObj.setValueOpt fontSelectionStyle "color" - - fontSelectionStyle) + fontSelectionStyle + |> DynObj.withOptionalProperty "color" Color /// <summary> /// Used to control selected/unselected trace item styles in supported traces. @@ -113,9 +110,9 @@ type TraceSelection() = /// <param name="FontSelectionStyle">Sets the styles of the selected/unselected texts</param> static member init ( - [<Optional; DefaultParameterValue(null)>] ?MarkerSelectionStyle: MarkerSelectionStyle, - [<Optional; DefaultParameterValue(null)>] ?LineSelectionStyle: LineSelectionStyle, - [<Optional; DefaultParameterValue(null)>] ?FontSelectionStyle: FontSelectionStyle + ?MarkerSelectionStyle: MarkerSelectionStyle, + ?LineSelectionStyle: LineSelectionStyle, + ?FontSelectionStyle: FontSelectionStyle ) = TraceSelection() |> TraceSelection.style ( @@ -132,14 +129,13 @@ type TraceSelection() = /// <param name="FontSelectionStyle">Sets the styles of the selected/unselected texts</param> static member style ( - [<Optional; DefaultParameterValue(null)>] ?MarkerSelectionStyle: MarkerSelectionStyle, - [<Optional; DefaultParameterValue(null)>] ?LineSelectionStyle: LineSelectionStyle, - [<Optional; DefaultParameterValue(null)>] ?FontSelectionStyle: FontSelectionStyle + ?MarkerSelectionStyle: MarkerSelectionStyle, + ?LineSelectionStyle: LineSelectionStyle, + ?FontSelectionStyle: FontSelectionStyle ) = - (fun (traceSelection: TraceSelection) -> - - MarkerSelectionStyle |> DynObj.setValueOpt traceSelection "marker" - LineSelectionStyle |> DynObj.setValueOpt traceSelection "line" - FontSelectionStyle |> DynObj.setValueOpt traceSelection "font" + fun (traceSelection: TraceSelection) -> - traceSelection) + traceSelection + |> DynObj.withOptionalProperty "marker" MarkerSelectionStyle + |> DynObj.withOptionalProperty "line" LineSelectionStyle + |> DynObj.withOptionalProperty "font" FontSelectionStyle diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs index d9de061bb..55dc6dcec 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs @@ -10,30 +10,27 @@ open System.Runtime.InteropServices type TreemapRoot() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Color: Color) = + static member init(?Color: Color) = TreemapRoot() |> TreemapRoot.style (?Color = Color) - static member style([<Optional; DefaultParameterValue(null)>] ?Color: Color) = - (fun (root: TreemapRoot) -> - - Color |> DynObj.setValueOpt root "color" - - root) + static member style(?Color: Color) = + fun (root: TreemapRoot) -> + root + |> DynObj.withProperty "color" Color type TreemapLeaf() = inherit DynamicObj() - static member init([<Optional; DefaultParameterValue(null)>] ?Opacity: float) = + static member init(?Opacity: float) = TreemapLeaf() |> TreemapLeaf.style (?Opacity = Opacity) - static member style([<Optional; DefaultParameterValue(null)>] ?Opacity: float) = - (fun (leaf: TreemapLeaf) -> - - Opacity |> DynObj.setValueOpt leaf "opacity" + static member style(?Opacity: float) = + fun (leaf: TreemapLeaf) -> - leaf) + leaf + |> DynObj.withOptionalProperty "opacity" Opacity type TreemapTiling() = @@ -41,10 +38,10 @@ type TreemapTiling() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Packing: StyleParam.TreemapTilingPacking, - [<Optional; DefaultParameterValue(null)>] ?SquarifyRatio: float, - [<Optional; DefaultParameterValue(null)>] ?Flip: StyleParam.TilingFlip, - [<Optional; DefaultParameterValue(null)>] ?Pad: float + ?Packing: StyleParam.TreemapTilingPacking, + ?SquarifyRatio: float, + ?Flip: StyleParam.TilingFlip, + ?Pad: float ) = TreemapTiling() @@ -52,15 +49,15 @@ type TreemapTiling() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Packing: StyleParam.TreemapTilingPacking, - [<Optional; DefaultParameterValue(null)>] ?SquarifyRatio: float, - [<Optional; DefaultParameterValue(null)>] ?Flip: StyleParam.TilingFlip, - [<Optional; DefaultParameterValue(null)>] ?Pad: float + ?Packing: StyleParam.TreemapTilingPacking, + ?SquarifyRatio: float, + ?Flip: StyleParam.TilingFlip, + ?Pad: float ) = - (fun (tiling: TreemapTiling) -> - Packing |> DynObj.setValueOptBy tiling "packing" StyleParam.TreemapTilingPacking.convert - SquarifyRatio |> DynObj.setValueOpt tiling "squarifyRatio" - Flip |> DynObj.setValueOptBy tiling "flip" StyleParam.TilingFlip.convert - Pad |> DynObj.setValueOpt tiling "pad" + fun (tiling: TreemapTiling) -> - tiling) + tiling + |> DynObj.withOptionalPropertyBy "packing" Packing StyleParam.TreemapTilingPacking.convert + |> DynObj.withOptionalProperty "squarifyRatio" SquarifyRatio + |> DynObj.withOptionalPropertyBy "flip" Flip StyleParam.TilingFlip.convert + |> DynObj.withOptionalProperty "pad" Pad diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs index 20c4be680..a8e878a02 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs @@ -20,9 +20,9 @@ type WaterfallConnector() = static member init ( - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?ConnectorMode: StyleParam.ConnectorMode + ?Line: Line, + ?Visible: bool, + ?ConnectorMode: StyleParam.ConnectorMode ) = WaterfallConnector() @@ -30,14 +30,13 @@ type WaterfallConnector() = static member style ( - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?ConnectorMode: StyleParam.ConnectorMode + ?Line: Line, + ?Visible: bool, + ?ConnectorMode: StyleParam.ConnectorMode ) = - (fun (connector: WaterfallConnector) -> + fun (connector: WaterfallConnector) -> - Line |> DynObj.setValueOpt connector "line" - Visible |> DynObj.setValueOpt connector "visible" - ConnectorMode |> DynObj.setValueOptBy connector "mode" StyleParam.ConnectorMode.convert - - connector) + connector + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "mode" ConnectorMode StyleParam.ConnectorMode.convert diff --git a/src/Plotly.NET/Traces/Trace.fs b/src/Plotly.NET/Traces/Trace.fs index 4910c8f35..866212099 100644 --- a/src/Plotly.NET/Traces/Trace.fs +++ b/src/Plotly.NET/Traces/Trace.fs @@ -22,7 +22,7 @@ type Trace(traceTypeName: string) = /// </summary> /// <param name="propName">The name of the dynamic member to get the value of</param> /// <param name="trace">The trace to get the dynamic member value from</param> - static member tryGetTypedMember<'T> (propName: string) (trace: Trace) = trace.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (trace: Trace) = trace.TryGetTypedPropertyValue<'T>(propName) /// <summary> /// Returns the Marker object of the given trace. @@ -39,7 +39,7 @@ type Trace(traceTypeName: string) = /// <param name="marker">The new marker object</param> static member setMarker(marker: Marker) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("marker", marker) + trace.SetProperty("marker", marker) trace) /// <summary> @@ -49,7 +49,7 @@ type Trace(traceTypeName: string) = static member updateMarker(marker: Marker) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getMarker) marker) :?> Marker + (DynObj.combine (trace |> Trace.getMarker) marker) |> unbox<Marker> trace |> Trace.setMarker combined) @@ -68,7 +68,7 @@ type Trace(traceTypeName: string) = /// <param name="line">The new line object</param> static member setLine(line: Line) = (fun (trace: #Trace) -> - trace.SetValue("line", line) + trace.SetProperty("line", line) trace) /// <summary> @@ -78,7 +78,7 @@ type Trace(traceTypeName: string) = static member updateLine(line: Line) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getLine) line) :?> Line + (DynObj.combine (trace |> Trace.getLine) line) |> unbox<Line> trace |> Trace.setLine combined) @@ -97,7 +97,7 @@ type Trace(traceTypeName: string) = /// <param name="error">The new error object</param> static member setXError(error: Error) = (fun (trace: #Trace) -> - trace.SetValue("error_x", error) + trace.SetProperty("error_x", error) trace) /// <summary> @@ -107,7 +107,7 @@ type Trace(traceTypeName: string) = static member updateXError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getXError) error) :?> Error + (DynObj.combine (trace |> Trace.getXError) error) |> unbox<Error> trace |> Trace.setXError combined) @@ -126,7 +126,7 @@ type Trace(traceTypeName: string) = /// <param name="error">The new error object</param> static member setYError(error: Error) = (fun (trace: #Trace) -> - trace.SetValue("error_y", error) + trace.SetProperty("error_y", error) trace) /// <summary> @@ -136,7 +136,7 @@ type Trace(traceTypeName: string) = static member updateYError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getYError) error) :?> Error + (DynObj.combine (trace |> Trace.getYError) error) |> unbox<Error> trace |> Trace.setYError combined) @@ -155,7 +155,7 @@ type Trace(traceTypeName: string) = /// <param name="error">The new error object</param> static member setZError(error: Error) = (fun (trace: #Trace) -> - trace.SetValue("error_z", error) + trace.SetProperty("error_z", error) trace) /// <summary> @@ -165,7 +165,7 @@ type Trace(traceTypeName: string) = static member updateZError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getZError) error) :?> Error + (DynObj.combine (trace |> Trace.getZError) error) |> unbox<Error> trace |> Trace.setZError combined) @@ -193,7 +193,7 @@ type Trace(traceTypeName: string) = StyleParam.SubPlotId.ColorAxis colorAxisId (fun (trace: #Trace) -> - trace.SetValue("coloraxis", StyleParam.SubPlotId.convert id) + trace.SetProperty("coloraxis", StyleParam.SubPlotId.convert id) trace) /// <summary> @@ -220,7 +220,7 @@ type Trace(traceTypeName: string) = StyleParam.SubPlotId.Legend legendId (fun (trace: #Trace) -> - trace.SetValue("legend", StyleParam.SubPlotId.convert id) + trace.SetProperty("legend", StyleParam.SubPlotId.convert id) trace) /// <summary> @@ -238,7 +238,7 @@ type Trace(traceTypeName: string) = /// <param name="domain">The new domain</param> static member setDomain(domain: Domain) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("domain", domain) + trace.SetProperty("domain", domain) trace) /// <summary> @@ -248,7 +248,7 @@ type Trace(traceTypeName: string) = static member updateDomain(domain: Domain) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getDomain) domain) :?> Domain + (DynObj.combine (trace |> Trace.getDomain) domain) |> unbox<Domain> trace |> Trace.setDomain combined) @@ -267,7 +267,7 @@ type Trace(traceTypeName: string) = /// <param name="stackgroup">The new stackgroup</param> static member setStackGroup(stackgroup: string) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("stackgroup", stackgroup) + trace.SetProperty("stackgroup", stackgroup) trace) /// <summary> @@ -286,7 +286,7 @@ type Trace(traceTypeName: string) = static member setColorBar(colorBar: ColorBar) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("colorbar", colorBar) + trace.SetProperty("colorbar", colorBar) trace) /// <summary> @@ -296,7 +296,7 @@ type Trace(traceTypeName: string) = static member updateColorBar(colorBar: ColorBar) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getColorBar) colorBar) :?> ColorBar + DynObj.combine (trace |> Trace.getColorBar) colorBar |> unbox<ColorBar> trace |> Trace.setColorBar combined) @@ -320,23 +320,21 @@ type TraceStyle() = /// <param name="LegendGroupTitle">Sets the title for the chart's trace legend group </param> static member TraceInfo ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle /// <summary> /// Returns a function that applies the given styles to the trace's marker object. Overwrites attributes with the same name that are already set. @@ -377,40 +375,40 @@ type TraceStyle() = /// <param name="OutlierWidth">Sets the width of the outlier sample points.</param> static member Marker ( - [<Optional; DefaultParameterValue(null)>] ?Angle: float, - [<Optional; DefaultParameterValue(null)>] ?AngleRef: StyleParam.AngleRef, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Colors: seq<Color>, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?CornerRadius: int, - [<Optional; DefaultParameterValue(null)>] ?Gradient: Gradient, - [<Optional; DefaultParameterValue(null)>] ?Outline: Line, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?MultiOpacity: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Pattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?Size: int, - [<Optional; DefaultParameterValue(null)>] ?MultiSize: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?SizeMin: int, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.MarkerSizeMode, - [<Optional; DefaultParameterValue(null)>] ?SizeRef: int, - [<Optional; DefaultParameterValue(null)>] ?StandOff: float, - [<Optional; DefaultParameterValue(null)>] ?MultiStandOff: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Symbol: StyleParam.MarkerSymbol, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol: seq<StyleParam.MarkerSymbol>, - [<Optional; DefaultParameterValue(null)>] ?Symbol3D: StyleParam.MarkerSymbol3D, - [<Optional; DefaultParameterValue(null)>] ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: int + ?Angle: float, + ?AngleRef: StyleParam.AngleRef, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?Colors: seq<Color>, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?Colorscale: StyleParam.Colorscale, + ?CornerRadius: int, + ?Gradient: Gradient, + ?Outline: Line, + ?MaxDisplayed: int, + ?Opacity: float, + ?MultiOpacity: seq<float>, + ?Pattern: Pattern, + ?ReverseScale: bool, + ?ShowScale: bool, + ?Size: int, + ?MultiSize: seq<int>, + ?SizeMin: int, + ?SizeMode: StyleParam.MarkerSizeMode, + ?SizeRef: int, + ?StandOff: float, + ?MultiStandOff: seq<float>, + ?Symbol: StyleParam.MarkerSymbol, + ?MultiSymbol: seq<StyleParam.MarkerSymbol>, + ?Symbol3D: StyleParam.MarkerSymbol3D, + ?MultiSymbol3D: seq<StyleParam.MarkerSymbol3D>, + ?OutlierColor: Color, + ?OutlierWidth: int ) = (fun (trace: ('T :> Trace)) -> let marker = @@ -480,26 +478,26 @@ type TraceStyle() = /// <param name="OutlierWidth">Sets the width of the outline of outliers</param> static member Line ( - [<Optional; DefaultParameterValue(null)>] ?BackOff: StyleParam.BackOff, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Colorscale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?Dash: StyleParam.DrawingStyle, - [<Optional; DefaultParameterValue(null)>] ?Shape: StyleParam.Shape, - [<Optional; DefaultParameterValue(null)>] ?Simplify: bool, - [<Optional; DefaultParameterValue(null)>] ?Smoothing: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?OutlierColor: Color, - [<Optional; DefaultParameterValue(null)>] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq<float>, + ?OutlierColor: Color, + ?OutlierWidth: float ) = (fun (trace: ('T :> Trace)) -> let line = @@ -548,19 +546,19 @@ type TraceStyle() = /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> static member XError ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = (fun (trace: ('T :> Trace)) -> let xerror = @@ -602,19 +600,19 @@ type TraceStyle() = /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> static member YError ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = (fun (trace: ('T :> Trace)) -> let yerror = @@ -656,19 +654,19 @@ type TraceStyle() = /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> static member ZError ( - [<Optional; DefaultParameterValue(null)>] ?Visible: bool, - [<Optional; DefaultParameterValue(null)>] ?Type: StyleParam.ErrorType, - [<Optional; DefaultParameterValue(null)>] ?Symmetric: bool, - [<Optional; DefaultParameterValue(null)>] ?Array: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrayminus: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: float, - [<Optional; DefaultParameterValue(null)>] ?Valueminus: float, - [<Optional; DefaultParameterValue(null)>] ?Traceref: int, - [<Optional; DefaultParameterValue(null)>] ?Tracerefminus: int, - [<Optional; DefaultParameterValue(null)>] ?Copy_ystyle: bool, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Thickness: float, - [<Optional; DefaultParameterValue(null)>] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = (fun (trace: ('T :> Trace)) -> let zerror = @@ -700,17 +698,15 @@ type TraceStyle() = /// <param name="Unselected">Sets the style of unselected points of this trace.</param> static member Selection ( - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection ) = - (fun (trace: ('T :> Trace)) -> - - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected /// <summary> /// Returns a function that applies the given styles to the trace's text items. @@ -729,43 +725,39 @@ type TraceStyle() = /// <param name="TextFont">Sets the text font of this trace.</param> static member TextLabel ( - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?TextFont: Font ) = - (fun (trace: ('T :> Trace)) -> - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "textfont" TextFont - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - - TextFont |> DynObj.setValueOpt trace "textfont" - - trace) // <summary> /// Returns a function that applies the given styles to the trace's domain object. /// </summary> static member Domain ( - [<Optional; DefaultParameterValue(null)>] ?X: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Y: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?Row: int, - [<Optional; DefaultParameterValue(null)>] ?Column: int + ?X: StyleParam.Range, + ?Y: StyleParam.Range, + ?Row: int, + ?Column: int ) = (fun (trace: ('T :> Trace)) -> let domain = diff --git a/src/Plotly.NET/Traces/Trace2D.fs b/src/Plotly.NET/Traces/Trace2D.fs index a6f57446d..9819a700b 100644 --- a/src/Plotly.NET/Traces/Trace2D.fs +++ b/src/Plotly.NET/Traces/Trace2D.fs @@ -100,15 +100,13 @@ type Trace2DStyle() = /// Sets the given axis anchor id(s) on a Trace object. static member SetAxisAnchor ( - [<Optional; DefaultParameterValue(null)>] ?X: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Y: StyleParam.LinearAxisId + ?X: StyleParam.LinearAxisId, + ?Y: StyleParam.LinearAxisId ) = - (fun (trace: Trace2D) -> - - X |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.toString - Y |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.toString - - trace) + fun (trace: Trace2D) -> + trace + |> DynObj.withOptionalPropertyBy "xaxis" X StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" Y StyleParam.LinearAxisId.convert /// <summary> /// Create a function that applies the styles of a scatter plot to a Trace object @@ -180,137 +178,133 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Scatter ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?GroupNorm: StyleParam.GroupNorm, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?StackGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?XError: Error, - [<Optional; DefaultParameterValue(null)>] ?YError: Error, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?FillPattern: Pattern, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOn: StyleParam.HoverOn, - [<Optional; DefaultParameterValue(null)>] ?StackGaps: StyleParam.StackGaps, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?XError: Error, + ?YError: Error, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?StackGaps: StyleParam.StackGaps, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt trace "x" - X0 |> DynObj.setValueOpt trace "x0" - DX |> DynObj.setValueOpt trace "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt trace "y" - Y0 |> DynObj.setValueOpt trace "y0" - DY |> DynObj.setValueOpt trace "dy" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy"textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalPropertyBy "groupnorm" GroupNorm StyleParam.GroupNorm.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "stackgroup" StackGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "fillpattern" FillPattern + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalPropertyBy "stackgaps" StackGaps StyleParam.StackGaps.convert + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy trace "orientation" StyleParam.Orientation.convert - GroupNorm |> DynObj.setValueOptBy trace "groupnorm" StyleParam.GroupNorm.convert - AlignmentGroup |> DynObj.setValueOpt trace "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt trace "offsetgroup" - StackGroup |> DynObj.setValueOpt trace "stackgroup" - XPeriod |> DynObj.setValueOpt trace "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt trace "xperiod0" - YPeriod |> DynObj.setValueOpt trace "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt trace "yperiod0" - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - XError |> DynObj.setValueOpt trace "error_x" - YError |> DynObj.setValueOpt trace "error_y" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - FillPattern |> DynObj.setValueOpt trace "fillpattern" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - StackGaps |> DynObj.setValueOptBy trace "stackgaps" StyleParam.StackGaps.convert - XCalendar |> DynObj.setValueOptBy trace "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy trace "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) /// <summary> /// Create a function that applies the styles of a bar plot to a Trace object @@ -382,137 +376,131 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Bar ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Offset: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiOffset: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: float, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?XError: Error, - [<Optional; DefaultParameterValue(null)>] ?YError: Error, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?Constraintext: StyleParam.ConstrainText, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?Offset: #IConvertible, + ?MultiOffset: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?TextAngle: float, + ?TextFont: Font, + ?XError: Error, + ?YError: Error, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?Constraintext: StyleParam.ConstrainText, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (bar: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt bar "name" - Visible |> DynObj.setValueOptBy bar "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt bar "showlegend" - Legend |> DynObj.setValueOptBy bar "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt bar "legendrank" - LegendGroup |> DynObj.setValueOpt bar "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt bar "legendgrouptitle" - Opacity |> DynObj.setValueOpt bar "opacity" - Ids |> DynObj.setValueOpt bar "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt bar "x" - X0 |> DynObj.setValueOpt bar "x0" - DX |> DynObj.setValueOpt bar "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt bar "y" - Y0 |> DynObj.setValueOpt bar "y0" - DY |> DynObj.setValueOpt bar "dy" - Base |> DynObj.setValueOpt bar "base" - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt bar "width" - (Offset, MultiOffset) |> DynObj.setSingleOrMultiOpt bar "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt bar "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy bar "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt bar "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt bar "hovertext" - HoverInfo |> DynObj.setValueOptBy bar "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt bar "hovertemplate" - XHoverFormat |> DynObj.setValueOpt bar "xhoverformat" - YHoverFormat |> DynObj.setValueOpt bar "yhoverformat" - Meta |> DynObj.setValueOpt bar "meta" - CustomData |> DynObj.setValueOpt bar "customdata" - XAxis |> DynObj.setValueOptBy bar "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy bar "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy bar "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt bar "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt bar "offsetgroup" - XPeriod |> DynObj.setValueOpt bar "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy bar "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt bar "xperiod0" - YPeriod |> DynObj.setValueOpt bar "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy bar "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt bar "yperiod0" - Marker |> DynObj.setValueOpt bar "marker" - TextAngle |> DynObj.setValueOpt bar "textangle" - TextFont |> DynObj.setValueOpt bar "textfont" - XError |> DynObj.setValueOpt bar "error_x" - YError |> DynObj.setValueOpt bar "error_y" - SelectedPoints |> DynObj.setValueOpt bar "selectedpoints" - Selected |> DynObj.setValueOpt bar "selected" - Unselected |> DynObj.setValueOpt bar "unselected" - ClipOnAxis |> DynObj.setValueOpt bar "cliponaxis" - Constraintext |> DynObj.setValueOptBy bar "constraintext" StyleParam.ConstrainText.convert - HoverLabel |> DynObj.setValueOpt bar "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy bar "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt bar "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt bar "outsidetextfont" - XCalendar |> DynObj.setValueOptBy bar "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy bar "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt bar "uirevision" + fun (bar: ('T :> Trace)) -> bar - - ) + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "base" Base + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalSingleOrMultiProperty "offset" (Offset, MultiOffset) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a funnel plot to a Trace object @@ -577,125 +565,120 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Funnel ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?Offset: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: float, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?Connector: FunnelConnector, - [<Optional; DefaultParameterValue(null)>] ?Constraintext: StyleParam.ConstrainText, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Width: float, + ?Offset: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?TextAngle: float, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?SelectedPoints: seq<#IConvertible>, + ?ClipOnAxis: bool, + ?Connector: FunnelConnector, + ?Constraintext: StyleParam.ConstrainText, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?UIRevision: string ) = - (fun (funnel: #Trace) -> - - Name |> DynObj.setValueOpt funnel "name" - Visible |> DynObj.setValueOptBy funnel "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt funnel "showlegend" - Legend |> DynObj.setValueOptBy funnel "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt funnel "legendrank" - LegendGroup |> DynObj.setValueOpt funnel "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt funnel "legendgrouptitle" - Opacity |> DynObj.setValueOpt funnel "opacity" - Ids |> DynObj.setValueOpt funnel "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt funnel "x" - X0 |> DynObj.setValueOpt funnel "x0" - DX |> DynObj.setValueOpt funnel "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt funnel "y" - Y0 |> DynObj.setValueOpt funnel "y0" - DY |> DynObj.setValueOpt funnel "dy" - Width |> DynObj.setValueOpt funnel "width" - Offset |> DynObj.setValueOpt funnel "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt funnel "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy funnel "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt funnel "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt funnel "hovertext" - HoverInfo |> DynObj.setValueOptBy funnel "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt funnel "hovertemplate" - XHoverFormat |> DynObj.setValueOpt funnel "xhoverformat" - YHoverFormat |> DynObj.setValueOpt funnel "yhoverformat" - Meta |> DynObj.setValueOpt funnel "meta" - CustomData |> DynObj.setValueOpt funnel "customdata" - XAxis |> DynObj.setValueOptBy funnel "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy funnel "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy funnel "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt funnel "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt funnel "offsetgroup" - XPeriod |> DynObj.setValueOpt funnel "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy funnel "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt funnel "xperiod0" - YPeriod |> DynObj.setValueOpt funnel "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy funnel "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt funnel "yperiod0" - Marker |> DynObj.setValueOpt funnel "marker" - TextAngle |> DynObj.setValueOpt funnel "textangle" - TextFont |> DynObj.setValueOpt funnel "textfont" - TextInfo |> DynObj.setValueOptBy funnel "textinfo" StyleParam.TextInfo.convert - SelectedPoints |> DynObj.setValueOpt funnel "selectedpoints" - ClipOnAxis |> DynObj.setValueOpt funnel "cliponaxis" - Connector |> DynObj.setValueOpt funnel "connector" - Constraintext |> DynObj.setValueOptBy funnel "constraintext" StyleParam.ConstrainText.convert - HoverLabel |> DynObj.setValueOpt funnel "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy funnel "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt funnel "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt funnel "outsidetextfont" - UIRevision |> DynObj.setValueOpt funnel "uirevision" - + fun (funnel: #Trace) -> + funnel + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "offset" Offset + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connector" Connector + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "uirevision" UIRevision - ) /// <summary> /// Create a function that applies the styles of a waterfall plot to a Trace object @@ -766,134 +749,129 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Waterfall ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Measure: StyleParam.WaterfallMeasure seq, - [<Optional; DefaultParameterValue(null)>] ?Offset: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiOffset: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: float, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?Connector: WaterfallConnector, - [<Optional; DefaultParameterValue(null)>] ?Constraintext: StyleParam.ConstrainText, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Totals: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Base: #IConvertible, + ?Width: float, + ?MultiWidth: seq<float>, + ?Measure: StyleParam.WaterfallMeasure seq, + ?Offset: #IConvertible, + ?MultiOffset: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?TextAngle: float, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?SelectedPoints: seq<#IConvertible>, + ?ClipOnAxis: bool, + ?Connector: WaterfallConnector, + ?Constraintext: StyleParam.ConstrainText, + ?Increasing: FinanceMarker, + ?Decreasing: FinanceMarker, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?Totals: FinanceMarker, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt trace "x" - X0 |> DynObj.setValueOpt trace "x0" - DX |> DynObj.setValueOpt trace "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt trace "y" - Y0 |> DynObj.setValueOpt trace "y0" - DY |> DynObj.setValueOpt trace "dy" - Base |> DynObj.setValueOpt trace "base" - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt trace "width" - Measure |> DynObj.setValueOptBy trace "measure" (Seq.map StyleParam.WaterfallMeasure.convert) - (Offset, MultiOffset) |> DynObj.setSingleOrMultiOpt trace "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemTotalsplate" - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy trace "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt trace "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt trace "offsetgroup" - XPeriod |> DynObj.setValueOpt trace "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt trace "xperiod0" - YPeriod |> DynObj.setValueOpt trace "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt trace "yperiod0" - TextAngle |> DynObj.setValueOpt trace "textangle" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOpt trace "textinfo" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - Connector |> DynObj.setValueOpt trace "connector" - Constraintext |> DynObj.setValueOptBy trace "constraintext" StyleParam.ConstrainText.convert - Increasing |> DynObj.setValueOpt trace "increasing" - Decreasing |> DynObj.setValueOpt trace "decreasing" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy trace "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Totals |> DynObj.setValueOpt trace "totals" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) - + fun (waterfall: ('T :> Trace)) -> + + waterfall + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "base" Base + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalPropertyBy "measure" Measure (Seq.map StyleParam.WaterfallMeasure.convert) + |> DynObj.withOptionalSingleOrMultiProperty "offset" (Offset, MultiOffset) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemTotalsplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "textinfo" TextInfo + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connector" Connector + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "totals" Totals + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a histogram plot to a Trace object @@ -960,125 +938,125 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Histogram ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?AutoBinX: bool, - [<Optional; DefaultParameterValue(null)>] ?AutoBinY: bool, - [<Optional; DefaultParameterValue(null)>] ?BinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextAngle: float, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?XError: Error, - [<Optional; DefaultParameterValue(null)>] ?YError: Error, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?Constraintext: StyleParam.ConstrainText, - [<Optional; DefaultParameterValue(null)>] ?Cumulative: Cumulative, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?NBinsX: int, + ?NBinsY: int, + ?AutoBinX: bool, + ?AutoBinY: bool, + ?BinGroup: string, + ?XBins: Bins, + ?YBins: Bins, + ?Marker: Marker, + ?TextAngle: float, + ?TextFont: Font, + ?Line: Line, + ?XError: Error, + ?YError: Error, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?Constraintext: StyleParam.ConstrainText, + ?Cumulative: Cumulative, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (histogram: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt histogram "name" - Visible |> DynObj.setValueOptBy histogram "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt histogram "showlegend" - Legend |> DynObj.setValueOptBy histogram "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt histogram "legendrank" - LegendGroup |> DynObj.setValueOpt histogram "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt histogram "legendgrouptitle" - Opacity |> DynObj.setValueOpt histogram "opacity" - Ids |> DynObj.setValueOpt histogram "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt histogram "x" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt histogram "y" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt histogram "text" - TextPosition |> DynObj.setValueOptBy histogram "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt histogram "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt histogram "hovertext" - HoverInfo |> DynObj.setValueOptBy histogram "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt histogram "hovertemplate" - XHoverFormat |> DynObj.setValueOpt histogram "xhoverformat" - YHoverFormat |> DynObj.setValueOpt histogram "yhoverformat" - Meta |> DynObj.setValueOpt histogram "meta" - CustomData |> DynObj.setValueOpt histogram "customdata" - XAxis |> DynObj.setValueOptBy histogram "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy histogram "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy histogram "orientation" StyleParam.Orientation.convert - HistFunc |> DynObj.setValueOptBy histogram "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setValueOptBy histogram "histnorm" StyleParam.HistNorm.convert - AlignmentGroup |> DynObj.setValueOpt histogram "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt histogram "offsetgroup" - NBinsX |> DynObj.setValueOpt histogram "nbinsx" - NBinsY |> DynObj.setValueOpt histogram "nbinsy" - AutoBinX |> DynObj.setValueOpt histogram "autobinx" - AutoBinY |> DynObj.setValueOpt histogram "autobiny" - BinGroup |> DynObj.setValueOpt histogram "bingroup" - XBins |> DynObj.setValueOpt histogram "xbins" - YBins |> DynObj.setValueOpt histogram "ybins" - Marker |> DynObj.setValueOpt histogram "marker" - TextAngle |> DynObj.setValueOpt histogram "textangle" - TextFont |> DynObj.setValueOpt histogram "textfont" - Line |> DynObj.setValueOpt histogram "line" - XError |> DynObj.setValueOpt histogram "error_x" - YError |> DynObj.setValueOpt histogram "error_y" - SelectedPoints |> DynObj.setValueOpt histogram "selectedpoints" - Selected |> DynObj.setValueOpt histogram "selected" - Unselected |> DynObj.setValueOpt histogram "unselected" - ClipOnAxis |> DynObj.setValueOpt histogram "cliponaxis" - Constraintext |> DynObj.setValueOptBy histogram "constraintext" StyleParam.ConstrainText.convert - Cumulative |> DynObj.setValueOpt histogram "cumulative" - HoverLabel |> DynObj.setValueOpt histogram "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy histogram "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt histogram "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt histogram "outsidetextfont" - XCalendar |> DynObj.setValueOptBy histogram "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy histogram "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt histogram "uirevision" + fun (histogram: ('T :> Trace)) -> + + histogram + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalPropertyBy "textposition" TextPosition StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalPropertyBy "histfunc" HistFunc StyleParam.HistFunc.convert + |> DynObj.withOptionalPropertyBy "histnorm" HistNorm StyleParam.HistNorm.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "nbinsx" NBinsX + |> DynObj.withOptionalProperty "nbinsy" NBinsY + |> DynObj.withOptionalProperty "autobinx" AutoBinX + |> DynObj.withOptionalProperty "autobiny" AutoBinY + |> DynObj.withOptionalProperty "bingroup" BinGroup + |> DynObj.withOptionalProperty "xbins" XBins + |> DynObj.withOptionalProperty "ybins" YBins + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "cumulative" Cumulative + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision - histogram) /// <summary> /// Create a function that applies the styles of a boxplot to a Trace object @@ -1156,149 +1134,147 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member BoxPlot ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?LegendWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?BoxMean: StyleParam.BoxMean, - [<Optional; DefaultParameterValue(null)>] ?BoxPoints: StyleParam.BoxPoints, - [<Optional; DefaultParameterValue(null)>] ?Notched: bool, - [<Optional; DefaultParameterValue(null)>] ?NotchWidth: float, - [<Optional; DefaultParameterValue(null)>] ?ShowWhiskers: bool, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(null)>] ?Q1: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Median: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Q3: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?LowerFence: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?UpperFence: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?NotchSpan: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Mean: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SD: seq<IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SDMultiple: float, - [<Optional; DefaultParameterValue(null)>] ?QuartileMethod: StyleParam.QuartileMethod, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOn: StyleParam.HoverOn, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.BoxSizeMode, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Width: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?Line: Line, + ?BoxMean: StyleParam.BoxMean, + ?BoxPoints: StyleParam.BoxPoints, + ?Notched: bool, + ?NotchWidth: float, + ?ShowWhiskers: bool, + ?WhiskerWidth: float, + ?Q1: seq<IConvertible>, + ?Median: seq<IConvertible>, + ?Q3: seq<IConvertible>, + ?LowerFence: seq<IConvertible>, + ?UpperFence: seq<IConvertible>, + ?NotchSpan: seq<IConvertible>, + ?Mean: seq<IConvertible>, + ?SD: seq<IConvertible>, + ?SDMultiple: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?PointPos: float, + ?Jitter: float, + ?SizeMode: StyleParam.BoxSizeMode, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (boxPlot: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt boxPlot "name" - Visible |> DynObj.setValueOptBy boxPlot "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt boxPlot "showlegend" - Legend |> DynObj.setValueOptBy boxPlot "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt boxPlot "legendrank" - LegendGroup |> DynObj.setValueOpt boxPlot "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt boxPlot "legendgrouptitle" - LegendWidth |> DynObj.setValueOpt boxPlot "legendwidth" - Opacity |> DynObj.setValueOpt boxPlot "opacity" - Ids |> DynObj.setValueOpt boxPlot "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt boxPlot "x" - X0 |> DynObj.setValueOpt boxPlot "x0" - DX |> DynObj.setValueOpt boxPlot "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt boxPlot "y" - Y0 |> DynObj.setValueOpt boxPlot "y0" - DY |> DynObj.setValueOpt boxPlot "dy" - Width |> DynObj.setValueOpt boxPlot "width" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt boxPlot "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt boxPlot "hovertext" - HoverInfo |> DynObj.setValueOptBy boxPlot "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt boxPlot "hovertemplate" - XHoverFormat |> DynObj.setValueOpt boxPlot "xhoverformat" - YHoverFormat |> DynObj.setValueOpt boxPlot "yhoverformat" - Meta |> DynObj.setValueOpt boxPlot "meta" - CustomData |> DynObj.setValueOpt boxPlot "customdata" - XAxis |> DynObj.setValueOptBy boxPlot "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy boxPlot "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy boxPlot "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt boxPlot "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt boxPlot "offsetgroup" - XPeriod |> DynObj.setValueOpt boxPlot "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy boxPlot "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt boxPlot "xperiod0" - YPeriod |> DynObj.setValueOpt boxPlot "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy boxPlot "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt boxPlot "yperiod0" - Marker |> DynObj.setValueOpt boxPlot "marker" - Line |> DynObj.setValueOpt boxPlot "line" - BoxMean |> DynObj.setValueOptBy boxPlot "boxmean" StyleParam.BoxMean.convert - BoxPoints |> DynObj.setValueOptBy boxPlot "boxpoints" StyleParam.BoxPoints.convert - Notched |> DynObj.setValueOpt boxPlot "notched" - NotchWidth |> DynObj.setValueOpt boxPlot "notchwidth" - WhiskerWidth |> DynObj.setValueOpt boxPlot "whiskerwidth" - ShowWhiskers |> DynObj.setValueOpt boxPlot "showwhiskers" - Q1 |> DynObj.setValueOpt boxPlot "q1" - Median |> DynObj.setValueOpt boxPlot "median" - Q3 |> DynObj.setValueOpt boxPlot "q3" - LowerFence |> DynObj.setValueOpt boxPlot "lowerfence" - UpperFence |> DynObj.setValueOpt boxPlot "upperfence" - NotchSpan |> DynObj.setValueOpt boxPlot "notchspan" - Mean |> DynObj.setValueOpt boxPlot "mean" - SD |> DynObj.setValueOpt boxPlot "sd" - SDMultiple |> DynObj.setValueOpt boxPlot "sdmultiple" - QuartileMethod |> DynObj.setValueOptBy boxPlot "quartilemethod" StyleParam.QuartileMethod.convert - SelectedPoints |> DynObj.setValueOpt boxPlot "selectedpoints" - Selected |> DynObj.setValueOpt boxPlot "selected" - Unselected |> DynObj.setValueOpt boxPlot "unselected" - FillColor |> DynObj.setValueOpt boxPlot "fillcolor" - HoverLabel |> DynObj.setValueOpt boxPlot "hoverlabel" - HoverOn |> DynObj.setValueOptBy boxPlot "hoveron" StyleParam.HoverOn.convert - PointPos |> DynObj.setValueOpt boxPlot "pointpos" - Jitter |> DynObj.setValueOpt boxPlot "jitter" - SizeMode |> DynObj.setValueOptBy boxPlot "sizemode" StyleParam.BoxSizeMode.convert - XCalendar |> DynObj.setValueOptBy boxPlot "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy boxPlot "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt boxPlot "uirevision" - - // out -> - boxPlot) + fun (boxPlot: ('T :> Trace)) -> + + boxPlot + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "legendwidth" LegendWidth + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalPropertyBy "boxmean" BoxMean StyleParam.BoxMean.convert + |> DynObj.withOptionalPropertyBy "boxpoints" BoxPoints StyleParam.BoxPoints.convert + |> DynObj.withOptionalProperty "notched" Notched + |> DynObj.withOptionalProperty "notchwidth" NotchWidth + |> DynObj.withOptionalProperty "whiskerwidth" WhiskerWidth + |> DynObj.withOptionalProperty "showwhiskers" ShowWhiskers + |> DynObj.withOptionalProperty "q1" Q1 + |> DynObj.withOptionalProperty "median" Median + |> DynObj.withOptionalProperty "q3" Q3 + |> DynObj.withOptionalProperty "lowerfence" LowerFence + |> DynObj.withOptionalProperty "upperfence" UpperFence + |> DynObj.withOptionalProperty "notchspan" NotchSpan + |> DynObj.withOptionalProperty "mean" Mean + |> DynObj.withOptionalProperty "sd" SD + |> DynObj.withOptionalProperty "sdmultiple" SDMultiple + |> DynObj.withOptionalPropertyBy "quartilemethod" QuartileMethod StyleParam.QuartileMethod.convert + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "pointpos" PointPos + |> DynObj.withOptionalProperty "jitter" Jitter + |> DynObj.withOptionalPropertyBy "sizemode" SizeMode StyleParam.BoxSizeMode.convert + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> @@ -1360,114 +1336,113 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Violin ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Width: float, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?AlignmentGroup: string, - [<Optional; DefaultParameterValue(null)>] ?OffsetGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Box: Box, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?BandWidth: float, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOn: StyleParam.HoverOn, - [<Optional; DefaultParameterValue(null)>] ?PointPos: float, - [<Optional; DefaultParameterValue(null)>] ?Jitter: float, - [<Optional; DefaultParameterValue(null)>] ?MeanLine: MeanLine, - [<Optional; DefaultParameterValue(null)>] ?Points: StyleParam.JitterPoints, - [<Optional; DefaultParameterValue(null)>] ?ScaleGroup: string, - [<Optional; DefaultParameterValue(null)>] ?ScaleMode: StyleParam.ScaleMode, - [<Optional; DefaultParameterValue(null)>] ?Side: StyleParam.ViolinSide, - [<Optional; DefaultParameterValue(null)>] ?Span: StyleParam.Range, - [<Optional; DefaultParameterValue(null)>] ?SpanMode: StyleParam.SpanMode, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Width: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Marker: Marker, + ?Line: Line, + ?Box: Box, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?BandWidth: float, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?PointPos: float, + ?Jitter: float, + ?MeanLine: MeanLine, + ?Points: StyleParam.JitterPoints, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UIRevision: string ) = - (fun (violin: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt violin "name" - Visible |> DynObj.setValueOptBy violin "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt violin "showlegend" - Legend |> DynObj.setValueOptBy violin "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt violin "legendrank" - LegendGroup |> DynObj.setValueOpt violin "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt violin "legendgrouptitle" - Opacity |> DynObj.setValueOpt violin "opacity" - Ids |> DynObj.setValueOpt violin "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt violin "x" - X0 |> DynObj.setValueOpt violin "x0" - DX |> DynObj.setValueOpt violin "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt violin "y" - Y0 |> DynObj.setValueOpt violin "y0" - DY |> DynObj.setValueOpt violin "dy" - Width |> DynObj.setValueOpt violin "width" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt violin "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt violin "hovertext" - HoverInfo |> DynObj.setValueOptBy violin "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt violin "hovertemplate" - XHoverFormat |> DynObj.setValueOpt violin "xhoverformat" - YHoverFormat |> DynObj.setValueOpt violin "yhoverformat" - Meta |> DynObj.setValueOpt violin "meta" - CustomData |> DynObj.setValueOpt violin "customdata" - XAxis |> DynObj.setValueOptBy violin "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy violin "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy violin "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt violin "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt violin "offsetgroup" - Marker |> DynObj.setValueOpt violin "marker" - Line |> DynObj.setValueOpt violin "line" - Box |> DynObj.setValueOpt violin "box" - SelectedPoints |> DynObj.setValueOpt violin "selectedpoints" - Selected |> DynObj.setValueOpt violin "selected" - Unselected |> DynObj.setValueOpt violin "unselected" - BandWidth |> DynObj.setValueOpt violin "bandwidth" - FillColor |> DynObj.setValueOpt violin "fillcolor" - HoverLabel |> DynObj.setValueOpt violin "hoverlabel" - HoverOn |> DynObj.setValueOptBy violin "hoveron" StyleParam.HoverOn.convert - PointPos |> DynObj.setValueOpt violin "pointpos" - Jitter |> DynObj.setValueOpt violin "jitter" - MeanLine |> DynObj.setValueOpt violin "meanline" - Points |> DynObj.setValueOptBy violin "points" StyleParam.JitterPoints.convert - ScaleGroup |> DynObj.setValueOpt violin "scalegroup" - ScaleMode |> DynObj.setValueOptBy violin "scalemode" StyleParam.ScaleMode.convert - Side |> DynObj.setValueOptBy violin "side" StyleParam.ViolinSide.convert - Span |> DynObj.setValueOptBy violin "span" StyleParam.Range.convert - SpanMode |> DynObj.setValueOptBy violin "spanmode" StyleParam.SpanMode.convert - UIRevision |> DynObj.setValueOpt violin "uirevision" - - violin) + fun (violin: ('T :> Trace)) -> + + violin + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "box" Box + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "bandwidth" BandWidth + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "pointpos" PointPos + |> DynObj.withOptionalProperty "jitter" Jitter + |> DynObj.withOptionalProperty "meanline" MeanLine + |> DynObj.withOptionalPropertyBy "points" Points StyleParam.JitterPoints.convert + |> DynObj.withOptionalProperty "scalegroup" ScaleGroup + |> DynObj.withOptionalPropertyBy "scalemode" ScaleMode StyleParam.ScaleMode.convert + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.ViolinSide.convert + |> DynObj.withOptionalPropertyBy "span" Span StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "spanmode" SpanMode StyleParam.SpanMode.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a 2d histogram plot to a Trace object @@ -1529,118 +1504,117 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Histogram2D ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?AutoBinX: bool, - [<Optional; DefaultParameterValue(null)>] ?AutoBinY: bool, - [<Optional; DefaultParameterValue(null)>] ?BinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ZMin: float, - [<Optional; DefaultParameterValue(null)>] ?ZMid: float, - [<Optional; DefaultParameterValue(null)>] ?ZMax: float, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?YGap: int, + ?Z: seq<#seq<#IConvertible>>, + ?TextTemplate: string, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?AutoBinX: bool, + ?AutoBinY: bool, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?ZMin: float, + ?ZMid: float, + ?ZMax: float, + ?ZSmooth: StyleParam.SmoothAlg, + ?HoverLabel: Hoverlabel, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (histogram2D: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt histogram2D "name" - Visible |> DynObj.setValueOptBy histogram2D "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt histogram2D "showlegend" - Legend |> DynObj.setValueOptBy histogram2D "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt histogram2D "legendrank" - LegendGroup |> DynObj.setValueOpt histogram2D "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt histogram2D "legendgrouptitle" - Opacity |> DynObj.setValueOpt histogram2D "opacity" - Ids |> DynObj.setValueOpt histogram2D "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt histogram2D "x" - XGap |> DynObj.setValueOpt histogram2D "xgap" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt histogram2D "y" - YGap |> DynObj.setValueOpt histogram2D "ygap" - Z |> DynObj.setValueOpt histogram2D "z" - TextTemplate |> DynObj.setValueOpt histogram2D "texttemplate" - HoverInfo |> DynObj.setValueOptBy histogram2D "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt histogram2D "hovertemplate" - XHoverFormat |> DynObj.setValueOpt histogram2D "xhoverformat" - YHoverFormat |> DynObj.setValueOpt histogram2D "yhoverformat" - Meta |> DynObj.setValueOpt histogram2D "meta" - CustomData |> DynObj.setValueOpt histogram2D "customdata" - XAxis |> DynObj.setValueOptBy histogram2D "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy histogram2D "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOpt histogram2D "coloraxis" - HistFunc |> DynObj.setValueOptBy histogram2D "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setValueOptBy histogram2D "histnorm" StyleParam.HistNorm.convert - NBinsX |> DynObj.setValueOpt histogram2D "nbinsx" - NBinsY |> DynObj.setValueOpt histogram2D "nbinsy" - AutoBinX |> DynObj.setValueOpt histogram2D "autobinx" - AutoBinY |> DynObj.setValueOpt histogram2D "autobiny" - BinGroup |> DynObj.setValueOpt histogram2D "bingroup" - XBinGroup |> DynObj.setValueOpt histogram2D "xbingroup" - XBins |> DynObj.setValueOpt histogram2D "xbins" - YBinGroup |> DynObj.setValueOpt histogram2D "ybingroup" - YBins |> DynObj.setValueOpt histogram2D "ybins" - Marker |> DynObj.setValueOpt histogram2D "marker" - TextFont |> DynObj.setValueOpt histogram2D "textfont" - ColorBar |> DynObj.setValueOpt histogram2D "colorbar" - AutoColorScale |> DynObj.setValueOpt histogram2D "autocolorscale" - ColorScale |> DynObj.setValueOptBy histogram2D "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt histogram2D "showscale" - ReverseScale |> DynObj.setValueOpt histogram2D "reversescale" - ZAuto |> DynObj.setValueOpt histogram2D "zauto" - ZHoverFormat |> DynObj.setValueOpt histogram2D "zhoverformat" - ZMin |> DynObj.setValueOpt histogram2D "zmin" - ZMid |> DynObj.setValueOpt histogram2D "zmid" - ZMax |> DynObj.setValueOpt histogram2D "zmax" - ZSmooth |> DynObj.setValueOptBy histogram2D "zsmooth" StyleParam.SmoothAlg.convert - HoverLabel |> DynObj.setValueOpt histogram2D "hoverlabel" - XCalendar |> DynObj.setValueOptBy histogram2D "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy histogram2D "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt histogram2D "uirevision" - - histogram2D) + fun (histogram2D: ('T :> Trace)) -> + + histogram2D + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "xgap" XGap + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "ygap" YGap + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "coloraxis" ColorAxis + |> DynObj.withOptionalPropertyBy "histfunc" HistFunc StyleParam.HistFunc.convert + |> DynObj.withOptionalPropertyBy "histnorm" HistNorm StyleParam.HistNorm.convert + |> DynObj.withOptionalProperty "nbinsx" NBinsX + |> DynObj.withOptionalProperty "nbinsy" NBinsY + |> DynObj.withOptionalProperty "autobinx" AutoBinX + |> DynObj.withOptionalProperty "autobiny" AutoBinY + |> DynObj.withOptionalProperty "bingroup" BinGroup + |> DynObj.withOptionalProperty "xbingroup" XBinGroup + |> DynObj.withOptionalProperty "xbins" XBins + |> DynObj.withOptionalProperty "ybingroup" YBinGroup + |> DynObj.withOptionalProperty "ybins" YBins + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalPropertyBy "zsmooth" ZSmooth StyleParam.SmoothAlg.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a 2d histogram contour plot to a Trace object @@ -1703,120 +1677,119 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Histogram2DContour ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?HistFunc: StyleParam.HistFunc, - [<Optional; DefaultParameterValue(null)>] ?HistNorm: StyleParam.HistNorm, - [<Optional; DefaultParameterValue(null)>] ?NBinsX: int, - [<Optional; DefaultParameterValue(null)>] ?NBinsY: int, - [<Optional; DefaultParameterValue(null)>] ?AutoBinX: bool, - [<Optional; DefaultParameterValue(null)>] ?AutoBinY: bool, - [<Optional; DefaultParameterValue(null)>] ?BinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?XBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?YBinGroup: string, - [<Optional; DefaultParameterValue(null)>] ?YBins: Bins, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Zmin: float, - [<Optional; DefaultParameterValue(null)>] ?Zmid: float, - [<Optional; DefaultParameterValue(null)>] ?Zmax: float, - [<Optional; DefaultParameterValue(null)>] ?AutoContour: bool, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?NContours: int, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Z: seq<#seq<#IConvertible>>, + ?TextTemplate: string, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?AutoBinX: bool, + ?AutoBinY: bool, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?Zmin: float, + ?Zmid: float, + ?Zmax: float, + ?AutoContour: bool, + ?Contours: Contours, + ?HoverLabel: Hoverlabel, + ?NContours: int, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (histogram2DContour: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt histogram2DContour "name" - Visible |> DynObj.setValueOptBy histogram2DContour "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt histogram2DContour "showlegend" - Legend |> DynObj.setValueOptBy histogram2DContour "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt histogram2DContour "legendrank" - LegendGroup |> DynObj.setValueOpt histogram2DContour "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt histogram2DContour "legendgrouptitle" - Opacity |> DynObj.setValueOpt histogram2DContour "opacity" - Ids |> DynObj.setValueOpt histogram2DContour "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt histogram2DContour "x" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt histogram2DContour "y" - Z |> DynObj.setValueOpt histogram2DContour "z" - TextTemplate |> DynObj.setValueOpt histogram2DContour "texttemplate" - HoverInfo |> DynObj.setValueOptBy histogram2DContour "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt histogram2DContour "hovertemplate" - XHoverFormat |> DynObj.setValueOpt histogram2DContour "xhoverformat" - YHoverFormat |> DynObj.setValueOpt histogram2DContour "yhoverformat" - Meta |> DynObj.setValueOpt histogram2DContour "meta" - CustomData |> DynObj.setValueOpt histogram2DContour "customdata" - XAxis |> DynObj.setValueOptBy histogram2DContour "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy histogram2DContour "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOpt histogram2DContour "coloraxis" - HistFunc |> DynObj.setValueOptBy histogram2DContour "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setValueOptBy histogram2DContour "histnorm" StyleParam.HistNorm.convert - NBinsX |> DynObj.setValueOpt histogram2DContour "nbinsx" - NBinsY |> DynObj.setValueOpt histogram2DContour "nbinsy" - AutoBinX |> DynObj.setValueOpt histogram2DContour "autobinx" - AutoBinY |> DynObj.setValueOpt histogram2DContour "autobiny" - BinGroup |> DynObj.setValueOpt histogram2DContour "bingroup" - XBinGroup |> DynObj.setValueOpt histogram2DContour "xbingroup" - XBins |> DynObj.setValueOpt histogram2DContour "xbins" - YBinGroup |> DynObj.setValueOpt histogram2DContour "ybingroup" - YBins |> DynObj.setValueOpt histogram2DContour "ybins" - Marker |> DynObj.setValueOpt histogram2DContour "marker" - Line |> DynObj.setValueOpt histogram2DContour "line" - TextFont |> DynObj.setValueOpt histogram2DContour "textfont" - ColorBar |> DynObj.setValueOpt histogram2DContour "colorbar" - AutoColorScale |> DynObj.setValueOpt histogram2DContour "autocolorscale" - ColorScale |> DynObj.setValueOptBy histogram2DContour "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt histogram2DContour "showscale" - ReverseScale |> DynObj.setValueOpt histogram2DContour "reversescale" - ZAuto |> DynObj.setValueOpt histogram2DContour "zauto" - ZHoverFormat |> DynObj.setValueOpt histogram2DContour "zhoverformat" - Zmin |> DynObj.setValueOpt histogram2DContour "zmin" - Zmid |> DynObj.setValueOpt histogram2DContour "zmid" - Zmax |> DynObj.setValueOpt histogram2DContour "zmax" - AutoContour |> DynObj.setValueOpt histogram2DContour "autocontour" - Contours |> DynObj.setValueOpt histogram2DContour "contours" - HoverLabel |> DynObj.setValueOpt histogram2DContour "hoverlabel" - NContours |> DynObj.setValueOpt histogram2DContour "ncontours" - XCalendar |> DynObj.setValueOptBy histogram2DContour "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy histogram2DContour "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt histogram2DContour "uirevision" - - histogram2DContour) + fun (histogram2DContour: ('T :> Trace)) -> + + histogram2DContour + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "coloraxis" ColorAxis + |> DynObj.withOptionalPropertyBy "histfunc" HistFunc StyleParam.HistFunc.convert + |> DynObj.withOptionalPropertyBy "histnorm" HistNorm StyleParam.HistNorm.convert + |> DynObj.withOptionalProperty "nbinsx" NBinsX + |> DynObj.withOptionalProperty "nbinsy" NBinsY + |> DynObj.withOptionalProperty "autobinx" AutoBinX + |> DynObj.withOptionalProperty "autobiny" AutoBinY + |> DynObj.withOptionalProperty "bingroup" BinGroup + |> DynObj.withOptionalProperty "xbingroup" XBinGroup + |> DynObj.withOptionalProperty "xbins" XBins + |> DynObj.withOptionalProperty "ybingroup" YBinGroup + |> DynObj.withOptionalProperty "ybins" YBins + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "autocontour" AutoContour + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "ncontours" NContours + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> @@ -1886,132 +1859,129 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Heatmap ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XType: StyleParam.CoordinateType, - [<Optional; DefaultParameterValue(null)>] ?XGap: int, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YType: StyleParam.CoordinateType, - [<Optional; DefaultParameterValue(null)>] ?YGap: int, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ZMax: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ZMid: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ZMin: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOnGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?XType: StyleParam.CoordinateType, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?YType: StyleParam.CoordinateType, + ?YGap: int, + ?Z: seq<#seq<#IConvertible>>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextTemplate: string, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?ZMax: #IConvertible, + ?ZMid: #IConvertible, + ?ZMin: #IConvertible, + ?ZSmooth: StyleParam.SmoothAlg, + ?ConnectGaps: bool, + ?HoverLabel: Hoverlabel, + ?HoverOnGaps: bool, + ?Transpose: bool, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (heatmap: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt heatmap "name" - Visible |> DynObj.setValueOptBy heatmap "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt heatmap "showlegend" - Legend |> DynObj.setValueOptBy heatmap "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt heatmap "legendrank" - LegendGroup |> DynObj.setValueOpt heatmap "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt heatmap "legendgrouptitle" - Opacity |> DynObj.setValueOpt heatmap "opacity" - Ids |> DynObj.setValueOpt heatmap "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt heatmap "x" - X0 |> DynObj.setValueOpt heatmap "x0" - DX |> DynObj.setValueOpt heatmap "dx" - XType |> DynObj.setValueOptBy heatmap "xtype" StyleParam.CoordinateType.convert - XGap |> DynObj.setValueOpt heatmap "xgap" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt heatmap "y" - Y0 |> DynObj.setValueOpt heatmap "y0" - DY |> DynObj.setValueOpt heatmap "dy" - YType |> DynObj.setValueOptBy heatmap "ytype" StyleParam.CoordinateType.convert - YGap |> DynObj.setValueOpt heatmap "ygap" - Z |> DynObj.setValueOpt heatmap "z" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt heatmap "text" - TextTemplate |> DynObj.setValueOpt heatmap "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt heatmap "hovertext" - HoverInfo |> DynObj.setValueOptBy heatmap "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt heatmap "hovertemplate" - XHoverFormat |> DynObj.setValueOpt heatmap "xhoverformat" - YHoverFormat |> DynObj.setValueOpt heatmap "yhoverformat" - Meta |> DynObj.setValueOpt heatmap "meta" - CustomData |> DynObj.setValueOpt heatmap "customdata" - XAxis |> DynObj.setValueOptBy heatmap "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy heatmap "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOptBy heatmap "coloraxis" StyleParam.SubPlotId.convert - XPeriod |> DynObj.setValueOpt heatmap "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy heatmap "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt heatmap "xperiod0" - YPeriod |> DynObj.setValueOpt heatmap "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy heatmap "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt heatmap "yperiod0" - TextFont |> DynObj.setValueOpt heatmap "textfont" - ColorBar |> DynObj.setValueOpt heatmap "colorbar" - AutoColorScale |> DynObj.setValueOpt heatmap "autocolorscale" - ColorScale |> DynObj.setValueOptBy heatmap "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt heatmap "showscale" - ReverseScale |> DynObj.setValueOpt heatmap "reversescale" - ZAuto |> DynObj.setValueOpt heatmap "zauto" - ZHoverFormat |> DynObj.setValueOpt heatmap "zhoverformat" - ZMax |> DynObj.setValueOpt heatmap "zmax" - ZMid |> DynObj.setValueOpt heatmap "zmid" - ZMin |> DynObj.setValueOpt heatmap "zmin" - ZSmooth |> DynObj.setValueOptBy heatmap "zsmooth" StyleParam.SmoothAlg.convert - ConnectGaps |> DynObj.setValueOpt heatmap "connectgaps" - HoverLabel |> DynObj.setValueOpt heatmap "hoverlabel" - HoverOnGaps |> DynObj.setValueOpt heatmap "hoverongaps" - Transpose |> DynObj.setValueOpt heatmap "transpose" - XCalendar |> DynObj.setValueOptBy heatmap "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy heatmap "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt heatmap "uirevision" - - - // out -> - heatmap) + fun (heatmap: ('T :> Trace)) -> + + heatmap + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalPropertyBy "xtype" XType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "xgap" XGap + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalPropertyBy "ytype" YType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "ygap" YGap + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalPropertyBy "zsmooth" ZSmooth StyleParam.SmoothAlg.convert + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hoverongaps" HoverOnGaps + |> DynObj.withOptionalProperty "transpose" Transpose + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a Image plot to a Trace object @@ -2050,73 +2020,71 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Image ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Z: #seq<#seq<#seq<int>>>, - [<Optional; DefaultParameterValue(null)>] ?Source: string, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?ColorModel: StyleParam.ColorModel, - [<Optional; DefaultParameterValue(null)>] ?ZMax: StyleParam.ColorComponentBound, - [<Optional; DefaultParameterValue(null)>] ?ZMin: StyleParam.ColorComponentBound, - [<Optional; DefaultParameterValue(null)>] ?ZSmooth: StyleParam.SmoothAlg, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Z: #seq<#seq<#seq<int>>>, + ?Source: string, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorModel: StyleParam.ColorModel, + ?ZMax: StyleParam.ColorComponentBound, + ?ZMin: StyleParam.ColorComponentBound, + ?ZSmooth: StyleParam.SmoothAlg, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = - (fun (image: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt image "name" - Visible |> DynObj.setValueOptBy image "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt image "showlegend" - Legend |> DynObj.setValueOptBy image "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt image "legendrank" - LegendGroup |> DynObj.setValueOpt image "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt image "legendgrouptitle" - Opacity |> DynObj.setValueOpt image "opacity" - Ids |> DynObj.setValueOpt image "ids" - X0 |> DynObj.setValueOpt image "x0" - DX |> DynObj.setValueOpt image "dx" - Y0 |> DynObj.setValueOpt image "y0" - DY |> DynObj.setValueOpt image "dy" - Z |> DynObj.setValueOpt image "z" - Source |> DynObj.setValueOpt image "source" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt image "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt image "hovertext" - HoverInfo |> DynObj.setValueOptBy image "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt image "hovertemplate" - Meta |> DynObj.setValueOpt image "meta" - CustomData |> DynObj.setValueOpt image "customdata" - XAxis |> DynObj.setValueOptBy image "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy image "yaxis" StyleParam.LinearAxisId.convert - ColorModel |> DynObj.setValueOptBy image "colormodel" StyleParam.ColorModel.convert - ZMax |> DynObj.setValueOptBy image "zmax" StyleParam.ColorComponentBound.convert - ZMin |> DynObj.setValueOptBy image "zmin" StyleParam.ColorComponentBound.convert - ZSmooth |> DynObj.setValueOptBy image "zsmooth" StyleParam.SmoothAlg.convert - HoverLabel |> DynObj.setValueOpt image "hoverlabel" - UIRevision |> DynObj.setValueOpt image "uirevision" - - // out -> - image) + fun (image: ('T :> Trace)) -> + + image + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "colormodel" ColorModel StyleParam.ColorModel.convert + |> DynObj.withOptionalPropertyBy "zmax" ZMax StyleParam.ColorComponentBound.convert + |> DynObj.withOptionalPropertyBy "zmin" ZMin StyleParam.ColorComponentBound.convert + |> DynObj.withOptionalPropertyBy "zsmooth" ZSmooth StyleParam.SmoothAlg.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a contour plot to a Trace object @@ -2187,136 +2155,133 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Contour ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?X0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DX: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XType: StyleParam.CoordinateType, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DY: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YType: StyleParam.CoordinateType, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ZMax: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ZMid: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ZMin: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AutoContour: bool, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOnGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?NContours: int, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?XType: StyleParam.CoordinateType, + ?Y: seq<#IConvertible>, + ?MultiY: seq<seq<#IConvertible>>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?YType: StyleParam.CoordinateType, + ?Z: seq<#seq<#IConvertible>>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextTemplate: string, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Line: Line, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?ZMax: #IConvertible, + ?ZMid: #IConvertible, + ?ZMin: #IConvertible, + ?AutoContour: bool, + ?ConnectGaps: bool, + ?Contours: Contours, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOnGaps: bool, + ?NContours: int, + ?Transpose: bool, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (contour: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt contour "name" - Visible |> DynObj.setValueOptBy contour "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt contour "showlegend" - Legend |> DynObj.setValueOptBy contour "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt contour "legendrank" - LegendGroup |> DynObj.setValueOpt contour "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt contour "legendgrouptitle" - Opacity |> DynObj.setValueOpt contour "opacity" - Ids |> DynObj.setValueOpt contour "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt contour "x" - X0 |> DynObj.setValueOpt contour "x0" - DX |> DynObj.setValueOpt contour "dx" - XType |> DynObj.setValueOptBy contour "xtype" StyleParam.CoordinateType.convert - (Y, MultiY) |> DynObj.setSingleOrMultiOpt contour "y" - Y0 |> DynObj.setValueOpt contour "y0" - DY |> DynObj.setValueOpt contour "dy" - YType |> DynObj.setValueOptBy contour "ytype" StyleParam.CoordinateType.convert - Z |> DynObj.setValueOpt contour "z" - TextTemplate |> DynObj.setValueOpt contour "texttemplate" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt contour "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt contour "hovertext" - HoverInfo |> DynObj.setValueOptBy contour "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt contour "hovertemplate" - XHoverFormat |> DynObj.setValueOpt contour "xhoverformat" - YHoverFormat |> DynObj.setValueOpt contour "yhoverformat" - Meta |> DynObj.setValueOpt contour "meta" - CustomData |> DynObj.setValueOpt contour "customdata" - XAxis |> DynObj.setValueOptBy contour "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy contour "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOptBy contour "coloraxis" StyleParam.SubPlotId.convert - XPeriod |> DynObj.setValueOpt contour "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy contour "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt contour "xperiod0" - YPeriod |> DynObj.setValueOpt contour "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy contour "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt contour "yperiod0" - Line |> DynObj.setValueOpt contour "line" - TextFont |> DynObj.setValueOpt contour "textfont" - ColorBar |> DynObj.setValueOpt contour "colorbar" - AutoColorScale |> DynObj.setValueOpt contour "autocolorscale" - ColorScale |> DynObj.setValueOptBy contour "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt contour "showscale" - ReverseScale |> DynObj.setValueOpt contour "reversescale" - ZAuto |> DynObj.setValueOpt contour "zauto" - ZHoverFormat |> DynObj.setValueOpt contour "zhoverformat" - ZMax |> DynObj.setValueOpt contour "zmax" - ZMid |> DynObj.setValueOpt contour "zmid" - ZMin |> DynObj.setValueOpt contour "zmin" - AutoContour |> DynObj.setValueOpt contour "autocontour" - ConnectGaps |> DynObj.setValueOpt contour "connectgaps" - Contours |> DynObj.setValueOpt contour "contours" - FillColor |> DynObj.setValueOpt contour "fillcolor" - HoverLabel |> DynObj.setValueOpt contour "hoverlabel" - HoverOnGaps |> DynObj.setValueOpt contour "hoverongaps" - NContours |> DynObj.setValueOpt contour "ncontours" - Transpose |> DynObj.setValueOpt contour "transpose" - XCalendar |> DynObj.setValueOptBy contour "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt contour "uirevision" - - - // out -> - contour) - + fun (contour: ('T :> Trace)) -> + + contour + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalPropertyBy "xtype" XType StyleParam.CoordinateType.convert + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalPropertyBy "ytype" YType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalProperty "autocontour" AutoContour + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hoverongaps" HoverOnGaps + |> DynObj.withOptionalProperty "ncontours" NContours + |> DynObj.withOptionalProperty "transpose" Transpose + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a OHLC plot to a Trace object @@ -2363,88 +2328,87 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member OHLC ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Close: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Open: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?High: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Low: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?TickWidth: float, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Close: seq<#IConvertible>, + ?Open: seq<#IConvertible>, + ?High: seq<#IConvertible>, + ?Low: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Line: Line, + ?SelectedPoints: seq<#IConvertible>, + ?Increasing: FinanceMarker, + ?Decreasing: FinanceMarker, + ?HoverLabel: Hoverlabel, + ?TickWidth: float, + ?XCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (ohlc: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt ohlc "name" - Visible |> DynObj.setValueOptBy ohlc "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt ohlc "showlegend" - Legend |> DynObj.setValueOptBy ohlc "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt ohlc "legendrank" - LegendGroup |> DynObj.setValueOpt ohlc "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt ohlc "legendgrouptitle" - Opacity |> DynObj.setValueOpt ohlc "opacity" - Ids |> DynObj.setValueOpt ohlc "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt ohlc "x" - Close |> DynObj.setValueOpt ohlc "close" - Open |> DynObj.setValueOpt ohlc "open" - High |> DynObj.setValueOpt ohlc "high" - Low |> DynObj.setValueOpt ohlc "low" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt ohlc "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt ohlc "hovertext" - HoverInfo |> DynObj.setValueOptBy ohlc "hoverinfo" StyleParam.HoverInfo.convert - XHoverFormat |> DynObj.setValueOpt ohlc "xhoverformat" - YHoverFormat |> DynObj.setValueOpt ohlc "yhoverformat" - Meta |> DynObj.setValueOpt ohlc "meta" - CustomData |> DynObj.setValueOpt ohlc "customdata" - XAxis |> DynObj.setValueOptBy ohlc "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy ohlc "yaxis" StyleParam.LinearAxisId.convert - XPeriod |> DynObj.setValueOpt ohlc "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy ohlc "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt ohlc "xperiod0" - YPeriod |> DynObj.setValueOpt ohlc "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy ohlc "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt ohlc "yperiod0" - Line |> DynObj.setValueOpt ohlc "line" - Increasing |> DynObj.setValueOpt ohlc "increasing" - Decreasing |> DynObj.setValueOpt ohlc "decreasing" - HoverLabel |> DynObj.setValueOpt ohlc "hoverlabel" - TickWidth |> DynObj.setValueOpt ohlc "tickwidth" - XCalendar |> DynObj.setValueOptBy ohlc "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt ohlc "uirevision" - - ohlc) - + fun (ohlc: ('T :> Trace)) -> + + ohlc + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "close" Close + |> DynObj.withOptionalProperty "open" Open + |> DynObj.withOptionalProperty "high" High + |> DynObj.withOptionalProperty "low" Low + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a candlestick plot to a Trace object @@ -2491,87 +2455,87 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Candlestick ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Close: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Open: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?High: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Low: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?XPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?XPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriod: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [<Optional; DefaultParameterValue(null)>] ?YPeriod0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?WhiskerWidth: float, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Increasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?Decreasing: FinanceMarker, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<seq<#IConvertible>>, + ?Close: seq<#IConvertible>, + ?Open: seq<#IConvertible>, + ?High: seq<#IConvertible>, + ?Low: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Line: Line, + ?WhiskerWidth: float, + ?SelectedPoints: seq<#IConvertible>, + ?Increasing: FinanceMarker, + ?Decreasing: FinanceMarker, + ?HoverLabel: Hoverlabel, + ?XCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt trace "x" - Close |> DynObj.setValueOpt trace "close" - Open |> DynObj.setValueOpt trace "open" - High |> DynObj.setValueOpt trace "high" - Low |> DynObj.setValueOpt trace "low" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - XPeriod |> DynObj.setValueOpt trace "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt trace "xperiod0" - YPeriod |> DynObj.setValueOpt trace "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt trace "yperiod0" - Line |> DynObj.setValueOpt trace "line" - WhiskerWidth |> DynObj.setValueOpt trace "whiskerwidth" - Increasing |> DynObj.setValueOpt trace "increasing" - Decreasing |> DynObj.setValueOpt trace "decreasing" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - XCalendar |> DynObj.setValueOptBy trace "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "close" Close + |> DynObj.withOptionalProperty "open" Open + |> DynObj.withOptionalProperty "high" High + |> DynObj.withOptionalProperty "low" Low + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "whiskerwidth" WhiskerWidth + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a scatter plot matrix (SPLOM) to a Trace object @@ -2610,69 +2574,68 @@ type Trace2DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Splom ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Dimensions: seq<Dimension>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Diagonal: SplomDiagonal, - [<Optional; DefaultParameterValue(null)>] ?XAxes: seq<StyleParam.LinearAxisId>, - [<Optional; DefaultParameterValue(null)>] ?YAxes: seq<StyleParam.LinearAxisId>, - [<Optional; DefaultParameterValue(null)>] ?ShowLowerHalf: bool, - [<Optional; DefaultParameterValue(null)>] ?ShowUpperHalf: bool, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Dimensions: seq<Dimension>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Marker: Marker, + ?Diagonal: SplomDiagonal, + ?XAxes: seq<StyleParam.LinearAxisId>, + ?YAxes: seq<StyleParam.LinearAxisId>, + ?ShowLowerHalf: bool, + ?ShowUpperHalf: bool, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - Dimensions |> DynObj.setValueOpt trace "dimensions" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Marker |> DynObj.setValueOpt trace "marker" - Diagonal |> DynObj.setValueOpt trace "diagonal" - XAxes |> DynObj.setValueOptBy trace "xaxis" (Seq.map StyleParam.LinearAxisId.convert) - YAxes |> DynObj.setValueOptBy trace "yaxis" (Seq.map StyleParam.LinearAxisId.convert) - ShowLowerHalf |> DynObj.setValueOpt trace "showlowerhalf" - ShowUpperHalf |> DynObj.setValueOpt trace "showupperhalf" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalProperty "dimensions" Dimensions + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "diagonal" Diagonal + |> DynObj.withOptionalPropertyBy "xaxis" XAxes (Seq.map StyleParam.LinearAxisId.convert) + |> DynObj.withOptionalPropertyBy "yaxis" YAxes (Seq.map StyleParam.LinearAxisId.convert) + |> DynObj.withOptionalProperty "showlowerhalf" ShowLowerHalf + |> DynObj.withOptionalProperty "showupperhalf" ShowUpperHalf + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision diff --git a/src/Plotly.NET/Traces/Trace3D.fs b/src/Plotly.NET/Traces/Trace3D.fs index 9baa6ae52..5017fe217 100644 --- a/src/Plotly.NET/Traces/Trace3D.fs +++ b/src/Plotly.NET/Traces/Trace3D.fs @@ -48,12 +48,10 @@ type Trace3DStyle() = // ######################## 3d-Charts - static member SetScene([<Optional; DefaultParameterValue(null)>] ?SceneId: StyleParam.SubPlotId) = - (fun (trace: Trace3D) -> - - SceneId |> DynObj.setValueOptBy trace "scene" StyleParam.SubPlotId.toString - - trace) + static member SetScene(?SceneId: StyleParam.SubPlotId) = + fun (trace: Trace3D) -> + trace + |> DynObj.withOptionalPropertyBy "scene" SceneId StyleParam.SubPlotId.toString /// <summary> /// Create a function that applies the styles of a 3D scatter plot to a Trace object @@ -105,102 +103,96 @@ type Trace3DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Scatter3D ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SurfaceColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Scene: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?XError: Error, - [<Optional; DefaultParameterValue(null)>] ?YError: Error, - [<Optional; DefaultParameterValue(null)>] ?ZError: Error, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Hoverlabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Projection: Projection, - [<Optional; DefaultParameterValue(null)>] ?Surfaceaxis: StyleParam.SurfaceAxis, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?ZCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Mode: StyleParam.Mode, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?SurfaceColor: Color, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?XError: Error, + ?YError: Error, + ?ZError: Error, + ?ZHoverFormat: string, + ?ConnectGaps: bool, + ?Hoverlabel: Hoverlabel, + ?Projection: Projection, + ?Surfaceaxis: StyleParam.SurfaceAxis, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?ZCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (scatter: #Trace) -> - - Name |> DynObj.setValueOpt scatter "name" - Visible |> DynObj.setValueOptBy scatter "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt scatter "showlegend" - Legend |> DynObj.setValueOptBy scatter "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt scatter "legendrank" - LegendGroup |> DynObj.setValueOpt scatter "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt scatter "legendgrouptitle" - Mode |> DynObj.setValueOptBy scatter "mode" StyleParam.Mode.convert - Opacity |> DynObj.setValueOpt scatter "opacity" - Ids |> DynObj.setValueOpt scatter "ids" - X |> DynObj.setValueOpt scatter "x" - Y |> DynObj.setValueOpt scatter "y" - Z |> DynObj.setValueOpt scatter "z" - SurfaceColor |> DynObj.setValueOpt scatter "surfacecolor" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt scatter "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy scatter "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt scatter "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt scatter "hovertext" - HoverInfo |> DynObj.setValueOptBy scatter "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt scatter "hovertemplate" - XHoverFormat |> DynObj.setValueOpt scatter "xhoverformat" - YHoverFormat |> DynObj.setValueOpt scatter "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt scatter "zhoverformat" - Meta |> DynObj.setValueOpt scatter "meta" - CustomData |> DynObj.setValueOpt scatter "customdata" - Scene |> DynObj.setValueOptBy scatter "scene" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt scatter "marker" - Line |> DynObj.setValueOpt scatter "line" - TextFont |> DynObj.setValueOpt scatter "textfont" - XError |> DynObj.setValueOpt scatter "error_x" - YError |> DynObj.setValueOpt scatter "error_y" - ZError |> DynObj.setValueOpt scatter "error_z" - ConnectGaps |> DynObj.setValueOpt scatter "connectgaps" - Hoverlabel |> DynObj.setValueOpt scatter "hoverlabel" - Projection |> DynObj.setValueOpt scatter "projection" - Surfaceaxis |> DynObj.setValueOptBy scatter "surfaceaxis" StyleParam.SurfaceAxis.convert - XCalendar |> DynObj.setValueOptBy scatter "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy scatter "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setValueOptBy scatter "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt scatter "uirevision" - - scatter) - + fun (scatter: #Trace) -> + scatter + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "surfacecolor" SurfaceColor + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "error_z" ZError + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "projection" Projection + |> DynObj.withOptionalPropertyBy "surfaceaxis" Surfaceaxis StyleParam.SurfaceAxis.convert + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "zcalendar" ZCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a surface chart to the given trace @@ -254,103 +246,101 @@ type Trace3DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Surface ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?SurfaceColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Scene: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?HideSurface: bool, - [<Optional; DefaultParameterValue(null)>] ?Hoverlabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Lighting: Lighting, - [<Optional; DefaultParameterValue(null)>] ?LightPosition: LightPosition, - [<Optional; DefaultParameterValue(null)>] ?OpacityScale: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?ZCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#seq<#IConvertible>>, + ?SurfaceColor: Color, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?ConnectGaps: bool, + ?Contours: Contours, + ?HideSurface: bool, + ?Hoverlabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?ZCalendar: StyleParam.Calendar, + ?UIRevision: string ) = - (fun (surface: #Trace) -> - - Name |> DynObj.setValueOpt surface "name" - Visible |> DynObj.setValueOptBy surface "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt surface "showlegend" - Legend |> DynObj.setValueOptBy surface "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt surface "legendrank" - LegendGroup |> DynObj.setValueOpt surface "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt surface "legendgrouptitle" - Opacity |> DynObj.setValueOpt surface "opacity" - Ids |> DynObj.setValueOpt surface "ids" - X |> DynObj.setValueOpt surface "x" - Y |> DynObj.setValueOpt surface "y" - Z |> DynObj.setValueOpt surface "z" - SurfaceColor |> DynObj.setValueOpt surface "surfacecolor" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt surface "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt surface "hovertext" - HoverInfo |> DynObj.setValueOptBy surface "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt surface "hovertemplate" - XHoverFormat |> DynObj.setValueOpt surface "xhoverformat" - YHoverFormat |> DynObj.setValueOpt surface "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt surface "zhoverformat" - Meta |> DynObj.setValueOpt surface "meta" - CustomData |> DynObj.setValueOpt surface "customdata" - Scene |> DynObj.setValueOptBy surface "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy surface "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt surface "colorbar" - AutoColorScale |> DynObj.setValueOpt surface "autocolorscale" - ColorScale |> DynObj.setValueOptBy surface "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt surface "showscale" - ReverseScale |> DynObj.setValueOpt surface "reversescale" - CAuto |> DynObj.setValueOpt surface "cauto" - CMin |> DynObj.setValueOpt surface "cmin" - CMid |> DynObj.setValueOpt surface "cmid" - CMax |> DynObj.setValueOpt surface "cmax" - ConnectGaps |> DynObj.setValueOpt surface "connectgaps" - Contours |> DynObj.setValueOpt surface "contours" - HideSurface |> DynObj.setValueOpt surface "hidesurface" - Hoverlabel |> DynObj.setValueOpt surface "hoverlabel" - Lighting |> DynObj.setValueOpt surface "lighting" - LightPosition |> DynObj.setValueOpt surface "lightposition" - OpacityScale |> DynObj.setValueOpt surface "opacityscale" - XCalendar |> DynObj.setValueOptBy surface "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy surface "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setValueOptBy surface "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt surface "uirevision" - - surface) + fun (surface: #Trace) -> + surface + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "surfacecolor" SurfaceColor + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "hidesurface" HideSurface + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "opacityscale" OpacityScale + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "zcalendar" ZCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a mesh3d chart to the given trace @@ -411,117 +401,116 @@ type Trace3DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Mesh3D ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?I: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?J: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?K: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?FaceColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Intensity: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?IntensityMode: StyleParam.IntensityMode, - [<Optional; DefaultParameterValue(null)>] ?VertexColor: Color, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Scene: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?AlphaHull: StyleParam.TriangulationAlgorithm, - [<Optional; DefaultParameterValue(null)>] ?Delaunayaxis: StyleParam.Delaunayaxis, - [<Optional; DefaultParameterValue(null)>] ?Contour: Contour, - [<Optional; DefaultParameterValue(null)>] ?FlatShading: bool, - [<Optional; DefaultParameterValue(null)>] ?Hoverlabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Lighting: Lighting, - [<Optional; DefaultParameterValue(null)>] ?LightPosition: LightPosition, - [<Optional; DefaultParameterValue(null)>] ?XCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?YCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?ZCalendar: StyleParam.Calendar, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?I: seq<#IConvertible>, + ?J: seq<#IConvertible>, + ?K: seq<#IConvertible>, + ?FaceColor: Color, + ?Intensity: seq<#IConvertible>, + ?IntensityMode: StyleParam.IntensityMode, + ?VertexColor: Color, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?AlphaHull: StyleParam.TriangulationAlgorithm, + ?Delaunayaxis: StyleParam.Delaunayaxis, + ?Contour: Contour, + ?FlatShading: bool, + ?Hoverlabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?ZCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (mesh3d: #Trace) -> - Name |> DynObj.setValueOpt mesh3d "name" - Visible |> DynObj.setValueOptBy mesh3d "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt mesh3d "showlegend" - Legend |> DynObj.setValueOptBy mesh3d "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt mesh3d "legendrank" - LegendGroup |> DynObj.setValueOpt mesh3d "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt mesh3d "legendgrouptitle" - Opacity |> DynObj.setValueOpt mesh3d "opacity" - Ids |> DynObj.setValueOpt mesh3d "ids" - X |> DynObj.setValueOpt mesh3d "x" - Y |> DynObj.setValueOpt mesh3d "y" - Z |> DynObj.setValueOpt mesh3d "z" - I |> DynObj.setValueOpt mesh3d "i" - J |> DynObj.setValueOpt mesh3d "j" - K |> DynObj.setValueOpt mesh3d "k" - FaceColor |> DynObj.setValueOpt mesh3d "facecolor" - Intensity |> DynObj.setValueOpt mesh3d "intensity" - IntensityMode |> DynObj.setValueOptBy mesh3d "intensitymode" StyleParam.IntensityMode.convert - VertexColor |> DynObj.setValueOpt mesh3d "vertexcolor" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt mesh3d "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt mesh3d "hovertext" - HoverInfo |> DynObj.setValueOptBy mesh3d "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt mesh3d "hovertemplate" - XHoverFormat |> DynObj.setValueOpt mesh3d "xhoverformat" - YHoverFormat |> DynObj.setValueOpt mesh3d "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt mesh3d "zhoverformat" - Meta |> DynObj.setValueOpt mesh3d "meta" - CustomData |> DynObj.setValueOpt mesh3d "customdata" - Scene |> DynObj.setValueOptBy mesh3d "scene" StyleParam.SubPlotId.convert - Color |> DynObj.setValueOpt mesh3d "color" - ColorAxis |> DynObj.setValueOptBy mesh3d "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt mesh3d "colorbar" - AutoColorScale |> DynObj.setValueOpt mesh3d "autocolorscale" - ColorScale |> DynObj.setValueOptBy mesh3d "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt mesh3d "showscale" - ReverseScale |> DynObj.setValueOpt mesh3d "reversescale" - CAuto |> DynObj.setValueOpt mesh3d "cauto" - CMin |> DynObj.setValueOpt mesh3d "cmin" - CMid |> DynObj.setValueOpt mesh3d "cmid" - CMax |> DynObj.setValueOpt mesh3d "cmax" - AlphaHull |> DynObj.setValueOptBy mesh3d "alphahull" StyleParam.TriangulationAlgorithm.convert - Delaunayaxis |> DynObj.setValueOptBy mesh3d "delaunayaxis" StyleParam.Delaunayaxis.convert - Contour |> DynObj.setValueOpt mesh3d "contour" - FlatShading |> DynObj.setValueOpt mesh3d "flatshading" - Hoverlabel |> DynObj.setValueOpt mesh3d "hoverlabel" - Lighting |> DynObj.setValueOpt mesh3d "lighting" - LightPosition |> DynObj.setValueOpt mesh3d "lightposition" - XCalendar |> DynObj.setValueOptBy mesh3d "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy mesh3d "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setValueOptBy mesh3d "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt mesh3d "uirevision" - mesh3d + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "i" I + |> DynObj.withOptionalProperty "j" J + |> DynObj.withOptionalProperty "k" K + |> DynObj.withOptionalProperty "facecolor" FaceColor + |> DynObj.withOptionalProperty "intensity" Intensity + |> DynObj.withOptionalPropertyBy "intensitymode" IntensityMode StyleParam.IntensityMode.convert + |> DynObj.withOptionalProperty "vertexcolor" VertexColor + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalPropertyBy "alphahull" AlphaHull StyleParam.TriangulationAlgorithm.convert + |> DynObj.withOptionalPropertyBy "delaunayaxis" Delaunayaxis StyleParam.Delaunayaxis.convert + |> DynObj.withOptionalProperty "contour" Contour + |> DynObj.withOptionalProperty "flatshading" FlatShading + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "zcalendar" ZCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> @@ -577,103 +566,102 @@ type Trace3DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Cone ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?U: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?V: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?W: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?UHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?VHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?WHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Scene: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Anchor: StyleParam.ConeAnchor, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Lighting: Lighting, - [<Optional; DefaultParameterValue(null)>] ?LightPosition: LightPosition, - [<Optional; DefaultParameterValue(null)>] ?SizeMode: StyleParam.ConeSizeMode, - [<Optional; DefaultParameterValue(null)>] ?SizeRef: float, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?U: seq<#IConvertible>, + ?V: seq<#IConvertible>, + ?W: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?UHoverFormat: string, + ?VHoverFormat: string, + ?WHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Anchor: StyleParam.ConeAnchor, + ?HoverLabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?SizeMode: StyleParam.ConeSizeMode, + ?SizeRef: float, + ?UIRevision: seq<#IConvertible> ) = - (fun (cone: #Trace) -> - Name |> DynObj.setValueOpt cone "name" - Visible |> DynObj.setValueOptBy cone "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt cone "showlegend" - Legend |> DynObj.setValueOptBy cone "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt cone "legendrank" - LegendGroup |> DynObj.setValueOpt cone "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt cone "legendgrouptitle" - Opacity |> DynObj.setValueOpt cone "opacity" - Ids |> DynObj.setValueOpt cone "ids" - X |> DynObj.setValueOpt cone "x" - Y |> DynObj.setValueOpt cone "y" - Z |> DynObj.setValueOpt cone "z" - U |> DynObj.setValueOpt cone "u" - V |> DynObj.setValueOpt cone "v" - W |> DynObj.setValueOpt cone "w" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt cone "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt cone "hovertext" - HoverInfo |> DynObj.setValueOptBy cone "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt cone "hovertemplate" - XHoverFormat |> DynObj.setValueOpt cone "xhoverformat" - YHoverFormat |> DynObj.setValueOpt cone "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt cone "zhoverformat" - UHoverFormat |> DynObj.setValueOpt cone "uhoverformat" - VHoverFormat |> DynObj.setValueOpt cone "vhoverformat" - WHoverFormat |> DynObj.setValueOpt cone "whoverformat" - Meta |> DynObj.setValueOpt cone "meta" - CustomData |> DynObj.setValueOpt cone "customdata" - Scene |> DynObj.setValueOptBy cone "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy cone "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt cone "colorbar" - AutoColorScale |> DynObj.setValueOpt cone "autocolorscale" - ColorScale |> DynObj.setValueOptBy cone "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt cone "showscale" - ReverseScale |> DynObj.setValueOpt cone "reversescale" - CAuto |> DynObj.setValueOpt cone "cauto" - CMin |> DynObj.setValueOpt cone "cmin" - CMid |> DynObj.setValueOpt cone "cmid" - CMax |> DynObj.setValueOpt cone "cmax" - Anchor |> DynObj.setValueOptBy cone "anchor" StyleParam.ConeAnchor.convert - HoverLabel |> DynObj.setValueOpt cone "hoverlabel" - Lighting |> DynObj.setValueOpt cone "lighting" - LightPosition |> DynObj.setValueOpt cone "lightposition" - SizeMode |> DynObj.setValueOptBy cone "sizemode" StyleParam.ConeSizeMode.convert - SizeRef |> DynObj.setValueOpt cone "sizeref" - UIRevision |> DynObj.setValueOpt cone "uirevision" - - cone) + fun (cone: #Trace) -> + cone + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "u" U + |> DynObj.withOptionalProperty "v" V + |> DynObj.withOptionalProperty "w" W + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "uhoverformat" UHoverFormat + |> DynObj.withOptionalProperty "vhoverformat" VHoverFormat + |> DynObj.withOptionalProperty "whoverformat" WHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalPropertyBy "anchor" Anchor StyleParam.ConeAnchor.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalPropertyBy "sizemode" SizeMode StyleParam.ConeSizeMode.convert + |> DynObj.withOptionalProperty "sizeref" SizeRef + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a streamtube chart to the given trace @@ -728,103 +716,102 @@ type Trace3DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member StreamTube ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?U: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?V: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?W: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?UHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?VHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?WHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Scene: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?Lighting: Lighting, - [<Optional; DefaultParameterValue(null)>] ?LightPosition: LightPosition, - [<Optional; DefaultParameterValue(null)>] ?MaxDisplayed: int, - [<Optional; DefaultParameterValue(null)>] ?SizeRef: float, - [<Optional; DefaultParameterValue(null)>] ?Starts: StreamTubeStarts, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?U: seq<#IConvertible>, + ?V: seq<#IConvertible>, + ?W: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?UHoverFormat: string, + ?VHoverFormat: string, + ?WHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?HoverLabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?MaxDisplayed: int, + ?SizeRef: float, + ?Starts: StreamTubeStarts, + ?UIRevision: seq<#IConvertible> ) = - (fun (streamTube: #Trace) -> - Name |> DynObj.setValueOpt streamTube "name" - Visible |> DynObj.setValueOptBy streamTube "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt streamTube "showlegend" - Legend |> DynObj.setValueOptBy streamTube "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt streamTube "legendrank" - LegendGroup |> DynObj.setValueOpt streamTube "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt streamTube "legendgrouptitle" - Opacity |> DynObj.setValueOpt streamTube "opacity" - Ids |> DynObj.setValueOpt streamTube "ids" - X |> DynObj.setValueOpt streamTube "x" - Y |> DynObj.setValueOpt streamTube "y" - Z |> DynObj.setValueOpt streamTube "z" - U |> DynObj.setValueOpt streamTube "u" - V |> DynObj.setValueOpt streamTube "v" - W |> DynObj.setValueOpt streamTube "w" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt streamTube "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt streamTube "hovertext" - HoverInfo |> DynObj.setValueOptBy streamTube "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt streamTube "hovertemplate" - XHoverFormat |> DynObj.setValueOpt streamTube "xhoverformat" - YHoverFormat |> DynObj.setValueOpt streamTube "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt streamTube "zhoverformat" - UHoverFormat |> DynObj.setValueOpt streamTube "uhoverformat" - VHoverFormat |> DynObj.setValueOpt streamTube "vhoverformat" - WHoverFormat |> DynObj.setValueOpt streamTube "whoverformat" - Meta |> DynObj.setValueOpt streamTube "meta" - CustomData |> DynObj.setValueOpt streamTube "customdata" - Scene |> DynObj.setValueOptBy streamTube "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy streamTube "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt streamTube "colorbar" - AutoColorScale |> DynObj.setValueOpt streamTube "autocolorscale" - ColorScale |> DynObj.setValueOptBy streamTube "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt streamTube "showscale" - ReverseScale |> DynObj.setValueOpt streamTube "reversescale" - CAuto |> DynObj.setValueOpt streamTube "cauto" - CMin |> DynObj.setValueOpt streamTube "cmin" - CMid |> DynObj.setValueOpt streamTube "cmid" - CMax |> DynObj.setValueOpt streamTube "cmax" - HoverLabel |> DynObj.setValueOpt streamTube "hoverlabel" - Lighting |> DynObj.setValueOpt streamTube "lighting" - LightPosition |> DynObj.setValueOpt streamTube "lightposition" - MaxDisplayed |> DynObj.setValueOpt streamTube "maxdisplayed" - SizeRef |> DynObj.setValueOpt streamTube "sizeref" - Starts |> DynObj.setValueOpt streamTube "starts" - UIRevision |> DynObj.setValueOpt streamTube "uirevision" - - streamTube) + fun (streamTube: #Trace) -> + streamTube + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "u" U + |> DynObj.withOptionalProperty "v" V + |> DynObj.withOptionalProperty "w" W + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "uhoverformat" UHoverFormat + |> DynObj.withOptionalProperty "vhoverformat" VHoverFormat + |> DynObj.withOptionalProperty "whoverformat" WHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "maxdisplayed" MaxDisplayed + |> DynObj.withOptionalProperty "sizeref" SizeRef + |> DynObj.withOptionalProperty "starts" Starts + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a volume chart to the given trace @@ -881,108 +868,107 @@ type Trace3DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Volume ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ValueHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Scene: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Caps: Caps, - [<Optional; DefaultParameterValue(null)>] ?Contour: Contour, - [<Optional; DefaultParameterValue(null)>] ?FlatShading: bool, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?IsoMax: float, - [<Optional; DefaultParameterValue(null)>] ?IsoMin: float, - [<Optional; DefaultParameterValue(null)>] ?Lighting: Lighting, - [<Optional; DefaultParameterValue(null)>] ?LightPosition: LightPosition, - [<Optional; DefaultParameterValue(null)>] ?OpacityScale: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Slices: Slices, - [<Optional; DefaultParameterValue(null)>] ?SpaceFrame: Spaceframe, - [<Optional; DefaultParameterValue(null)>] ?Surface: Surface, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?Value: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?ValueHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Caps: Caps, + ?Contour: Contour, + ?FlatShading: bool, + ?HoverLabel: Hoverlabel, + ?IsoMax: float, + ?IsoMin: float, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?Slices: Slices, + ?SpaceFrame: Spaceframe, + ?Surface: Surface, + ?UIRevision: seq<#IConvertible> ) = fun (volume: #Trace) -> - Name |> DynObj.setValueOpt volume "name" - Visible |> DynObj.setValueOptBy volume "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt volume "showlegend" - Legend |> DynObj.setValueOptBy volume "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt volume "legendrank" - LegendGroup |> DynObj.setValueOpt volume "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt volume "legendgrouptitle" - Opacity |> DynObj.setValueOpt volume "opacity" - Ids |> DynObj.setValueOpt volume "ids" - X |> DynObj.setValueOpt volume "x" - Y |> DynObj.setValueOpt volume "y" - Z |> DynObj.setValueOpt volume "z" - Value |> DynObj.setValueOpt volume "value" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt volume "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt volume "hovertext" - HoverInfo |> DynObj.setValueOptBy volume "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt volume "hovertemplate" - XHoverFormat |> DynObj.setValueOpt volume "xhoverformat" - YHoverFormat |> DynObj.setValueOpt volume "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt volume "zhoverformat" - ValueHoverFormat |> DynObj.setValueOpt volume "valuehoverformat" - Meta |> DynObj.setValueOpt volume "meta" - CustomData |> DynObj.setValueOpt volume "customdata" - Scene |> DynObj.setValueOptBy volume "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy volume "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt volume "colorbar" - AutoColorScale |> DynObj.setValueOpt volume "autocolorscale" - ColorScale |> DynObj.setValueOptBy volume "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt volume "showscale" - ReverseScale |> DynObj.setValueOpt volume "reversescale" - CAuto |> DynObj.setValueOpt volume "cauto" - CMin |> DynObj.setValueOpt volume "cmin" - CMid |> DynObj.setValueOpt volume "cmid" - CMax |> DynObj.setValueOpt volume "cmax" - Caps |> DynObj.setValueOpt volume "caps" - Contour |> DynObj.setValueOpt volume "contour" - FlatShading |> DynObj.setValueOpt volume "flatshading" - HoverLabel |> DynObj.setValueOpt volume "hoverlabel" - IsoMax |> DynObj.setValueOpt volume "isomax" - IsoMin |> DynObj.setValueOpt volume "isomin" - Lighting |> DynObj.setValueOpt volume "lighting" - LightPosition |> DynObj.setValueOpt volume "lightposition" - OpacityScale |> DynObj.setValueOpt volume "opacityscale" - Slices |> DynObj.setValueOpt volume "slices" - SpaceFrame |> DynObj.setValueOpt volume "spaceframe" - Surface |> DynObj.setValueOpt volume "surface" - UIRevision |> DynObj.setValueOpt volume "uirevision" - volume + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "valuehoverformat" ValueHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "caps" Caps + |> DynObj.withOptionalProperty "contour" Contour + |> DynObj.withOptionalProperty "flatshading" FlatShading + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "isomax" IsoMax + |> DynObj.withOptionalProperty "isomin" IsoMin + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "opacityscale" OpacityScale + |> DynObj.withOptionalProperty "slices" Slices + |> DynObj.withOptionalProperty "spaceframe" SpaceFrame + |> DynObj.withOptionalProperty "surface" Surface + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a isosurface chart to the given trace @@ -1039,105 +1025,104 @@ type Trace3DStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member IsoSurface ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?XHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?YHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ValueHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Scene: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZHoverFormat: string, - [<Optional; DefaultParameterValue(null)>] ?CAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?CMax: float, - [<Optional; DefaultParameterValue(null)>] ?CMid: float, - [<Optional; DefaultParameterValue(null)>] ?CMin: float, - [<Optional; DefaultParameterValue(null)>] ?Caps: Caps, - [<Optional; DefaultParameterValue(null)>] ?Contour: Contour, - [<Optional; DefaultParameterValue(null)>] ?FlatShading: bool, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?IsoMax: float, - [<Optional; DefaultParameterValue(null)>] ?IsoMin: float, - [<Optional; DefaultParameterValue(null)>] ?Lighting: Lighting, - [<Optional; DefaultParameterValue(null)>] ?LightPosition: LightPosition, - [<Optional; DefaultParameterValue(null)>] ?OpacityScale: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Slices: Slices, - [<Optional; DefaultParameterValue(null)>] ?SpaceFrame: Spaceframe, - [<Optional; DefaultParameterValue(null)>] ?Surface: Surface, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?Value: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?ValueHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Caps: Caps, + ?Contour: Contour, + ?FlatShading: bool, + ?HoverLabel: Hoverlabel, + ?IsoMax: float, + ?IsoMin: float, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?Slices: Slices, + ?SpaceFrame: Spaceframe, + ?Surface: Surface, + ?UIRevision: seq<#IConvertible> ) = fun (isoSurface: #Trace) -> - Name |> DynObj.setValueOpt isoSurface "name" - Visible |> DynObj.setValueOptBy isoSurface "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt isoSurface "showlegend" - Legend |> DynObj.setValueOptBy isoSurface "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt isoSurface "legendrank" - LegendGroup |> DynObj.setValueOpt isoSurface "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt isoSurface "legendgrouptitle" - Opacity |> DynObj.setValueOpt isoSurface "opacity" - Ids |> DynObj.setValueOpt isoSurface "ids" - X |> DynObj.setValueOpt isoSurface "x" - Y |> DynObj.setValueOpt isoSurface "y" - Z |> DynObj.setValueOpt isoSurface "z" - Value |> DynObj.setValueOpt isoSurface "value" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt isoSurface "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt isoSurface "hovertext" - HoverInfo |> DynObj.setValueOptBy isoSurface "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt isoSurface "hovertemplate" - XHoverFormat |> DynObj.setValueOpt isoSurface "xhoverformat" - YHoverFormat |> DynObj.setValueOpt isoSurface "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt isoSurface "zhoverformat" - ValueHoverFormat |> DynObj.setValueOpt isoSurface "valuehoverformat" - Meta |> DynObj.setValueOpt isoSurface "meta" - CustomData |> DynObj.setValueOpt isoSurface "customdata" - Scene |> DynObj.setValueOptBy isoSurface "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy isoSurface "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt isoSurface "colorbar" - AutoColorScale |> DynObj.setValueOpt isoSurface "autocolorscale" - ColorScale |> DynObj.setValueOptBy isoSurface "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt isoSurface "showscale" - ReverseScale |> DynObj.setValueOpt isoSurface "reversescale" - CAuto |> DynObj.setValueOpt isoSurface "cauto" - CMin |> DynObj.setValueOpt isoSurface "cmin" - CMid |> DynObj.setValueOpt isoSurface "cmid" - CMax |> DynObj.setValueOpt isoSurface "cmax" - Caps |> DynObj.setValueOpt isoSurface "caps" - Contour |> DynObj.setValueOpt isoSurface "contour" - FlatShading |> DynObj.setValueOpt isoSurface "flatshading" - HoverLabel |> DynObj.setValueOpt isoSurface "hoverlabel" - IsoMax |> DynObj.setValueOpt isoSurface "isomax" - IsoMin |> DynObj.setValueOpt isoSurface "isomin" - Lighting |> DynObj.setValueOpt isoSurface "lighting" - LightPosition |> DynObj.setValueOpt isoSurface "lightposition" - OpacityScale |> DynObj.setValueOpt isoSurface "opacityscale" - Slices |> DynObj.setValueOpt isoSurface "slices" - SpaceFrame |> DynObj.setValueOpt isoSurface "spaceframe" - Surface |> DynObj.setValueOpt isoSurface "surface" - UIRevision |> DynObj.setValueOpt isoSurface "uirevision" - isoSurface + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "valuehoverformat" ValueHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "caps" Caps + |> DynObj.withOptionalProperty "contour" Contour + |> DynObj.withOptionalProperty "flatshading" FlatShading + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "isomax" IsoMax + |> DynObj.withOptionalProperty "isomin" IsoMin + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "opacityscale" OpacityScale + |> DynObj.withOptionalProperty "slices" Slices + |> DynObj.withOptionalProperty "spaceframe" SpaceFrame + |> DynObj.withOptionalProperty "surface" Surface + |> DynObj.withOptionalProperty "uirevision" UIRevision \ No newline at end of file diff --git a/src/Plotly.NET/Traces/TraceCarpet.fs b/src/Plotly.NET/Traces/TraceCarpet.fs index ff12dc962..b910446ea 100644 --- a/src/Plotly.NET/Traces/TraceCarpet.fs +++ b/src/Plotly.NET/Traces/TraceCarpet.fs @@ -26,23 +26,18 @@ type TraceCarpetStyle() = /// Sets the given axis anchor id(s) on a Trace object. static member SetAxisAnchor ( - [<Optional; DefaultParameterValue(null)>] ?X: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Y: StyleParam.LinearAxisId + ?X: StyleParam.LinearAxisId, + ?Y: StyleParam.LinearAxisId ) = - (fun (trace: TraceCarpet) -> + fun (trace: TraceCarpet) -> - X |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.toString - Y |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.toString - - trace) - - static member SetCarpet([<Optional; DefaultParameterValue(null)>] ?CarpetId: StyleParam.SubPlotId) = - (fun (trace: TraceCarpet) -> - - CarpetId |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.toString - - trace) + trace + |> DynObj.withOptionalPropertyBy "xaxis" X StyleParam.LinearAxisId.toString + |> DynObj.withOptionalPropertyBy "yaxis" Y StyleParam.LinearAxisId.toString + static member SetCarpet(?CarpetId: StyleParam.SubPlotId) = + fun (trace: TraceCarpet) -> + trace |> DynObj.withOptionalPropertyBy "carpet" CarpetId StyleParam.SubPlotId.toString /// <summary> /// Create a function that applies the styles of a carpet to a Trace object @@ -79,69 +74,68 @@ type TraceCarpetStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Carpet ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?X: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiX: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?Y: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?MultiY: seq<#seq<#IConvertible>>, - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?A0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DA: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DB: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?AAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?BAxis: LinearAxis, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Color: Color, - [<Optional; DefaultParameterValue(null)>] ?Carpet: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?CheaterSlope: float, - [<Optional; DefaultParameterValue(null)>] ?Font: Font, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<#seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<#seq<#IConvertible>>, + ?A: seq<#IConvertible>, + ?A0: #IConvertible, + ?DA: #IConvertible, + ?B: seq<#IConvertible>, + ?B0: #IConvertible, + ?DB: #IConvertible, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Color: Color, + ?Carpet: StyleParam.SubPlotId, + ?CheaterSlope: float, + ?Font: Font, + ?UIRevision: string ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "opacity" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - (X, MultiX) |> DynObj.setSingleOrAnyOpt trace "x" - (Y, MultiY) |> DynObj.setSingleOrAnyOpt trace "y" - A |> DynObj.setValueOpt trace "a" - A0 |> DynObj.setValueOpt trace "a0" - DA |> DynObj.setValueOpt trace "da" - B |> DynObj.setValueOpt trace "b" - B0 |> DynObj.setValueOpt trace "b0" - DB |> DynObj.setValueOpt trace "db" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - AAxis |> DynObj.setValueOpt trace "aaxis" - BAxis |> DynObj.setValueOpt trace "baxis" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Color |> DynObj.setValueOpt trace "color" - Carpet |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.convert - CheaterSlope |> DynObj.setValueOpt trace "cheaterslope" - Font |> DynObj.setValueOpt trace "font" - UIRevision |> DynObj.setValueOpt trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "opacity" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrAnyProperty "x" (X, MultiX) + |> DynObj.withOptionalSingleOrAnyProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalProperty "a0" A0 + |> DynObj.withOptionalProperty "da" DA + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalProperty "b0" B0 + |> DynObj.withOptionalProperty "db" DB + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "aaxis" AAxis + |> DynObj.withOptionalProperty "baxis" BAxis + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "carpet" Carpet StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "cheaterslope" CheaterSlope + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a scatter carpet plot to a Trace object @@ -188,89 +182,85 @@ type TraceCarpetStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ScatterCarpet ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Carpet: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOn: StyleParam.HoverOn, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?Carpet: StyleParam.SubPlotId, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?UIRevision: string ) = fun (trace: #Trace) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - A |> DynObj.setValueOpt trace "a" - B |> DynObj.setValueOpt trace "b" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - Carpet |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.convert - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" - + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalPropertyBy "carpet" Carpet StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a carpet contour scatter plot to a Trace object @@ -321,94 +311,93 @@ type TraceCarpetStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ContourCarpet ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?AType: StyleParam.CoordinateType, - [<Optional; DefaultParameterValue(null)>] ?A0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DA: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?BType: StyleParam.CoordinateType, - [<Optional; DefaultParameterValue(null)>] ?B0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DB: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?XAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?YAxis: StyleParam.LinearAxisId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?ZMax: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ZMid: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ZMin: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?AutoContour: bool, - [<Optional; DefaultParameterValue(null)>] ?Carpet: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Contours: Contours, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?NContours: int, - [<Optional; DefaultParameterValue(null)>] ?Transpose: bool, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?A: seq<#IConvertible>, + ?AType: StyleParam.CoordinateType, + ?A0: #IConvertible, + ?DA: #IConvertible, + ?B: seq<#IConvertible>, + ?BType: StyleParam.CoordinateType, + ?B0: #IConvertible, + ?DB: #IConvertible, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?Line: Line, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZMax: #IConvertible, + ?ZMid: #IConvertible, + ?ZMin: #IConvertible, + ?AutoContour: bool, + ?Carpet: StyleParam.SubPlotId, + ?Contours: Contours, + ?FillColor: Color, + ?NContours: int, + ?Transpose: bool, + ?UIRevision: string ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - A |> DynObj.setValueOpt trace "a" - AType |> DynObj.setValueOptBy trace "atype" StyleParam.CoordinateType.convert - A0 |> DynObj.setValueOpt trace "a0" - DA |> DynObj.setValueOpt trace "da" - B |> DynObj.setValueOpt trace "b" - BType |> DynObj.setValueOptBy trace "btype" StyleParam.CoordinateType.convert - B0 |> DynObj.setValueOpt trace "b0" - DB |> DynObj.setValueOpt trace "db" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Line |> DynObj.setValueOpt trace "line" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - ZMax |> DynObj.setValueOpt trace "zmax" - ZMid |> DynObj.setValueOpt trace "zmid" - ZMin |> DynObj.setValueOpt trace "zmin" - AutoContour |> DynObj.setValueOpt trace "autocontour" - Carpet |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.convert - Contours |> DynObj.setValueOpt trace "contours" - FillColor |> DynObj.setValueOpt trace "fillcolor" - NContours |> DynObj.setValueOpt trace "ncontours" - Transpose |> DynObj.setValueOpt trace "transpose" - UIRevision |> DynObj.setValueOpt trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalPropertyBy "atype" AType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "a0" A0 + |> DynObj.withOptionalProperty "da" DA + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalPropertyBy "btype" BType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "b0" B0 + |> DynObj.withOptionalProperty "db" DB + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalProperty "autocontour" AutoContour + |> DynObj.withOptionalPropertyBy "carpet" Carpet StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "ncontours" NContours + |> DynObj.withOptionalProperty "transpose" Transpose + |> DynObj.withOptionalProperty "uirevision" UIRevision diff --git a/src/Plotly.NET/Traces/TraceDomain.fs b/src/Plotly.NET/Traces/TraceDomain.fs index 2c69cb46f..73b6d63b8 100644 --- a/src/Plotly.NET/Traces/TraceDomain.fs +++ b/src/Plotly.NET/Traces/TraceDomain.fs @@ -42,12 +42,9 @@ type TraceDomain(traceTypeName) = type TraceDomainStyle() = - static member SetDomain([<Optional; DefaultParameterValue(null)>] ?Domain: Domain) = - (fun (trace: TraceDomain) -> - - Domain |> DynObj.setValueOpt trace "domain" - - trace) + static member SetDomain(?Domain: Domain) = + fun (trace: TraceDomain) -> + trace |> DynObj.withOptionalProperty "domain" Domain /// <summary> /// Creates a function that applies the styles of a pie chart to a Trace object @@ -98,99 +95,91 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Pie ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?DLabel: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Label0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Pull: float, - [<Optional; DefaultParameterValue(null)>] ?MultiPull: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?AutoMargin: bool, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?Direction: StyleParam.Direction, - [<Optional; DefaultParameterValue(null)>] ?Hole: float, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?InsideTextOrientation: StyleParam.InsideTextOrientation, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Rotation: float, - [<Optional; DefaultParameterValue(null)>] ?ScaleGroup: string, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?DLabel: #IConvertible, + ?Label0: #IConvertible, + ?Pull: float, + ?MultiPull: seq<float>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?AutoMargin: bool, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Hole: float, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?InsideTextOrientation: StyleParam.InsideTextOrientation, + ?OutsideTextFont: Font, + ?Rotation: float, + ?ScaleGroup: string, + ?Sort: bool, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - DLabel |> DynObj.setValueOpt trace "dlabel" - Label0 |> DynObj.setValueOpt trace "label0" - (Pull, MultiPull) |> DynObj.setSingleOrMultiOpt trace "pull" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - AutoMargin |> DynObj.setValueOpt trace "automargin" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - Direction |> DynObj.setValueOptBy trace "direction" StyleParam.Direction.convert - Hole |> DynObj.setValueOpt trace "hole" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - - InsideTextOrientation - |> DynObj.setValueOptBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert - - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Rotation |> DynObj.setValueOpt trace "rotation" - ScaleGroup |> DynObj.setValueOpt trace "scalegroup" - Sort |> DynObj.setValueOpt trace "sort" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalProperty "dlabel" DLabel + |> DynObj.withOptionalProperty "label0" Label0 + |> DynObj.withOptionalSingleOrMultiProperty "pull" (Pull, MultiPull) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "automargin" AutoMargin + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.Direction.convert + |> DynObj.withOptionalProperty "hole" Hole + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalPropertyBy "insidetextorientation" InsideTextOrientation StyleParam.InsideTextOrientation.convert + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalProperty "scalegroup" ScaleGroup + |> DynObj.withOptionalProperty "sort" Sort + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of a funnel area chart to a Trace object @@ -234,83 +223,78 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member FunnelArea ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?DLabel: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Label0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?AspectRatio: float, - [<Optional; DefaultParameterValue(null)>] ?BaseRatio: float, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?ScaleGroup: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?DLabel: #IConvertible, + ?Label0: #IConvertible, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?AspectRatio: float, + ?BaseRatio: float, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?ScaleGroup: string, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - DLabel |> DynObj.setValueOpt trace "dlabel" - Label0 |> DynObj.setValueOpt trace "label0" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - AspectRatio |> DynObj.setValueOpt trace "aspectratio" - BaseRatio |> DynObj.setValueOpt trace "baseratio" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - ScaleGroup |> DynObj.setValueOpt trace "scalegroup" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalProperty "dlabel" DLabel + |> DynObj.withOptionalProperty "label0" Label0 + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalProperty "aspectratio" AspectRatio + |> DynObj.withOptionalProperty "baseratio" BaseRatio + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "scalegroup" ScaleGroup + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of a sunburst chart to a Trace object @@ -358,92 +342,88 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Sunburst ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Parents: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: string, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?InsideTextOrientation: StyleParam.InsideTextOrientation, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Root: SunburstRoot, - [<Optional; DefaultParameterValue(null)>] ?Leaf: SunburstLeaf, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?Rotation: int, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendGroup: string, + ?LegendRank: int, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Parents: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?InsideTextOrientation: StyleParam.InsideTextOrientation, + ?OutsideTextFont: Font, + ?Root: SunburstRoot, + ?Leaf: SunburstLeaf, + ?Level: string, + ?MaxDepth: int, + ?Rotation: int, + ?Sort: bool, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Parents |> DynObj.setValueOpt trace "parents" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setValueOptBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setValueOpt trace "count" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - - InsideTextOrientation - |> DynObj.setValueOptBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert - - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Root |> DynObj.setValueOpt trace "root" - Leaf |> DynObj.setValueOpt trace "leaf" - Level |> DynObj.setValueOpt trace "level" - MaxDepth |> DynObj.setValueOpt trace "maxdepth" - Rotation |> DynObj.setValueOpt trace "rotation" - Sort |> DynObj.setValueOpt trace "sort" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "parents" Parents + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "branchvalues" BranchValues StyleParam.BranchValues.convert + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalPropertyBy "insidetextorientation" InsideTextOrientation StyleParam.InsideTextOrientation.convert + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "root" Root + |> DynObj.withOptionalProperty "leaf" Leaf + |> DynObj.withOptionalProperty "level" Level + |> DynObj.withOptionalProperty "maxdepth" MaxDepth + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalProperty "sort" Sort + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of a treemap chart to a Trace object @@ -491,91 +471,87 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Treemap ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Title: Title, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Parents: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: string, - [<Optional; DefaultParameterValue(null)>] ?Tiling: TreemapTiling, - [<Optional; DefaultParameterValue(null)>] ?PathBar: Pathbar, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Root: TreemapRoot, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Parents: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Tiling: TreemapTiling, + ?PathBar: Pathbar, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?Root: TreemapRoot, + ?Level: string, + ?MaxDepth: int, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> + fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Parents |> DynObj.setValueOpt trace "parents" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setValueOptBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setValueOpt trace "count" - Tiling |> DynObj.setValueOpt trace "tiling" - PathBar |> DynObj.setValueOpt trace "pathbar" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Root |> DynObj.setValueOpt trace "root" - Level |> DynObj.setValueOpt trace "level" - MaxDepth |> DynObj.setValueOpt trace "maxdepth" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "parents" Parents + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "branchvalues" BranchValues StyleParam.BranchValues.convert + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "tiling" Tiling + |> DynObj.withOptionalProperty "pathbar" PathBar + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "root" Root + |> DynObj.withOptionalProperty "level" Level + |> DynObj.withOptionalProperty "maxdepth" MaxDepth + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of a parallel coordinates plot to a Trace object @@ -601,49 +577,47 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ParallelCoord ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Dimensions: seq<Dimension>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?LabelAngle: int, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?LabelSide: StyleParam.Side, - [<Optional; DefaultParameterValue(null)>] ?RangeFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?Dimensions: seq<Dimension>, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Line: Line, + ?Unselected: TraceSelection, + ?LabelAngle: int, + ?LabelFont: Font, + ?LabelSide: StyleParam.Side, + ?RangeFont: Font, + ?TickFont: Font, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - Dimensions |> DynObj.setValueOpt trace "dimensions" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Line |> DynObj.setValueOpt trace "line" - Unselected |> DynObj.setValueOpt trace "unselected" - LabelAngle |> DynObj.setValueOpt trace "labelangle" - LabelFont |> DynObj.setValueOpt trace "labelfont" - LabelSide |> DynObj.setValueOpt trace "labelside" - RangeFont |> DynObj.setValueOpt trace "rangefont" - TickFont |> DynObj.setValueOpt trace "tickfont " - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "dimensions" Dimensions + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "labelangle" LabelAngle + |> DynObj.withOptionalProperty "labelfont" LabelFont + |> DynObj.withOptionalProperty "labelside" LabelSide + |> DynObj.withOptionalProperty "rangefont" RangeFont + |> DynObj.withOptionalProperty "tickfont " TickFont + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of a parallel categories plot to a Trace object @@ -670,50 +644,49 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ParallelCategories ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Counts: int, - [<Optional; DefaultParameterValue(null)>] ?Dimensions: seq<Dimension>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?Arrangement: StyleParam.CategoryArrangement, - [<Optional; DefaultParameterValue(null)>] ?BundleColors: bool, - [<Optional; DefaultParameterValue(null)>] ?SortPaths: StyleParam.SortAlgorithm, - [<Optional; DefaultParameterValue(null)>] ?Hoveron: StyleParam.HoverOn, - [<Optional; DefaultParameterValue(null)>] ?LabelFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TickFont: Font, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Counts: int, + ?Dimensions: seq<Dimension>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: seq<#IConvertible>, + ?Domain: Domain, + ?Line: Line, + ?Arrangement: StyleParam.CategoryArrangement, + ?BundleColors: bool, + ?SortPaths: StyleParam.SortAlgorithm, + ?Hoveron: StyleParam.HoverOn, + ?LabelFont: Font, + ?TickFont: Font, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Counts |> DynObj.setValueOpt trace "counts" - Dimensions |> DynObj.setValueOpt trace "dimensions" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - Domain |> DynObj.setValueOpt trace "domain" - Line |> DynObj.setValueOpt trace "line" - Arrangement |> DynObj.setValueOptBy trace "arrangement" StyleParam.CategoryArrangement.convert - BundleColors |> DynObj.setValueOpt trace "bundlecolors" - SortPaths |> DynObj.setValueOptBy trace "sortpaths" StyleParam.SortAlgorithm.convert - Hoveron |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - LabelFont |> DynObj.setValueOpt trace "labelfont" - TickFont |> DynObj.setValueOpt trace "tickfont " - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "counts" Counts + |> DynObj.withOptionalProperty "dimensions" Dimensions + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalPropertyBy "arrangement" Arrangement StyleParam.CategoryArrangement.convert + |> DynObj.withOptionalProperty "bundlecolors" BundleColors + |> DynObj.withOptionalPropertyBy "sortpaths" SortPaths StyleParam.SortAlgorithm.convert + |> DynObj.withOptionalPropertyBy "hoveron" Hoveron StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "labelfont" LabelFont + |> DynObj.withOptionalProperty "tickfont " TickFont + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of a sankey chart to a Trace object @@ -741,53 +714,53 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Sankey ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Orientation: StyleParam.Orientation, - [<Optional; DefaultParameterValue(null)>] ?Node: SankeyNodes, - [<Optional; DefaultParameterValue(null)>] ?Link: SankeyLinks, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Arrangement: StyleParam.CategoryArrangement, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?ValueFormat: string, - [<Optional; DefaultParameterValue(null)>] ?ValueSuffix: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?HoverInfo: StyleParam.HoverInfo, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Orientation: StyleParam.Orientation, + ?Node: SankeyNodes, + ?Link: SankeyLinks, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Arrangement: StyleParam.CategoryArrangement, + ?HoverLabel: Hoverlabel, + ?ValueFormat: string, + ?ValueSuffix: string, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> + fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Orientation |> DynObj.setValueOptBy trace "orientation" StyleParam.Orientation.convert - Node |> DynObj.setValueOpt trace "node" - Link |> DynObj.setValueOpt trace "link" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Arrangement |> DynObj.setValueOptBy trace "arrangement" StyleParam.CategoryArrangement.convert - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - ValueFormat |> DynObj.setValueOpt trace "valueformat" - ValueSuffix |> DynObj.setValueOpt trace "valuesuffix" - UIRevision |> DynObj.setValueOpt trace "uirevision" + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "node" Node + |> DynObj.withOptionalProperty "link" Link + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalPropertyBy "arrangement" Arrangement StyleParam.CategoryArrangement.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "valueformat" ValueFormat + |> DynObj.withOptionalProperty "valuesuffix" ValueSuffix + |> DynObj.withOptionalProperty "uirevision" UIRevision - trace) /// <summary> /// Creates a function that applies the styles of a table to a Trace object @@ -811,44 +784,42 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Table ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: bool, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?ColumnOrder: seq<int>, - [<Optional; DefaultParameterValue(null)>] ?ColumnWidth: float, - [<Optional; DefaultParameterValue(null)>] ?MultiColumnWidth: seq<float>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Cells: TableCells, - [<Optional; DefaultParameterValue(null)>] ?Header: TableHeader, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: bool, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?ColumnOrder: seq<int>, + ?ColumnWidth: float, + ?MultiColumnWidth: seq<float>, + ?HoverInfo: StyleParam.HoverInfo, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Cells: TableCells, + ?Header: TableHeader, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - ColumnOrder |> DynObj.setValueOpt trace "columnorder" - (ColumnWidth, MultiColumnWidth) |> DynObj.setSingleOrMultiOpt trace "columnwidth" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Cells |> DynObj.setValueOpt trace "cells" - Header |> DynObj.setValueOpt trace "header" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "columnorder" ColumnOrder + |> DynObj.withOptionalSingleOrMultiProperty "columnwidth" (ColumnWidth, MultiColumnWidth) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "cells" Cells + |> DynObj.withOptionalProperty "header" Header + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of an indicator to a Trace object @@ -872,45 +843,44 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Indicator ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Title: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.IndicatorMode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Value: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Align: StyleParam.IndicatorAlignment, - [<Optional; DefaultParameterValue(null)>] ?Delta: IndicatorDelta, - [<Optional; DefaultParameterValue(null)>] ?Number: IndicatorNumber, - [<Optional; DefaultParameterValue(null)>] ?Gauge: IndicatorGauge, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Title: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroupTitle: Title, + ?Mode: StyleParam.IndicatorMode, + ?Ids: seq<#IConvertible>, + ?Value: #IConvertible, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Align: StyleParam.IndicatorAlignment, + ?Delta: IndicatorDelta, + ?Number: IndicatorNumber, + ?Gauge: IndicatorGauge, + ?UIRevision: string ) = fun (trace: #Trace) -> - - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.IndicatorMode.convert - Ids |> DynObj.setValueOpt trace "ids" - Value |> DynObj.setValueOpt trace "value" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Align |> DynObj.setValueOptBy trace "align" StyleParam.IndicatorAlignment.convert - Delta |> DynObj.setValueOpt trace "delta" - Number |> DynObj.setValueOpt trace "number" - Gauge |> DynObj.setValueOpt trace "gauge" - UIRevision |> DynObj.setValueOpt trace "uirevision" - + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.IndicatorMode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "align" Align StyleParam.IndicatorAlignment.convert + |> DynObj.withOptionalProperty "delta" Delta + |> DynObj.withOptionalProperty "number" Number + |> DynObj.withOptionalProperty "gauge" Gauge + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of an icicle chart to a Trace object @@ -957,86 +927,82 @@ type TraceDomainStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member Icicle ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Parents: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Values: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Labels: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Domain: Domain, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?TextInfo: StyleParam.TextInfo, - [<Optional; DefaultParameterValue(null)>] ?BranchValues: StyleParam.BranchValues, - [<Optional; DefaultParameterValue(null)>] ?Count: StyleParam.IcicleCount, - [<Optional; DefaultParameterValue(null)>] ?Tiling: IcicleTiling, - [<Optional; DefaultParameterValue(null)>] ?PathBar: Pathbar, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?InsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?OutsideTextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?Root: IcicleRoot, - [<Optional; DefaultParameterValue(null)>] ?Leaf: IcicleLeaf, - [<Optional; DefaultParameterValue(null)>] ?Level: string, - [<Optional; DefaultParameterValue(null)>] ?MaxDepth: int, - [<Optional; DefaultParameterValue(null)>] ?Sort: bool, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Parents: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: StyleParam.IcicleCount, + ?Tiling: IcicleTiling, + ?PathBar: Pathbar, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?Root: IcicleRoot, + ?Leaf: IcicleLeaf, + ?Level: string, + ?MaxDepth: int, + ?Sort: bool, + ?UIRevision: string ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Parents |> DynObj.setValueOpt trace "parents" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setValueOptBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setValueOptBy trace "count" StyleParam.IcicleCount.convert - Tiling |> DynObj.setValueOpt trace "tiling" - PathBar |> DynObj.setValueOpt trace "pathbar" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Root |> DynObj.setValueOpt trace "root" - Leaf |> DynObj.setValueOpt trace "leaf" - Level |> DynObj.setValueOpt trace "level" - MaxDepth |> DynObj.setValueOpt trace "maxdepth" - Sort |> DynObj.setValueOpt trace "sort" - UIRevision |> DynObj.setValueOpt trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "parents" Parents + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "branchvalues" BranchValues StyleParam.BranchValues.convert + |> DynObj.withOptionalPropertyBy "count" Count StyleParam.IcicleCount.convert + |> DynObj.withOptionalProperty "tiling" Tiling + |> DynObj.withOptionalProperty "pathbar" PathBar + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "root" Root + |> DynObj.withOptionalProperty "leaf" Leaf + |> DynObj.withOptionalProperty "level" Level + |> DynObj.withOptionalProperty "maxdepth" MaxDepth + |> DynObj.withOptionalProperty "sort" Sort + |> DynObj.withOptionalProperty "uirevision" UIRevision \ No newline at end of file diff --git a/src/Plotly.NET/Traces/TraceGeo.fs b/src/Plotly.NET/Traces/TraceGeo.fs index b25d308d0..1d2d2b10a 100644 --- a/src/Plotly.NET/Traces/TraceGeo.fs +++ b/src/Plotly.NET/Traces/TraceGeo.fs @@ -38,12 +38,10 @@ type TraceGeo(traceTypeName) = type TraceGeoStyle() = - static member SetGeo([<Optional; DefaultParameterValue(null)>] ?GeoId: StyleParam.SubPlotId) = - (fun (trace: TraceGeo) -> + static member SetGeo(?GeoId: StyleParam.SubPlotId) = + fun (trace: TraceGeo) -> + trace |> DynObj.withOptionalPropertyBy "geo" GeoId StyleParam.SubPlotId.toString - GeoId |> DynObj.setValueOptBy trace "geo" StyleParam.SubPlotId.toString - - trace) /// <summary> /// Creates a function that applies the styles of a choropleth map to a Trace object @@ -89,86 +87,85 @@ type TraceGeoStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ChoroplethMap ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(null)>] ?Locations: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Geo: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?Zmin: float, - [<Optional; DefaultParameterValue(null)>] ?Zmid: float, - [<Optional; DefaultParameterValue(null)>] ?Zmax: float, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Locations: seq<string>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Geo: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?Marker: Marker, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?Zmin: float, + ?Zmid: float, + ?Zmax: float, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?HoverLabel: Hoverlabel, + ?LocationMode: StyleParam.LocationFormat, + ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - GeoJson |> DynObj.setValueOpt trace "geojson" - FeatureIdKey |> DynObj.setValueOpt trace "featureidkey" - Locations |> DynObj.setValueOpt trace "locations" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Geo |> DynObj.setValueOptBy trace "geo" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - Zmin |> DynObj.setValueOpt trace "zmin" - Zmid |> DynObj.setValueOpt trace "zmid" - Zmax |> DynObj.setValueOpt trace "zmax" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - LocationMode |> DynObj.setValueOptBy trace "locationmode" StyleParam.LocationFormat.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + fun (trace: #Trace) -> - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "geojson" GeoJson + |> DynObj.withOptionalProperty "featureidkey" FeatureIdKey + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "geo" Geo StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "locationmode" LocationMode StyleParam.LocationFormat.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Creates a function that applies the styles of a scattergeo plot to a Trace object @@ -216,90 +213,84 @@ type TraceGeoStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ScatterGeo ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Lat: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(null)>] ?Locations: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Lon: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Geo: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?LocationMode: StyleParam.LocationFormat, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?Lat: #IConvertible seq, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Locations: seq<string>, + ?Lon: #IConvertible seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Geo: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?LocationMode: StyleParam.LocationFormat, + ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - Lat |> DynObj.setValueOpt trace "lat" - GeoJson |> DynObj.setValueOpt trace "geojson" - FeatureIdKey |> DynObj.setValueOpt trace "featureidkey" - Locations |> DynObj.setValueOpt trace "locations" - Lon |> DynObj.setValueOpt trace "lon" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Geo |> DynObj.setValueOptBy trace "geo" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - LocationMode |> DynObj.setValueOptBy trace "locationmode" StyleParam.LocationFormat.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + fun (trace: #Trace) -> trace - - ) + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "lat" Lat + |> DynObj.withOptionalProperty "geojson" GeoJson + |> DynObj.withOptionalProperty "featureidkey" FeatureIdKey + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalProperty "lon" Lon + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "geo" Geo StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "locationmode" LocationMode StyleParam.LocationFormat.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision diff --git a/src/Plotly.NET/Traces/TraceMapbox.fs b/src/Plotly.NET/Traces/TraceMapbox.fs index 2ac9dcf50..b976601ff 100644 --- a/src/Plotly.NET/Traces/TraceMapbox.fs +++ b/src/Plotly.NET/Traces/TraceMapbox.fs @@ -44,12 +44,10 @@ type TraceMapbox(traceTypeName) = type TraceMapboxStyle() = - static member SetMapbox([<Optional; DefaultParameterValue(null)>] ?MapboxId: StyleParam.SubPlotId) = - (fun (trace: TraceMapbox) -> + static member SetMapbox(?MapboxId: StyleParam.SubPlotId) = + fun (trace: TraceMapbox) -> + trace |> DynObj.withOptionalPropertyBy "subplot" MapboxId StyleParam.SubPlotId.toString - MapboxId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString - - trace) /// <summary> /// Create a function that applies the styles of a mapbox scatter plot to a Trace object @@ -95,86 +93,82 @@ type TraceMapboxStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ScatterMapbox ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Lat: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?Lon: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?Cluster: MapboxCluster, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SubPlot: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?Lat: #IConvertible seq, + ?Lon: #IConvertible seq, + ?Cluster: MapboxCluster, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?Below: string, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - Lat |> DynObj.setValueOpt trace "lat" - Lon |> DynObj.setValueOpt trace "lon" - Cluster |> DynObj.setValueOpt trace "cluster" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + fun (trace: #Trace) -> - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - Below |> DynObj.setValueOpt trace "below" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "lat" Lat + |> DynObj.withOptionalProperty "lon" Lon + |> DynObj.withOptionalProperty "cluster" Cluster + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a choropleth mapbox plot to a Trace object @@ -220,86 +214,83 @@ type TraceMapboxStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ChoroplethMapbox ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?GeoJson: obj, - [<Optional; DefaultParameterValue(null)>] ?FeatureIdKey: string, - [<Optional; DefaultParameterValue(null)>] ?Locations: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SubPlot: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?Zmax: float, - [<Optional; DefaultParameterValue(null)>] ?Zmid: float, - [<Optional; DefaultParameterValue(null)>] ?Zmin: float, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Locations: seq<string>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?Marker: Marker, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?Zmax: float, + ?Zmid: float, + ?Zmin: float, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?Below: string, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - GeoJson |> DynObj.setValueOpt trace "geojson" - FeatureIdKey |> DynObj.setValueOpt trace "featureidkey" - Locations |> DynObj.setValueOpt trace "locations" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - Zmin |> DynObj.setValueOpt trace "zmin" - Zmid |> DynObj.setValueOpt trace "zmid" - Zmax |> DynObj.setValueOpt trace "zmax" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - Below |> DynObj.setValueOpt trace "below" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "geojson" GeoJson + |> DynObj.withOptionalProperty "featureidkey" FeatureIdKey + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a density mapbox plot to a Trace object @@ -343,80 +334,77 @@ type TraceMapboxStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member DensityMapbox ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Z: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Radius: int, - [<Optional; DefaultParameterValue(null)>] ?Lat: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?Lon: #IConvertible seq, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SubPlot: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?ColorAxis: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?ColorBar: ColorBar, - [<Optional; DefaultParameterValue(null)>] ?AutoColorScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ColorScale: StyleParam.Colorscale, - [<Optional; DefaultParameterValue(null)>] ?ShowScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ReverseScale: bool, - [<Optional; DefaultParameterValue(null)>] ?ZAuto: bool, - [<Optional; DefaultParameterValue(null)>] ?Zmin: float, - [<Optional; DefaultParameterValue(null)>] ?Zmid: float, - [<Optional; DefaultParameterValue(null)>] ?Zmax: float, - [<Optional; DefaultParameterValue(null)>] ?Below: string, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?Radius: int, + ?Lat: #IConvertible seq, + ?Lon: #IConvertible seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?Marker: Marker, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?Zmin: float, + ?Zmid: float, + ?Zmax: float, + ?Below: string, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - Radius |> DynObj.setValueOpt trace "radius" - Lat |> DynObj.setValueOpt trace "lat" - Lon |> DynObj.setValueOpt trace "lon" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - Zmin |> DynObj.setValueOpt trace "zmin" - Zmid |> DynObj.setValueOpt trace "zmid" - Zmax |> DynObj.setValueOpt trace "zmax" - Below |> DynObj.setValueOpt trace "below" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "radius" Radius + |> DynObj.withOptionalProperty "lat" Lat + |> DynObj.withOptionalProperty "lon" Lon + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision diff --git a/src/Plotly.NET/Traces/TracePolar.fs b/src/Plotly.NET/Traces/TracePolar.fs index 1a78f1e2a..f187bad38 100644 --- a/src/Plotly.NET/Traces/TracePolar.fs +++ b/src/Plotly.NET/Traces/TracePolar.fs @@ -33,12 +33,9 @@ type TracePolar(traceTypeName) = /// Create various functions for applying polar chart styles to traces type TracePolarStyle() = - static member SetPolar([<Optional; DefaultParameterValue(null)>] ?PolarId: StyleParam.SubPlotId) = - (fun (trace: TracePolar) -> - - PolarId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString - - trace) + static member SetPolar(?PolarId: StyleParam.SubPlotId) = + fun (trace: TracePolar) -> + trace |> DynObj.withOptionalPropertyBy "subplot" PolarId StyleParam.SubPlotId.toString /// <summary> /// Create a function that applies the styles of a polar scatter plot to a Trace object @@ -89,97 +86,93 @@ type TracePolarStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ScatterPolar ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?R: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?R0: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DR: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Theta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Theta0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTheta: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ThetaUnit: StyleParam.AngularUnit, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Subplot: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOn: string, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?R: seq<#IConvertible>, + ?R0: IConvertible, + ?DR: IConvertible, + ?Theta: seq<#IConvertible>, + ?Theta0: #IConvertible, + ?DTheta: #IConvertible, + ?ThetaUnit: StyleParam.AngularUnit, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Subplot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: string, + ?UIRevision: seq<#IConvertible> ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - R |> DynObj.setValueOpt trace "r" - R0 |> DynObj.setValueOpt trace "r0" - DR |> DynObj.setValueOpt trace "dr" - Theta |> DynObj.setValueOpt trace "theta" - Theta0 |> DynObj.setValueOpt trace "theta0" - DTheta |> DynObj.setValueOpt trace "dtheta" - ThetaUnit |> DynObj.setValueOptBy trace "thetaunit" StyleParam.AngularUnit.convert - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + fun (trace: ('T :> Trace)) -> - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Subplot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOpt trace "hoveron" - UIRevision |> DynObj.setValueOpt trace "uirevision" - - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "r" R + |> DynObj.withOptionalProperty "r0" R0 + |> DynObj.withOptionalProperty "dr" DR + |> DynObj.withOptionalProperty "theta" Theta + |> DynObj.withOptionalProperty "theta0" Theta0 + |> DynObj.withOptionalProperty "dtheta" DTheta + |> DynObj.withOptionalPropertyBy "thetaunit" ThetaUnit StyleParam.AngularUnit.convert + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" Subplot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hoveron" HoverOn + |> DynObj.withOptionalProperty "uirevision" UIRevision /// <summary> /// Create a function that applies the styles of a polar bar plot to a Trace object @@ -223,77 +216,76 @@ type TracePolarStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member BarPolar ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Base: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?R: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?R0: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DR: IConvertible, - [<Optional; DefaultParameterValue(null)>] ?Theta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Theta0: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?DTheta: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?ThetaUnit: StyleParam.AngularUnit, - [<Optional; DefaultParameterValue(null)>] ?Width: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiWidth: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Offset: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiOffset: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Subplot: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Base: #IConvertible, + ?R: seq<#IConvertible>, + ?R0: IConvertible, + ?DR: IConvertible, + ?Theta: seq<#IConvertible>, + ?Theta0: #IConvertible, + ?DTheta: #IConvertible, + ?ThetaUnit: StyleParam.AngularUnit, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?Offset: #IConvertible, + ?MultiOffset: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Subplot: StyleParam.SubPlotId, + ?Marker: Marker, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?HoverLabel: Hoverlabel, + ?UIRevision: seq<#IConvertible> ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Base |> DynObj.setValueOpt trace "base" - R |> DynObj.setValueOpt trace "r" - R0 |> DynObj.setValueOpt trace "r0" - DR |> DynObj.setValueOpt trace "dr" - Theta |> DynObj.setValueOpt trace "theta" - Theta0 |> DynObj.setValueOpt trace "theta0" - DTheta |> DynObj.setValueOpt trace "dtheta" - ThetaUnit |> DynObj.setValueOptBy trace "thetaunit" StyleParam.AngularUnit.convert - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt trace "width" - (Offset, MultiOffset) |> DynObj.setSingleOrMultiOpt trace "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Subplot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" + fun (trace: ('T :> Trace)) -> - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "base" Base + |> DynObj.withOptionalProperty "r" R + |> DynObj.withOptionalProperty "r0" R0 + |> DynObj.withOptionalProperty "dr" DR + |> DynObj.withOptionalProperty "theta" Theta + |> DynObj.withOptionalProperty "theta0" Theta0 + |> DynObj.withOptionalProperty "dtheta" DTheta + |> DynObj.withOptionalPropertyBy "thetaunit" ThetaUnit StyleParam.AngularUnit.convert + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalSingleOrMultiProperty "offset" (Offset, MultiOffset) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" Subplot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision diff --git a/src/Plotly.NET/Traces/TraceSmith.fs b/src/Plotly.NET/Traces/TraceSmith.fs index 5a1e452d9..97e2b31d6 100644 --- a/src/Plotly.NET/Traces/TraceSmith.fs +++ b/src/Plotly.NET/Traces/TraceSmith.fs @@ -16,12 +16,10 @@ type TraceSmith(traceTypeName) = type TraceSmithStyle() = - static member SetSmith([<Optional; DefaultParameterValue(null)>] ?SmithId: StyleParam.SubPlotId) = - (fun (trace: TraceSmith) -> + static member SetSmith(?SmithId: StyleParam.SubPlotId) = + fun (trace: TraceSmith) -> + trace |> DynObj.withOptionalPropertyBy "subplot" SmithId StyleParam.SubPlotId.toString - SmithId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString - - trace) /// <summary> /// Create a function that applies the styles of a scatter smith plot to a Trace object @@ -67,84 +65,79 @@ type TraceSmithStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ScatterSmith ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Imag: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Real: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Subplot: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOn: StyleParam.HoverOn, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?Imag: seq<#IConvertible>, + ?Real: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Subplot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - Imag |> DynObj.setValueOpt trace "imag" - Real |> DynObj.setValueOpt trace "real" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Subplot |> DynObj.setValueOpt trace "subplot" - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "imag" Imag + |> DynObj.withOptionalProperty "real" Real + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "subplot" Subplot + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision \ No newline at end of file diff --git a/src/Plotly.NET/Traces/TraceTernary.fs b/src/Plotly.NET/Traces/TraceTernary.fs index 793df9ea6..c46106c5f 100644 --- a/src/Plotly.NET/Traces/TraceTernary.fs +++ b/src/Plotly.NET/Traces/TraceTernary.fs @@ -16,12 +16,9 @@ type TraceTernary(traceTypeName) = type TraceTernaryStyle() = - static member SetTernary([<Optional; DefaultParameterValue(null)>] ?TernaryId: StyleParam.SubPlotId) = - (fun (trace: TraceTernary) -> - - TernaryId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString - - trace) + static member SetTernary(?TernaryId: StyleParam.SubPlotId) = + fun (trace: TraceTernary) -> + trace |> DynObj.withOptionalPropertyBy "subplot" TernaryId StyleParam.SubPlotId.toString /// <summary> /// Create a function that applies the styles of a ternary scatter plot to a Trace object @@ -69,88 +66,84 @@ type TraceTernaryStyle() = /// <param name="UIRevision">Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.</param> static member ScatterTernary ( - [<Optional; DefaultParameterValue(null)>] ?Name: string, - [<Optional; DefaultParameterValue(null)>] ?Visible: StyleParam.Visible, - [<Optional; DefaultParameterValue(null)>] ?ShowLegend: bool, - [<Optional; DefaultParameterValue(null)>] ?Legend: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?LegendRank: int, - [<Optional; DefaultParameterValue(null)>] ?LegendGroup: string, - [<Optional; DefaultParameterValue(null)>] ?LegendGroupTitle: Title, - [<Optional; DefaultParameterValue(null)>] ?Opacity: float, - [<Optional; DefaultParameterValue(null)>] ?Mode: StyleParam.Mode, - [<Optional; DefaultParameterValue(null)>] ?Ids: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?A: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?B: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?C: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Text: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?MultiText: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?TextPosition: StyleParam.TextPosition, - [<Optional; DefaultParameterValue(null)>] ?MultiTextPosition: seq<StyleParam.TextPosition>, - [<Optional; DefaultParameterValue(null)>] ?TextTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiTextTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverText: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverText: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?HoverInfo: StyleParam.HoverInfo, - [<Optional; DefaultParameterValue(null)>] ?HoverTemplate: string, - [<Optional; DefaultParameterValue(null)>] ?MultiHoverTemplate: seq<string>, - [<Optional; DefaultParameterValue(null)>] ?Meta: string, - [<Optional; DefaultParameterValue(null)>] ?CustomData: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?SubPlot: StyleParam.SubPlotId, - [<Optional; DefaultParameterValue(null)>] ?Marker: Marker, - [<Optional; DefaultParameterValue(null)>] ?Line: Line, - [<Optional; DefaultParameterValue(null)>] ?TextFont: Font, - [<Optional; DefaultParameterValue(null)>] ?SelectedPoints: seq<#IConvertible>, - [<Optional; DefaultParameterValue(null)>] ?Selected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?Unselected: TraceSelection, - [<Optional; DefaultParameterValue(null)>] ?ClipOnAxis: bool, - [<Optional; DefaultParameterValue(null)>] ?ConnectGaps: bool, - [<Optional; DefaultParameterValue(null)>] ?Fill: StyleParam.Fill, - [<Optional; DefaultParameterValue(null)>] ?FillColor: Color, - [<Optional; DefaultParameterValue(null)>] ?HoverLabel: Hoverlabel, - [<Optional; DefaultParameterValue(null)>] ?HoverOn: StyleParam.HoverOn, - [<Optional; DefaultParameterValue(null)>] ?Sum: #IConvertible, - [<Optional; DefaultParameterValue(null)>] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq<StyleParam.TextPosition>, + ?TextTemplate: string, + ?MultiTextTemplate: seq<string>, + ?HoverText: string, + ?MultiHoverText: seq<string>, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq<string>, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?Sum: #IConvertible, + ?UIRevision: string ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - A |> DynObj.setValueOpt trace "a" - B |> DynObj.setValueOpt trace "b" - C |> DynObj.setValueOpt trace "c" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - Sum |> DynObj.setValueOpt trace "sum" - UIRevision |> DynObj.setValueOpt trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalProperty "c" C + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "sum" Sum + |> DynObj.withOptionalProperty "uirevision" UIRevision diff --git a/tests/Common/CSharpTestBase/CSharpTestBase.csproj b/tests/Common/CSharpTestBase/CSharpTestBase.csproj index 132c02c59..30402ac0e 100644 --- a/tests/Common/CSharpTestBase/CSharpTestBase.csproj +++ b/tests/Common/CSharpTestBase/CSharpTestBase.csproj @@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/tests/Common/FSharpTestBase/FSharpTestBase.fsproj b/tests/Common/FSharpTestBase/FSharpTestBase.fsproj index 7617a492f..558074a1a 100644 --- a/tests/Common/FSharpTestBase/FSharpTestBase.fsproj +++ b/tests/Common/FSharpTestBase/FSharpTestBase.fsproj @@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <GenerateDocumentationFile>true</GenerateDocumentationFile> </PropertyGroup> diff --git a/tests/Common/FSharpTestBase/TestUtils.fs b/tests/Common/FSharpTestBase/TestUtils.fs index fe10a58de..1b754de42 100644 --- a/tests/Common/FSharpTestBase/TestUtils.fs +++ b/tests/Common/FSharpTestBase/TestUtils.fs @@ -213,6 +213,18 @@ module JsonGen = let json = chart |> GenericChart.toFigureJson Expect.equal json expected $"JSON not equal to expected value." + let layoutJsonIs chart expected = + let json = + let layout = GenericChart.getLayout chart + JsonConvert.SerializeObject(layout, Globals.JSON_CONFIG) + Expect.equal json expected $"Layout JSON not equal to expected value." + + let tracesJsonIs (expectedJson: string) (chart: GenericChart) = + let json = + let traces = GenericChart.getTraces chart + JsonConvert.SerializeObject(traces, Globals.JSON_CONFIG) + Expect.equal json expectedJson $"Traces JSON not equal to expected value" + module Objects = let jsonFieldIsSetWith fieldName expected (object:#DynamicObj) = diff --git a/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj b/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj index 9e3def058..470b02a37 100644 --- a/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj +++ b/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/ConsoleApps/CSharpConsole/Program.cs b/tests/ConsoleApps/CSharpConsole/Program.cs index 20ae982f9..c363b57e5 100644 --- a/tests/ConsoleApps/CSharpConsole/Program.cs +++ b/tests/ConsoleApps/CSharpConsole/Program.cs @@ -8,808 +8,808 @@ class Program { static void Main(string[] args) { - Chart.Grid( - nRows: 10, - nCols: 7, - gCharts: - new Plotly.NET.GenericChart[] - { - //2D basic traces + //Chart.Grid( + // nRows: 10, + // nCols: 7, + // gCharts: + // new Plotly.NET.GenericChart[] + // { + // //2D basic traces - //simple scatter derived - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Scatter<int, int, int>( - x: new int [] { 1, 2, 3 }, - y: new int [] { 5, 3, 4 }, - mode: Mode.Markers, - Name: "scatter", - MultiText: new int [] { 3, 4 } - ), - Chart.Point<int,int,string>( - x: new int [] { 1, 2, 3 }, - y: new int [] { 6, 4, 5 }, - Name: "point", - Text: "hi" - ), - Chart.Line<int,int,string>( - x: new int [] { 1, 2, 3 }, - y: new int [] { 7, 5, 6 }, - Name: "line" - ), - Chart.Spline<int,int,string>( - x: new int [] { 1, 2, 3}, - y: new int [] { 8, 6, 7 }, - Name: "spline" - ), - Chart.Bubble<int,int,string>( - x: new int [] { 1, 2, 3 }, - y: new int [] { 9, 7, 8 }, - sizes: new int [] { 10, 20, 30 }, - Name: "bubble" - ) - } - ).WithTraceInfo( - LegendGroup: "simple-scatter-derived", - LegendGroupTitle: Plotly.NET.Title.init("simple scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), + // //simple scatter derived + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Scatter<int, int, int>( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 5, 3, 4 }, + // mode: Mode.Markers, + // Name: "scatter", + // MultiText: new int [] { 3, 4 } + // ), + // Chart.Point<int,int,string>( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 6, 4, 5 }, + // Name: "point", + // Text: "hi" + // ), + // Chart.Line<int,int,string>( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 7, 5, 6 }, + // Name: "line" + // ), + // Chart.Spline<int,int,string>( + // x: new int [] { 1, 2, 3}, + // y: new int [] { 8, 6, 7 }, + // Name: "spline" + // ), + // Chart.Bubble<int,int,string>( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 9, 7, 8 }, + // sizes: new int [] { 10, 20, 30 }, + // Name: "bubble" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "simple-scatter-derived", + // LegendGroupTitle: Plotly.NET.Title.init("simple scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), - //extended scatter derived - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Range<int, int, string>( - x: new int [] { 1, 2, 3 }, - y: new int [] { 5, 3, 4 }, - upper: new int [] { 6, 4, 5 }, - lower: new int [] { 4, 2, 3 }, - mode: Mode.Lines, - Name: "range" - ), - Chart.Area<int,int,string>( - x: new int [] { 1, 2}, - y: new int [] { 3, 1}, - Name: "area" - ), - Chart.SplineArea<int,int,string>( - x: new int [] { 3, 4, 5}, - y: new int [] { 3, 1, 4}, - Name: "splinearea" - ), - Chart.StackedArea<int,int,string>( - x: new int [] { 6, 7}, - y: new int [] { 3, 1}, - Name: "stacked area 1" - ), - Chart.StackedArea<int,int,string>( - x: new int [] { 6, 7}, - y: new int [] { 3, 2}, - Name: "stacked area 2" - ) - } - ).WithTraceInfo( - LegendGroup: "extended-scatter-derived", - LegendGroupTitle: Plotly.NET.Title.init("extended scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Bar<int,string,string>( - values: new int [] { 1,2 }, - Keys: new string [] { "first", "second"}, - Name: "bar" - ), - Chart.StackedBar<int,string,string>( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked bar 1" - ), - Chart.StackedBar<int,string,string>( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked bar 2" - ), - } - ).WithTraceInfo( - LegendGroup: "bar-and-derived-traces", - LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Column<int,string,string>( - values: new int [] { 3,4 }, - Keys: new string [] { "first", "second"}, - Name: "column" - ), - Chart.StackedColumn<int,string,string>( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked column 1" - ), - Chart.StackedColumn<int,string,string>( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked column 2" - ), - } - ).WithTraceInfo( - LegendGroup: "bar-and-derived-traces", - LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Heatmap<int, int, int, string>( - zData: new int [] [] - { - new int [] { 1,2,3}, - new int [] { 2,1,2}, - new int [] { 3,2,1} - }, - ShowScale: false, - Name: "heatmap", - ShowLegend: true - ).WithTraceInfo( - LegendGroup: "other-simple-2D", - LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Image<string>( - Source: @"data:image/gif;base64,R0lGODdhEAAQAMwAAPj7+FmhUYjNfGuxYYDJdYTIeanOpT+DOTuANXi/bGOrWj6CONzv2sPjv2CmV1unU4zPgI/Sg6DJnJ3ImTh8Mtbs00aNP1CZSGy0YqLEn47RgXW8amasW7XWsmmvX2iuXiwAAAAAEAAQAAAFVyAgjmRpnihqGCkpDQPbGkNUOFk6DZqgHCNGg2T4QAQBoIiRSAwBE4VA4FACKgkB5NGReASFZEmxsQ0whPDi9BiACYQAInXhwOUtgCUQoORFCGt/g4QAIQA7" - ).WithTraceInfo( - LegendGroup: "other-simple-2D", - LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), + // //extended scatter derived + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Range<int, int, string>( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 5, 3, 4 }, + // upper: new int [] { 6, 4, 5 }, + // lower: new int [] { 4, 2, 3 }, + // mode: Mode.Lines, + // Name: "range" + // ), + // Chart.Area<int,int,string>( + // x: new int [] { 1, 2}, + // y: new int [] { 3, 1}, + // Name: "area" + // ), + // Chart.SplineArea<int,int,string>( + // x: new int [] { 3, 4, 5}, + // y: new int [] { 3, 1, 4}, + // Name: "splinearea" + // ), + // Chart.StackedArea<int,int,string>( + // x: new int [] { 6, 7}, + // y: new int [] { 3, 1}, + // Name: "stacked area 1" + // ), + // Chart.StackedArea<int,int,string>( + // x: new int [] { 6, 7}, + // y: new int [] { 3, 2}, + // Name: "stacked area 2" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "extended-scatter-derived", + // LegendGroupTitle: Plotly.NET.Title.init("extended scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Bar<int,string,string>( + // values: new int [] { 1,2 }, + // Keys: new string [] { "first", "second"}, + // Name: "bar" + // ), + // Chart.StackedBar<int,string,string>( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked bar 1" + // ), + // Chart.StackedBar<int,string,string>( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked bar 2" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "bar-and-derived-traces", + // LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Column<int,string,string>( + // values: new int [] { 3,4 }, + // Keys: new string [] { "first", "second"}, + // Name: "column" + // ), + // Chart.StackedColumn<int,string,string>( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked column 1" + // ), + // Chart.StackedColumn<int,string,string>( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked column 2" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "bar-and-derived-traces", + // LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Heatmap<int, int, int, string>( + // zData: new int [] [] + // { + // new int [] { 1,2,3}, + // new int [] { 2,1,2}, + // new int [] { 3,2,1} + // }, + // ShowScale: false, + // Name: "heatmap", + // ShowLegend: true + // ).WithTraceInfo( + // LegendGroup: "other-simple-2D", + // LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Image<string>( + // Source: @"data:image/gif;base64,R0lGODdhEAAQAMwAAPj7+FmhUYjNfGuxYYDJdYTIeanOpT+DOTuANXi/bGOrWj6CONzv2sPjv2CmV1unU4zPgI/Sg6DJnJ3ImTh8Mtbs00aNP1CZSGy0YqLEn47RgXW8amasW7XWsmmvX2iuXiwAAAAAEAAQAAAFVyAgjmRpnihqGCkpDQPbGkNUOFk6DZqgHCNGg2T4QAQBoIiRSAwBE4VA4FACKgkB5NGReASFZEmxsQ0whPDi9BiACYQAInXhwOUtgCUQoORFCGt/g4QAIQA7" + // ).WithTraceInfo( + // LegendGroup: "other-simple-2D", + // LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), - //2D distributions - Chart.Histogram<int,int,int>( - X: new int [] { 1,2,2,2,3,4,5,5 }, - MultiText: new int [] { 1,2,3,4,5,6,7}, - Name: "histogram" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Histogram2D<int,int,int>( - x: new int [] { 1,2,2,2,3,4,5,5 }, - y: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false, - ShowLegend: true, - Name: "histogram2D" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.BoxPlot<int,int,string>( - X: new int [] { 1,2,2,2,3,4,5,5 }, - Name: "Boxplot" - ), - Chart.Violin<int,int,string>( - X: new int [] { 1,2,2,2,3,4,5,5 }, - Name: "Violin" - ), - } - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Contour<int,int,int,string>( - zData: new int [] [] - { - new int [] { 1,2,3}, - new int [] { 2,1,2}, - new int [] { 3,2,1} - }, - ShowScale: false, - ShowLegend: true, - Name: "contour" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Histogram2DContour<int,int,int>( - x: new int [] { 1,2,2,2,3,4,5,5 }, - y: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false, - ShowLegend: true, - Name: "histogram2Dcontour" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.PointDensity<int,int>( - x: new int [] { 1,2,2,2,3,4,5,5 }, - y: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), + // //2D distributions + // Chart.Histogram<int,int,int>( + // X: new int [] { 1,2,2,2,3,4,5,5 }, + // MultiText: new int [] { 1,2,3,4,5,6,7}, + // Name: "histogram" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Histogram2D<int,int,int>( + // x: new int [] { 1,2,2,2,3,4,5,5 }, + // y: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false, + // ShowLegend: true, + // Name: "histogram2D" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.BoxPlot<int,int,string>( + // X: new int [] { 1,2,2,2,3,4,5,5 }, + // Name: "Boxplot" + // ), + // Chart.Violin<int,int,string>( + // X: new int [] { 1,2,2,2,3,4,5,5 }, + // Name: "Violin" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Contour<int,int,int,string>( + // zData: new int [] [] + // { + // new int [] { 1,2,3}, + // new int [] { 2,1,2}, + // new int [] { 3,2,1} + // }, + // ShowScale: false, + // ShowLegend: true, + // Name: "contour" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Histogram2DContour<int,int,int>( + // x: new int [] { 1,2,2,2,3,4,5,5 }, + // y: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false, + // ShowLegend: true, + // Name: "histogram2Dcontour" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.PointDensity<int,int>( + // x: new int [] { 1,2,2,2,3,4,5,5 }, + // y: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), - //2D Finance traces - Chart.OHLC<double,DateTime,string>( - open: new double [] {1.2, 2.7}, - high: new double [] {1.8, 8.5}, - low: new double [] {0.5, 0.1}, - close: new double [] {1.1, 2.9}, - x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, - Name: "ohlc" - ).WithXAxisRangeSlider( - rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( - Visible: false - )).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Candlestick<double,DateTime,string>( - open: new double [] {1.2, 2.7}, - high: new double [] {1.8, 8.5}, - low: new double [] {0.5, 0.1}, - close: new double [] {1.1, 2.9}, - x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, - Name: "candlestick" - ).WithXAxisRangeSlider( - rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( - Visible: false - )).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Waterfall<string, int, string>( - x: new string [] {"A", "B", "Net", "Purch", "Other", "Profit"}, - y: new int [] {60, 80, 0, -40, -20, 0}, - Measure: new Plotly.NET.StyleParam.WaterfallMeasure [] { - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Total, - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Total - }, - Name: "waterfall" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Funnel<double, string, string>( - x: new double [] { 1200, 909.4, 600.6, 300, 80 }, - y: new string[] { "A", "B", "C", "D", "E"}, - Name: "funnel" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.StackedFunnel<double, string, string>( - x: new double [] { 1200, 909.4}, - y: new string[] { "A", "B"}, - Name: "stackedfunnel 1" - ), - Chart.StackedFunnel<double, string, string>( - x: new double [] { 1200, 100.4,}, - y: new string[] { "A", "B"}, - Name: "stackedfunnel 2" - ), - } - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.FunnelArea<int, string, string>( - values: new int [] { 5, 4}, - MultiText: new string[] { "A", "B"}, - Name: "funnelarea" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Indicator<double>( - value: 200, - mode: Plotly.NET.StyleParam.IndicatorMode.NumberDeltaGauge, - DeltaReference: 160, - Name: "indicator" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), + // //2D Finance traces + // Chart.OHLC<double,DateTime,string>( + // open: new double [] {1.2, 2.7}, + // high: new double [] {1.8, 8.5}, + // low: new double [] {0.5, 0.1}, + // close: new double [] {1.1, 2.9}, + // x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, + // Name: "ohlc" + // ).WithXAxisRangeSlider( + // rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( + // Visible: false + // )).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Candlestick<double,DateTime,string>( + // open: new double [] {1.2, 2.7}, + // high: new double [] {1.8, 8.5}, + // low: new double [] {0.5, 0.1}, + // close: new double [] {1.1, 2.9}, + // x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, + // Name: "candlestick" + // ).WithXAxisRangeSlider( + // rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( + // Visible: false + // )).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Waterfall<string, int, string>( + // x: new string [] {"A", "B", "Net", "Purch", "Other", "Profit"}, + // y: new int [] {60, 80, 0, -40, -20, 0}, + // Measure: new Plotly.NET.StyleParam.WaterfallMeasure [] { + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Total, + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Total + // }, + // Name: "waterfall" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Funnel<double, string, string>( + // x: new double [] { 1200, 909.4, 600.6, 300, 80 }, + // y: new string[] { "A", "B", "C", "D", "E"}, + // Name: "funnel" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.StackedFunnel<double, string, string>( + // x: new double [] { 1200, 909.4}, + // y: new string[] { "A", "B"}, + // Name: "stackedfunnel 1" + // ), + // Chart.StackedFunnel<double, string, string>( + // x: new double [] { 1200, 100.4,}, + // y: new string[] { "A", "B"}, + // Name: "stackedfunnel 2" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.FunnelArea<int, string, string>( + // values: new int [] { 5, 4}, + // MultiText: new string[] { "A", "B"}, + // Name: "funnelarea" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Indicator<double>( + // value: 200, + // mode: Plotly.NET.StyleParam.IndicatorMode.NumberDeltaGauge, + // DeltaReference: 160, + // Name: "indicator" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), - //3D traces - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Scatter3D<int,int,int,string>( - x: new int[] { 1, 2 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - mode: Mode.Markers, - Name: "scatter3D" - ), - Chart.Point3D<int,int,int,string>( - x: new int[] { 3, 4 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - Name: "point3D" - ), - Chart.Line3D<int,int,int,string>( - x: new int[] { 5, 6 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - Name: "line3D" - ), - Chart.Bubble3D<int,int,int,string>( - x: new int[] { 7, 8 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - sizes: new int [] {30, 40}, - Name: "bubble3D" - ), - } - ).WithTraceInfo( - LegendGroup: "3D-scatter-derived", - LegendGroupTitle: Plotly.NET.Title.init("3D scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Surface<int,int,int,string>( - zData: new int [] [] - { - new int [] { 1, 2, 1 }, - new int [] { 1, 5, 1 }, - new int [] { 1, 2, 1 } - }, - ShowScale: false, - Name: "surface", - ShowLegend: true - ).WithTraceInfo( - LegendGroup: "3D-other", - LegendGroupTitle: Plotly.NET.Title.init("other 3D charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Mesh3D<int,int,int,int,int,int,string>( - x: new int [] { 0, 1, 2, 0 }, - y: new int [] { 0, 0, 1, 2 }, - z: new int [] { 0, 2, 0, 1 }, - ShowScale: false, - Name: "mesh3D", - ShowLegend: true - ), - Chart.Cone<int,int,int,int,int,int,string>( - x: new int [] { 0, 1, 2, 0 }, - y: new int [] { 0, 0, 1, 2 }, - z: new int [] { 0, 2, 0, 1 }, - u: new int [] { 0, 1, 2, 0 }, - v: new int [] { 0, 0, 1, 2 }, - w: new int [] { 0, 2, 0, 1 }, - ShowScale: false, - Name: "cone", - ShowLegend: true - ), - Chart.StreamTube<int,int,int,int,int,int,string>( - x: new int [] { 0, 0, 0 }, - y: new int [] { 0, 1, 2}, - z: new int [] { 0, 0, 0}, - u: new int [] { 0, 0, 0}, - v: new int [] { 1, 1, 1}, - w: new int [] { 0, 0, 0}, - ShowScale: false, - Name: "streamtube", - ShowLegend: true - ), - Chart.Volume<double,double,double,double,string,double>( - x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, - y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, - z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, - value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, - ShowScale: false, - Name: "volume", - ShowLegend: true - ), - Chart.IsoSurface<double,double,double,double,string>( - x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, - y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, - z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, - value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, - ShowScale: false, - Name: "isosurface", - ShowLegend: true - ), + // //3D traces + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Scatter3D<int,int,int,string>( + // x: new int[] { 1, 2 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // mode: Mode.Markers, + // Name: "scatter3D" + // ), + // Chart.Point3D<int,int,int,string>( + // x: new int[] { 3, 4 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // Name: "point3D" + // ), + // Chart.Line3D<int,int,int,string>( + // x: new int[] { 5, 6 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // Name: "line3D" + // ), + // Chart.Bubble3D<int,int,int,string>( + // x: new int[] { 7, 8 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // sizes: new int [] {30, 40}, + // Name: "bubble3D" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "3D-scatter-derived", + // LegendGroupTitle: Plotly.NET.Title.init("3D scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Surface<int,int,int,string>( + // zData: new int [] [] + // { + // new int [] { 1, 2, 1 }, + // new int [] { 1, 5, 1 }, + // new int [] { 1, 2, 1 } + // }, + // ShowScale: false, + // Name: "surface", + // ShowLegend: true + // ).WithTraceInfo( + // LegendGroup: "3D-other", + // LegendGroupTitle: Plotly.NET.Title.init("other 3D charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Mesh3D<int,int,int,int,int,int,string>( + // x: new int [] { 0, 1, 2, 0 }, + // y: new int [] { 0, 0, 1, 2 }, + // z: new int [] { 0, 2, 0, 1 }, + // ShowScale: false, + // Name: "mesh3D", + // ShowLegend: true + // ), + // Chart.Cone<int,int,int,int,int,int,string>( + // x: new int [] { 0, 1, 2, 0 }, + // y: new int [] { 0, 0, 1, 2 }, + // z: new int [] { 0, 2, 0, 1 }, + // u: new int [] { 0, 1, 2, 0 }, + // v: new int [] { 0, 0, 1, 2 }, + // w: new int [] { 0, 2, 0, 1 }, + // ShowScale: false, + // Name: "cone", + // ShowLegend: true + // ), + // Chart.StreamTube<int,int,int,int,int,int,string>( + // x: new int [] { 0, 0, 0 }, + // y: new int [] { 0, 1, 2}, + // z: new int [] { 0, 0, 0}, + // u: new int [] { 0, 0, 0}, + // v: new int [] { 1, 1, 1}, + // w: new int [] { 0, 0, 0}, + // ShowScale: false, + // Name: "streamtube", + // ShowLegend: true + // ), + // Chart.Volume<double,double,double,double,string,double>( + // x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, + // y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, + // z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, + // value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, + // ShowScale: false, + // Name: "volume", + // ShowLegend: true + // ), + // Chart.IsoSurface<double,double,double,double,string>( + // x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, + // y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, + // z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, + // value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, + // ShowScale: false, + // Name: "isosurface", + // ShowLegend: true + // ), - //polar traces - Chart.ScatterPolar<int,int,string>( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - mode: Mode.Markers, - Name: "scatterpolar" - ), - Chart.PointPolar<int,int,string>( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "pointpolar" - ), - Chart.LinePolar<int,int,string>( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "linepolar" - ), - Chart.SplinePolar<int,int,string>( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "splinepolar" - ), - Chart.BubblePolar<int,int,string>( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - sizes: new int [] { 10, 30, 15, 40 }, - Name: "bubblepolar" - ), - Chart.BarPolar<int,int,string>( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "barpolar" - ), - Chart.Invisible(), + // //polar traces + // Chart.ScatterPolar<int,int,string>( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // mode: Mode.Markers, + // Name: "scatterpolar" + // ), + // Chart.PointPolar<int,int,string>( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "pointpolar" + // ), + // Chart.LinePolar<int,int,string>( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "linepolar" + // ), + // Chart.SplinePolar<int,int,string>( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "splinepolar" + // ), + // Chart.BubblePolar<int,int,string>( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // sizes: new int [] { 10, 30, 15, 40 }, + // Name: "bubblepolar" + // ), + // Chart.BarPolar<int,int,string>( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "barpolar" + // ), + // Chart.Invisible(), - //geo/mapbox traces - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.ScatterGeo<int,int,string>( - longitudes: new int [] { 1, 20 }, - latitudes: new int [] { 1, 40 }, - mode: Mode.Markers, - Name: "scattergeo" - ), - Chart.PointGeo<int,int,string>( - longitudes: new int [] { 40, 50 }, - latitudes: new int [] { 60, 70 }, - Name: "pointgeo" - ), - Chart.LineGeo<int,int,string>( - longitudes: new int [] { 10, -100}, - latitudes: new int [] { 50, 50 }, - Name: "linegeo" - ), - Chart.BubbleGeo<int,int,string>( - longitudes: new int [] { 80, -80}, - latitudes: new int [] { 20, -20 }, - sizes: new int [] { 10, 20 }, - Name: "bubblegeo" - ), - } - ).WithTraceInfo( - LegendGroup: "scattergeo-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattergeo derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.ChoroplethMap<int, string>( - locations: new string [] {"USA", "Germany", "Australia"}, - z: new int [] {1, 2, 3}, - LocationMode: LocationFormat.CountryNames, - ShowScale: false, - ShowLegend: true, - Name: "choropleth" - ).WithTraceInfo( - LegendGroup: "other-geo", - LegendGroupTitle: Plotly.NET.Title.init("other geo charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.ScatterMapbox<int,int,string>( - longitudes: new int [] { 1, 2 }, - latitudes: new int [] { 1, 2 }, - mode: Mode.Markers, - Name: "scattermapbox" - ), - Chart.PointMapbox<int,int,string>( - longitudes: new int [] { 10, 11 }, - latitudes: new int [] { 10, 11 }, - Name: "pointmapbox" - ), - Chart.LineMapbox<int,int,string>( - longitudes: new int [] { -1, 11}, - latitudes: new int [] { 11, 1 }, - Name: "linemapbox" - ), - Chart.BubbleMapbox<int,int,string>( - longitudes: new int [] { 22, -11}, - latitudes: new int [] { 5, 5 }, - sizes: new int [] { 10, 20 }, - Name: "bubblemapbox" - ), - } - ).WithMapboxStyle( - Style: MapboxStyle.OpenStreetMap, - Id: 38 - ).WithTraceInfo( - LegendGroup: "scattermapbox-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattermapbox derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.DensityMapbox<int,int,int,string>( - longitudes: new int [] { 1,2,2,2,3,4,5,5 }, - latitudes: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false - ).WithMapboxStyle( - Style: MapboxStyle.OpenStreetMap, - Id: 39 - ).WithTraceInfo( - LegendGroup: "other-mapbox", - LegendGroupTitle: Plotly.NET.Title.init("other mapbox charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), - Chart.Invisible(), - Chart.Invisible(), + // //geo/mapbox traces + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.ScatterGeo<int,int,string>( + // longitudes: new int [] { 1, 20 }, + // latitudes: new int [] { 1, 40 }, + // mode: Mode.Markers, + // Name: "scattergeo" + // ), + // Chart.PointGeo<int,int,string>( + // longitudes: new int [] { 40, 50 }, + // latitudes: new int [] { 60, 70 }, + // Name: "pointgeo" + // ), + // Chart.LineGeo<int,int,string>( + // longitudes: new int [] { 10, -100}, + // latitudes: new int [] { 50, 50 }, + // Name: "linegeo" + // ), + // Chart.BubbleGeo<int,int,string>( + // longitudes: new int [] { 80, -80}, + // latitudes: new int [] { 20, -20 }, + // sizes: new int [] { 10, 20 }, + // Name: "bubblegeo" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "scattergeo-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattergeo derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.ChoroplethMap<int, string>( + // locations: new string [] {"USA", "Germany", "Australia"}, + // z: new int [] {1, 2, 3}, + // LocationMode: LocationFormat.CountryNames, + // ShowScale: false, + // ShowLegend: true, + // Name: "choropleth" + // ).WithTraceInfo( + // LegendGroup: "other-geo", + // LegendGroupTitle: Plotly.NET.Title.init("other geo charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.ScatterMapbox<int,int,string>( + // longitudes: new int [] { 1, 2 }, + // latitudes: new int [] { 1, 2 }, + // mode: Mode.Markers, + // Name: "scattermapbox" + // ), + // Chart.PointMapbox<int,int,string>( + // longitudes: new int [] { 10, 11 }, + // latitudes: new int [] { 10, 11 }, + // Name: "pointmapbox" + // ), + // Chart.LineMapbox<int,int,string>( + // longitudes: new int [] { -1, 11}, + // latitudes: new int [] { 11, 1 }, + // Name: "linemapbox" + // ), + // Chart.BubbleMapbox<int,int,string>( + // longitudes: new int [] { 22, -11}, + // latitudes: new int [] { 5, 5 }, + // sizes: new int [] { 10, 20 }, + // Name: "bubblemapbox" + // ), + // } + // ).WithMapboxStyle( + // Style: MapboxStyle.OpenStreetMap, + // Id: 38 + // ).WithTraceInfo( + // LegendGroup: "scattermapbox-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattermapbox derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.DensityMapbox<int,int,int,string>( + // longitudes: new int [] { 1,2,2,2,3,4,5,5 }, + // latitudes: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false + // ).WithMapboxStyle( + // Style: MapboxStyle.OpenStreetMap, + // Id: 39 + // ).WithTraceInfo( + // LegendGroup: "other-mapbox", + // LegendGroupTitle: Plotly.NET.Title.init("other mapbox charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), + // Chart.Invisible(), + // Chart.Invisible(), - //ternary traces - Chart.ScatterTernary<int,int,int,IConvertible,string>( - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "scatterternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.PointTernary<int,int,int,int,string>( - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "pointternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.LineTernary<int,int,int,int,string>( - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "lineternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.BubbleTernary<int,int,int,int,string>( - sizes: new int [] {30, 40}, - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "bubbleternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), - Chart.Invisible(), - Chart.Invisible(), + // //ternary traces + // Chart.ScatterTernary<int,int,int,IConvertible,string>( + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "scatterternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.PointTernary<int,int,int,int,string>( + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "pointternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.LineTernary<int,int,int,int,string>( + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "lineternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.BubbleTernary<int,int,int,int,string>( + // sizes: new int [] {30, 40}, + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "bubbleternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), + // Chart.Invisible(), + // Chart.Invisible(), - //carpet traces - Chart.Carpet<double,double,double,double,double,double>( - carpetId: "carpet1", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0}, - Name:"carpet", - ShowLegend: true - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet<double,double,double,double,double,double>( - carpetId: "carpet2", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.ScatterCarpet<int, int, string>( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet2", - mode: Mode.Markers, - Name: "scattercarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet<double,double,double,double,double,double>( - carpetId: "carpet3", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.PointCarpet<int, int, string>( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet3", - Name: "pointcarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet<double,double,double,double,double,double>( - carpetId: "carpet4", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.LineCarpet<int, int, string>( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet4", - Name: "linecarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet<double,double,double,double,double,double>( - carpetId: "carpet5", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.SplineCarpet<int, int, string>( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet5", - Name: "splinecarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet<double,double,double,double,double,double>( - carpetId: "carpet6", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.BubbleCarpet<int, int, string>( - sizes: new int [] {10, 20, 30, 40}, - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet6", - Name: "bubblecarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet<double,double,double,double,double,double>( - carpetId: "carpet7", - A: new double [] { 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0}, - B: new double[] { 4.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0, 6.0}, - X: new double[] { 2.0, 3.0, 4.0, 5.0, 2.2, 3.1, 4.1, 5.1, 1.5, 2.5, 3.5, 4.5}, - Y: new double [] { 1.0, 1.4, 1.6, 1.75, 2.0, 2.5, 2.7, 2.75, 3.0, 3.5, 3.7, 3.75} - ), - Chart.ContourCarpet<double,int,int,string>( - z: new double [] { 1.0, 1.96, 2.56, 3.0625, 4.0, 5.0625, 1.0, 7.5625, 9.0, 12.25, 15.21, 14.0625 }, - carpetAnchorId: "carpet7", - A: new int [] { 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}, - B: new int[] { 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6}, - ShowScale: false, - ShowLegend: true, - Name: "contourcarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "carpet-other", - LegendGroupTitle: Plotly.NET.Title.init("other carpet traces", Font: Plotly.NET.Font.init(Size: 20)) - ), + // //carpet traces + // Chart.Carpet<double,double,double,double,double,double>( + // carpetId: "carpet1", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0}, + // Name:"carpet", + // ShowLegend: true + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet<double,double,double,double,double,double>( + // carpetId: "carpet2", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.ScatterCarpet<int, int, string>( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet2", + // mode: Mode.Markers, + // Name: "scattercarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet<double,double,double,double,double,double>( + // carpetId: "carpet3", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.PointCarpet<int, int, string>( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet3", + // Name: "pointcarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet<double,double,double,double,double,double>( + // carpetId: "carpet4", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.LineCarpet<int, int, string>( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet4", + // Name: "linecarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet<double,double,double,double,double,double>( + // carpetId: "carpet5", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.SplineCarpet<int, int, string>( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet5", + // Name: "splinecarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet<double,double,double,double,double,double>( + // carpetId: "carpet6", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.BubbleCarpet<int, int, string>( + // sizes: new int [] {10, 20, 30, 40}, + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet6", + // Name: "bubblecarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet<double,double,double,double,double,double>( + // carpetId: "carpet7", + // A: new double [] { 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0}, + // B: new double[] { 4.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0, 6.0}, + // X: new double[] { 2.0, 3.0, 4.0, 5.0, 2.2, 3.1, 4.1, 5.1, 1.5, 2.5, 3.5, 4.5}, + // Y: new double [] { 1.0, 1.4, 1.6, 1.75, 2.0, 2.5, 2.7, 2.75, 3.0, 3.5, 3.7, 3.75} + // ), + // Chart.ContourCarpet<double,int,int,string>( + // z: new double [] { 1.0, 1.96, 2.56, 3.0625, 4.0, 5.0625, 1.0, 7.5625, 9.0, 12.25, 15.21, 14.0625 }, + // carpetAnchorId: "carpet7", + // A: new int [] { 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}, + // B: new int[] { 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6}, + // ShowScale: false, + // ShowLegend: true, + // Name: "contourcarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "carpet-other", + // LegendGroupTitle: Plotly.NET.Title.init("other carpet traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), - //domain traces - Chart.Pie<double,string,string>( - values: new double [] {69, 420}, - Labels: new string [] {"A", "B"}, - Name: "pie" - ), - Chart.Sunburst<string, string, int, string, string>( - Values: new int [] {19, 26, 55}, - labels: new string [] {"A", "B", "C"}, - parents: new string [] {"", "", "B"}, - Name: "sunburst" - ), - Chart.Treemap<string, string, int, string, string>( - Values: new int [] {19, 26, 55}, - labels: new string [] {"A", "B", "C"}, - parents: new string [] {"", "", "B"}, - Name: "treemap" - ), - Chart.ParallelCoord( - dimensions: new Plotly.NET.TraceObjects.Dimension [] { - Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "A", Values: new int [] {1, 4, 3}), - Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "B", Values: new int [] {3, 1, 2}) - }, - Name: "parcoords" - ), - Chart.ParallelCategories( - dimensions: new Plotly.NET.TraceObjects.Dimension [] { - Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "A", Values: new int [] {1, 1, 2}), - Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "B", Values: new int [] {3, 3, 3}) - }, - Name: "parcats" - ), - Chart.Sankey<string>( - nodes: Plotly.NET.TraceObjects.SankeyNodes.init<string, int [], string, string>( - Label: new string [] {"A", "B", "C", "D"} - ), - links: Plotly.NET.TraceObjects.SankeyLinks.init<string, int>( - Source: new int [] {0, 1, 1 }, - Target: new int [] {2, 2, 3 }, - Value: new int [] {1, 2, 5} - ) - ), - Chart.Icicle<string, string, int, string, string>( - Values: new int [] {19, 26, 55}, - labels: new string [] {"A", "B", "C"}, - parents: new string [] {"", "", "B"}, - Name: "icicle" - ), + // //domain traces + // Chart.Pie<double,string,string>( + // values: new double [] {69, 420}, + // Labels: new string [] {"A", "B"}, + // Name: "pie" + // ), + // Chart.Sunburst<string, string, int, string, string>( + // Values: new int [] {19, 26, 55}, + // labels: new string [] {"A", "B", "C"}, + // parents: new string [] {"", "", "B"}, + // Name: "sunburst" + // ), + // Chart.Treemap<string, string, int, string, string>( + // Values: new int [] {19, 26, 55}, + // labels: new string [] {"A", "B", "C"}, + // parents: new string [] {"", "", "B"}, + // Name: "treemap" + // ), + // Chart.ParallelCoord( + // dimensions: new Plotly.NET.TraceObjects.Dimension [] { + // Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "A", Values: new int [] {1, 4, 3}), + // Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "B", Values: new int [] {3, 1, 2}) + // }, + // Name: "parcoords" + // ), + // Chart.ParallelCategories( + // dimensions: new Plotly.NET.TraceObjects.Dimension [] { + // Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "A", Values: new int [] {1, 1, 2}), + // Plotly.NET.TraceObjects.Dimension.initParallel<string, string, int, int>(Label: "B", Values: new int [] {3, 3, 3}) + // }, + // Name: "parcats" + // ), + // Chart.Sankey<string>( + // nodes: Plotly.NET.TraceObjects.SankeyNodes.init<string, int [], string, string>( + // Label: new string [] {"A", "B", "C", "D"} + // ), + // links: Plotly.NET.TraceObjects.SankeyLinks.init<string, int>( + // Source: new int [] {0, 1, 1 }, + // Target: new int [] {2, 2, 3 }, + // Value: new int [] {1, 2, 5} + // ) + // ), + // Chart.Icicle<string, string, int, string, string>( + // Values: new int [] {19, 26, 55}, + // labels: new string [] {"A", "B", "C"}, + // parents: new string [] {"", "", "B"}, + // Name: "icicle" + // ), - //smith traces - Chart.ScatterSmith<double,double,string>( - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - mode: Mode.Markers, - Name: "scattersmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.PointSmith<double,double,string>( - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - Name: "pointsmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.LineSmith<double,double,string>( - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - Name: "linesmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.BubbleSmith<double,double,string>( - sizes: new int [] {10, 20, 30, 40}, - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - Name: "bubblesmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), - Chart.Invisible(), - Chart.Invisible() - } - ) - .WithSize(1600, 2200) - .Show(); + // //smith traces + // Chart.ScatterSmith<double,double,string>( + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // mode: Mode.Markers, + // Name: "scattersmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.PointSmith<double,double,string>( + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // Name: "pointsmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.LineSmith<double,double,string>( + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // Name: "linesmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.BubbleSmith<double,double,string>( + // sizes: new int [] {10, 20, 30, 40}, + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // Name: "bubblesmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), + // Chart.Invisible(), + // Chart.Invisible() + // } + //) + //.WithSize(1600, 2200) + //.Show(); } } } diff --git a/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj b/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj index 8ca3ea8e8..7fca73969 100644 --- a/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj +++ b/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <WarnOn>3390;$(WarnOn)</WarnOn> <IsPackable>false</IsPackable> </PropertyGroup> @@ -15,6 +15,7 @@ <PackageReference Include="Deedle" Version="3.0.0" /> <ProjectReference Include="..\..\..\src\Plotly.NET\Plotly.NET.fsproj" /> <ProjectReference Include="..\..\..\src\Plotly.NET.ImageExport\Plotly.NET.ImageExport.fsproj" /> + <ProjectReference Include="..\..\Common\FSharpTestBase\FSharpTestBase.fsproj" /> </ItemGroup> </Project> diff --git a/tests/ConsoleApps/FSharpConsole/Program.fs b/tests/ConsoleApps/FSharpConsole/Program.fs index 09bf2e520..ef6f626db 100644 --- a/tests/ConsoleApps/FSharpConsole/Program.fs +++ b/tests/ConsoleApps/FSharpConsole/Program.fs @@ -11,22 +11,8 @@ open Newtonsoft.Json [<EntryPoint>] let main args = - let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ] - let y = [2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1.] - [ - Chart.Point(x = x, y = y, UseDefaults = false) - |> Chart.withYAxisStyle("This title must") - - Chart.Line(x = x, y = y, UseDefaults = false) - |> Chart.withYAxisStyle("be set on the",ZeroLine=false) - - Chart.Spline(x = x, y = y, UseDefaults = false) - |> Chart.withYAxisStyle("respective subplots",ZeroLine=false) - ] - |> Chart.SingleStack(Pattern = StyleParam.LayoutGridPattern.Coupled) - //move xAxis to bottom and increase spacing between plots by using the withLayoutGridStyle function - |> Chart.withLayoutGridStyle(XSide=StyleParam.LayoutGridXSide.Bottom,YGap= 0.1) - |> Chart.withTitle("Hi i am the new SingleStackChart") - |> Chart.withXAxisStyle("im the shared xAxis") + + ChartDomainTestCharts.Sankey.``Styled sankey chart`` + |> Chart.show 0 \ No newline at end of file diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart2DAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart2DAPITest.cs deleted file mode 100644 index b779683af..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart2DAPITest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class Chart2DAPITest - { - private static readonly int[] x = new [] { 1, 2 }; - private static readonly int[] y = new [] { 1, 2 }; - private static readonly Tuple<int, int>[] xy = x.Zip(y).Select(c => new Tuple<int, int>(c.Item1, c.Item2)).ToArray(); - - [Fact] public void Scatter1() - => Chart2D.Chart.Scatter<int, int, int>(x, y, StyleParam.Mode.Lines); - - [Fact] public void Scatter2() - => Chart2D.Chart.Scatter<int, int, int>(xy, StyleParam.Mode.Lines); - - [Fact] public void Point1() - => Chart2D.Chart.Point<int, int, int>(x, y); - - [Fact] public void Point2() - => Chart2D.Chart.Point<int, int, int>(xy); - - [Fact] public void Line1() - => Chart2D.Chart.Line<int, int, int>(x, y); - - [Fact] public void Line2() - => Chart2D.Chart.Line<int, int, int>(xy); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart3DAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart3DAPITest.cs deleted file mode 100644 index 2c9520982..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart3DAPITest.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class Chart3DAPITest - { - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - private static readonly int[] z = new[] { 1, 2 }; - private static readonly Tuple<int, int, int>[] xyz = x.Zip(y).Zip(z).Select(c => new Tuple<int, int, int>(c.Item1.First, c.Item1.Second, c.Item2)).ToArray(); - - [Fact] public void Scatter3d1() - => Chart3D.Chart.Scatter3D<int, int, int, int>(x, y, z, StyleParam.Mode.Lines); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartDomainAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartDomainAPITest.cs deleted file mode 100644 index efb5d6725..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartDomainAPITest.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class ChartDomainAPITest - { - public int[][] xofy = new [] { new [] { 1, 2 }, new [] { 1, 2 } }; - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - - [Fact] - public void Table() - => ChartDomain.Chart.Table<int[], int, int[], int>(xofy, xofy); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartMapAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartMapAPITest.cs deleted file mode 100644 index f6c1d9f28..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartMapAPITest.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class ChartMapAPITest - { - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - private static readonly int[] z = new[] { 1, 2 }; - private static readonly Tuple<int, int, int>[] xyz = x.Zip(y).Zip(z).Select(c => new Tuple<int, int, int>(c.Item1.First, c.Item1.Second, c.Item2)).ToArray(); - private static readonly Tuple<int, int>[] xy = x.Zip(y).Select(c => new Tuple<int, int>(c.Item1, c.Item2)).ToArray(); - - [Fact] - public void DensityMapBox() - => ChartMap.Chart.DensityMapbox<int, int, int, int>(x, y); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartPolarAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartPolarAPITest.cs deleted file mode 100644 index d99fd125d..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartPolarAPITest.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class ChartPolarAPITest - { - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - private static readonly int[] z = new[] { 1, 2 }; - private static readonly Tuple<int, int, int>[] xyz = x.Zip(y).Zip(z).Select(c => new Tuple<int, int, int>(c.Item1.First, c.Item1.Second, c.Item2)).ToArray(); - private static readonly Tuple<int, int>[] xy = x.Zip(y).Select(c => new Tuple<int, int>(c.Item1, c.Item2)).ToArray(); - - [Fact] - public void ScatterPlotter() - => ChartPolar.Chart.ScatterPolar<int, int, int>(xy, StyleParam.Mode.Lines); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj b/tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj deleted file mode 100644 index 04387c08b..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj +++ /dev/null @@ -1,25 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> - <IsPackable>false</IsPackable> - </PropertyGroup> - - <ItemGroup> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" /> - <PackageReference Include="xunit" Version="2.4.1" /> - <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> - <PrivateAssets>all</PrivateAssets> - </PackageReference> - <PackageReference Include="coverlet.collector" Version="3.0.2"> - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> - <PrivateAssets>all</PrivateAssets> - </PackageReference> - </ItemGroup> - - <ItemGroup> - <ProjectReference Include="..\..\..\src\Plotly.NET\Plotly.NET.fsproj" /> - </ItemGroup> - -</Project> diff --git a/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs b/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs deleted file mode 100644 index b2081b67b..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using Xunit; -using Plotly.NET; -using Plotly.NET.LayoutObjects; -using Microsoft.FSharp.Core; - -namespace Plotly.NET.Tests.CSharp -{ - public class LayoutObjectTests - { - [Fact] - public void OptionalArgumentsAndDynamicSettingAreEqual() - { - var actual = LinearAxis.init<IConvertible, IConvertible, IConvertible, IConvertible, IConvertible, IConvertible, IConvertible, IConvertible>(Color: Color.fromString("red"), AxisType: StyleParam.AxisType.Linear); - - var expected = new LinearAxis(); - expected.SetValue("color", Color.fromString("red")); - expected.SetValue("type", StyleParam.AxisType.Linear.Convert()); - - Assert.Equal(expected.GetProperties(true), actual.GetProperties(true)); - } - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/StyleParamTests.cs b/tests/CoreTests/CSharpInteroperabilityTests/StyleParamTests.cs deleted file mode 100644 index 41c78cd7d..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/StyleParamTests.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using Xunit; -using Plotly.NET; - -namespace Plotly.NET.Tests.CSharp -{ - public class StyleParamTests - { - [Fact] - public void CanUseToString() - { - var actual = StyleParam.Fill.ToSelf.ToString(); - Assert.Equal("toself", actual); - } - [Fact] - public void CanUseConvert() - { - var actual = StyleParam.Fill.ToNext.Convert(); - object expected = "tonext"; - Assert.Equal(expected, actual); - } - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/TraceObjectTests.cs b/tests/CoreTests/CSharpInteroperabilityTests/TraceObjectTests.cs deleted file mode 100644 index 5c662292a..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/TraceObjectTests.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using Xunit; -using Plotly.NET; - - -namespace Plotly.NET.Tests.CSharp -{ - class TraceObjecttests - { - } -} diff --git a/tests/CoreTests/CoreTests/ConfigObjects/Config.fs b/tests/CoreTests/CoreTests/ConfigObjects/Config.fs index 26a6a0bf4..8ed2176b3 100644 --- a/tests/CoreTests/CoreTests/ConfigObjects/Config.fs +++ b/tests/CoreTests/CoreTests/ConfigObjects/Config.fs @@ -122,20 +122,20 @@ let ``Config API tests`` = testList "ConfigObjects.Config API" [ testCase "combine ModeBarButtonsToRemove" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<string>>("modeBarButtonsToRemove")).Value - (expectedCombined.TryGetTypedValue<seq<string>>("modeBarButtonsToRemove")).Value + (combined.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToRemove")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToRemove")).Value "Config.combine did not return the correct object" ) testCase "combine ModeBarButtonsToAdd" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<string>>("modeBarButtonsToAdd")).Value - (expectedCombined.TryGetTypedValue<seq<string>>("modeBarButtonsToAdd")).Value + (combined.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToAdd")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<string>>("modeBarButtonsToAdd")).Value "Config.combine did not return the correct object" ) testCase "combine ModeBarButtons" (fun _ -> Expect.sequenceEqual - (Seq.concat (combined.TryGetTypedValue<seq<seq<string>>>("modeBarButtons")).Value) - (Seq.concat (expectedCombined.TryGetTypedValue<seq<seq<string>>>("modeBarButtons")).Value) + (Seq.concat (combined.TryGetTypedPropertyValue<seq<seq<string>>>("modeBarButtons")).Value) + (Seq.concat (expectedCombined.TryGetTypedPropertyValue<seq<seq<string>>>("modeBarButtons")).Value) "Config.combine did not return the correct object" ) ] \ No newline at end of file diff --git a/tests/CoreTests/CoreTests/CoreTests.fsproj b/tests/CoreTests/CoreTests/CoreTests.fsproj index 3466c51c4..45a40e2e9 100644 --- a/tests/CoreTests/CoreTests/CoreTests.fsproj +++ b/tests/CoreTests/CoreTests/CoreTests.fsproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <GenerateProgramFile>false</GenerateProgramFile> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs b/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs index bcb68542f..59619a44b 100644 --- a/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs +++ b/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs @@ -5,6 +5,7 @@ open Plotly.NET open Plotly.NET.LayoutObjects open Plotly.NET.TraceObjects +open TestUtils open TestUtils.HtmlCodegen open Grid_SubPlotTitles_TestCharts @@ -14,8 +15,8 @@ module ``Add logic for positioning subplot titles in LayoutGrid #388`` = let ``Add subplot titles`` = testList "FeatureAddition.Add subplot titles in LayoutGrid" [ test "cartesian 2x2 grid data" { - """var data = [{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x","yaxis":"y"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x2","yaxis":"y2"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x3","yaxis":"y3"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x4","yaxis":"y4"}];""" - |> chartGeneratedContains ``Add logic for positioning subplot titles in LayoutGrid #388``.``cartesian 2x2 grid with subplot titles`` + ``Add logic for positioning subplot titles in LayoutGrid #388``.``cartesian 2x2 grid with subplot titles`` + |> JsonGen.tracesJsonIs """[{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x","yaxis":"y"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x2","yaxis":"y2"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x3","yaxis":"y3"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x4","yaxis":"y4"}]""" } test "cartesian 2x2 grid layout" { """var layout = {"xaxis":{},"yaxis":{},"xaxis2":{},"yaxis2":{},"xaxis3":{},"yaxis3":{},"xaxis4":{},"yaxis4":{},"annotations":[{"x":0.22222222222222224,"y":1.0,"showarrow":false,"text":"1,1","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"},{"x":0.7777777777777778,"y":1.0,"showarrow":false,"text":"1,2","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"},{"x":0.22222222222222224,"y":0.4117647058823529,"showarrow":false,"text":"2,1","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"},{"x":0.7777777777777778,"y":0.4117647058823529,"showarrow":false,"text":"2,2","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"}],"grid":{"rows":2,"columns":2,"roworder":"top to bottom","pattern":"independent"}};""" diff --git a/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs b/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs index 27a5ee801..61c1a03b7 100644 --- a/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs +++ b/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs @@ -6,6 +6,7 @@ open Plotly.NET.LayoutObjects open Plotly.NET.TraceObjects +open TestUtils open TestUtils.HtmlCodegen open ChartDomainTestCharts @@ -155,8 +156,8 @@ module Sankey = testList "HTMLCodegen.ChartDomain" [ testList "Sankey" [ testCase "Sankey data" ( fun () -> - """var data = [{"type":"sankey","node":{"label":["A1","A2","B1","B2","C1","C2","D1"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0}},"link":{"color":["rgba(130, 139, 251, 1.0)","rgba(130, 139, 251, 1.0)","rgba(242, 119, 98, 1.0)","rgba(51, 214, 171, 1.0)","rgba(188, 130, 251, 1.0)","rgba(188, 130, 251, 1.0)","rgba(255, 180, 123, 1.0)","rgba(71, 220, 245, 1.0)"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0},"source":[0,0,1,2,3,3,4,5],"target":[2,3,3,4,4,5,6,6],"value":[8,4,2,7,3,2,5,2]}}];""" - |> chartGeneratedContains Sankey.``Styled sankey chart`` + Sankey.``Styled sankey chart`` + |> JsonGen.tracesJsonIs """[{"type":"sankey","node":{"label":["A1","A2","B1","B2","C1","C2","D1"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0}},"link":{"color":["rgba(130, 139, 251, 1.0)","rgba(130, 139, 251, 1.0)","rgba(242, 119, 98, 1.0)","rgba(51, 214, 171, 1.0)","rgba(188, 130, 251, 1.0)","rgba(188, 130, 251, 1.0)","rgba(255, 180, 123, 1.0)","rgba(71, 220, 245, 1.0)"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0},"source":[0,0,1,2,3,3,4,5],"target":[2,3,3,4,4,5,6,6],"value":[8,4,2,7,3,2,5,2]}}]""" ) testCase "Sankey layout" ( fun () -> emptyLayout Sankey.``Styled sankey chart`` diff --git a/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs b/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs index 6d4cf0ba5..cf648f0dd 100644 --- a/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs +++ b/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs @@ -204,44 +204,44 @@ let ``Layout combine API tests`` = testList "LayoutObjects.Layout API" [ testCase "combine Annotations" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<Annotation>>("annotations")).Value - (expectedCombined.TryGetTypedValue<seq<Annotation>>("annotations")).Value + (combined.TryGetTypedPropertyValue<seq<Annotation>>("annotations")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<Annotation>>("annotations")).Value "Layout.combine did not return the correct object" ) testCase "combine Shapes" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<Shape>>("shapes")).Value - (expectedCombined.TryGetTypedValue<seq<Shape>>("shapes")).Value + (combined.TryGetTypedPropertyValue<seq<Shape>>("shapes")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<Shape>>("shapes")).Value "Layout.combine did not return the correct object" ) testCase "combine Selections" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<Selection>>("selections")).Value - (expectedCombined.TryGetTypedValue<seq<Selection>>("selections")).Value + (combined.TryGetTypedPropertyValue<seq<Selection>>("selections")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<Selection>>("selections")).Value "Layout.combine did not return the correct object" ) testCase "combine Images" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<LayoutImage>>("images")).Value - (expectedCombined.TryGetTypedValue<seq<LayoutImage>>("images")).Value + (combined.TryGetTypedPropertyValue<seq<LayoutImage>>("images")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<LayoutImage>>("images")).Value "Layout.combine did not return the correct object" ) testCase "combine Sliders" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<Slider>>("sliders")).Value - (expectedCombined.TryGetTypedValue<seq<Slider>>("sliders")).Value + (combined.TryGetTypedPropertyValue<seq<Slider>>("sliders")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<Slider>>("sliders")).Value "Layout.combine did not return the correct object" ) testCase "combine HiddenLabels" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<string>>("hiddenlabels")).Value - (expectedCombined.TryGetTypedValue<seq<string>>("hiddenlabels")).Value + (combined.TryGetTypedPropertyValue<seq<string>>("hiddenlabels")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<string>>("hiddenlabels")).Value "Layout.combine did not return the correct object" ) testCase "combine UpdateMenus" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue<seq<UpdateMenu>>("updatemenus")).Value - (expectedCombined.TryGetTypedValue<seq<UpdateMenu>>("updatemenus")).Value + (combined.TryGetTypedPropertyValue<seq<UpdateMenu>>("updatemenus")).Value + (expectedCombined.TryGetTypedPropertyValue<seq<UpdateMenu>>("updatemenus")).Value "Layout.combine did not return the correct object" ) ] diff --git a/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs b/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs index 2693b4c20..fbc0b9756 100644 --- a/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs +++ b/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs @@ -87,7 +87,7 @@ let ``TraceStyle tests`` = ) let colorAxisAnchor = StyleParam.SubPlotId.ColorAxis 69 - let colorAxisAnchorTrace = Trace2D.initScatter(Trace2DStyle.Heatmap(ColorAxis = colorAxisAnchor)) + let colorAxisAnchorTrace = Trace2D.initHeatmap(Trace2DStyle.Heatmap(ColorAxis = colorAxisAnchor)) testCase "getColorAxisAnchor" (fun _ -> Expect.equal diff --git a/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj b/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj index 74d9efef1..331b3d9da 100644 --- a/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj +++ b/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj @@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs b/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs index 89fbd3106..108789a1f 100644 --- a/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs +++ b/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs @@ -7,7 +7,7 @@ namespace Plotly.NET.CSharp.Tests { public class ExtensionMethodsTests { - internal GenericChart chart = Chart2D.Chart.Point<double, double, string>(x: new double[] { 1, 2 }, y: new double[] { 5, 10 }, UseDefaults: false); + internal GenericChart chart = Chart.Point<double, double, string>(x: new double[] { 1, 2 }, y: new double[] { 5, 10 }, UseDefaults: false); [Fact] public void CanUseCSharpExtensionMethod() @@ -18,7 +18,7 @@ public void CanUseCSharpExtensionMethod() .GetTraces() [0]; - Assert.Equal("Trace Name", DynamicObj.DynamicObj.GetValue(actual,"name")); + Assert.Equal("Trace Name", actual.GetPropertyValue("name")); } [Fact] diff --git a/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs b/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs index 27526538f..0a9f62f85 100644 --- a/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs +++ b/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs @@ -16,6 +16,10 @@ let readTestFilePlatformSpecific filePostfix = File.ReadAllText (__SOURCE_DIRECTORY__ + $"/data/win{filePostfix}") else raise (Exception "Running tests on the current OS is not supported :(") + +// https://github.com/hardkoded/puppeteer-sharp/issues/2792 maybe +// generation fails on linux CI, workaround like this? +PuppeteerSharpRendererOptions.launchOptions.Args <- Array.concat [PuppeteerSharpRendererOptions.launchOptions.Args; [| "--no-sandbox" |]] [<Tests>] let ``Image export base64 strings tests`` = diff --git a/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj b/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj index 7bce5e051..21937289e 100644 --- a/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj +++ b/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <GenerateProgramFile>false</GenerateProgramFile> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs b/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs new file mode 100644 index 000000000..b2b902fdb --- /dev/null +++ b/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs @@ -0,0 +1,51 @@ +module Tests.Interactive.Formatting + +open Expecto + +open System +open System.IO + +open Microsoft.DotNet.Interactive +open Microsoft.DotNet.Interactive.Formatting + +module ConventionBased = + + [<AttributeUsage(AttributeTargets.Class)>] + type internal TypeFormatterSourceAttribute(formatterSourceType: Type) = + inherit Attribute() + let mutable preferredMimeTypes : string[] = [||] + member this.TypeFormatterSourceType = formatterSourceType + member this.PreferredMimeTypes + with get() = preferredMimeTypes + and set(v) = preferredMimeTypes <- v + + [<TypeFormatterSourceAttribute(typeof<CustomFormatterSource>)>] + type TypeWithCustomFormatter() = class end + + and CustomFormatter() = + let mutable mimeType = "text/html" + member this.MimeType + with get() = mimeType + and set(v) = mimeType <- v + member this.Format(instance:obj, writer:TextWriter) = + match instance with + | :? TypeWithCustomFormatter as c -> + writer.Write("Formatting successfull!") + true + | _ -> false + + and CustomFormatterSource = + member this.CreateTypeFormatters() : seq<obj> = + seq { + yield CustomFormatter() + } + +[<Tests>] +let ``Convention-based Formatting`` = + testList "Convention-based Formatting" [ + testCase "Convention based formatter sources can provide lazy registration of custom formatters" <| fun _ -> + let o = ConventionBased.TypeWithCustomFormatter() + let formatted = o.ToDisplayString() + Expect.equal formatted "Formatting successfull!" "Formatting failed" + + ] \ No newline at end of file diff --git a/tests/ExtensionLibsTests/InteractiveTests/InteractiveTests.fsproj b/tests/ExtensionLibsTests/InteractiveTests/InteractiveTests.fsproj new file mode 100644 index 000000000..c843c6fc6 --- /dev/null +++ b/tests/ExtensionLibsTests/InteractiveTests/InteractiveTests.fsproj @@ -0,0 +1,27 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>net8.0</TargetFramework> + <GenerateProgramFile>false</GenerateProgramFile> + <IsPackable>false</IsPackable> + </PropertyGroup> + + <ItemGroup> + <Compile Include="Formatting.fs" /> + <Compile Include="Main.fs" /> + </ItemGroup> + + <ItemGroup> + <PackageReference Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.25070.1" /> + <PackageReference Include="Microsoft.DotNet.Interactive.Formatting" Version="1.0.0-beta.25070.1" /> + <!--<PackageReference Include="Microsoft.DotNet.Interactive.FSharp" Version="1.0.0-beta.25070.1" />--> + <PackageReference Include="Expecto" Version="10.*" /> + <PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.*" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.*" /> + </ItemGroup> + + <ItemGroup> + <ProjectReference Include="..\..\..\src\Plotly.NET.ImageExport\Plotly.NET.ImageExport.fsproj" /> + </ItemGroup> +</Project> diff --git a/tests/ExtensionLibsTests/InteractiveTests/Main.fs b/tests/ExtensionLibsTests/InteractiveTests/Main.fs new file mode 100644 index 000000000..1f34e91d4 --- /dev/null +++ b/tests/ExtensionLibsTests/InteractiveTests/Main.fs @@ -0,0 +1,6 @@ +module Plotly.NET.Tests +open Expecto + +[<EntryPoint>] +let main argv = + Tests.runTestsInAssemblyWithCLIArgs [] argv diff --git a/tests/InteractiveTests/Repack.ps1 b/tests/InteractiveTests/Repack.ps1 new file mode 100644 index 000000000..22c615a4c --- /dev/null +++ b/tests/InteractiveTests/Repack.ps1 @@ -0,0 +1,7 @@ +# Clean up the previously-cached NuGet packages. +# Lower-case is intentional (that's how nuget stores those packages). +Remove-Item -Recurse ~\.nuget\packages\plotly.net* -Force + +# build and pack Plotly.NET.Interactive +dotnet pack ../../src/Plotly.NET/Plotly.NET.fsproj -tl -c Release -p:PackageVersion=0.0.1-dev -o "./pkg" + diff --git a/tests/InteractiveTests/TestNotebook.ipynb b/tests/InteractiveTests/TestNotebook.ipynb new file mode 100644 index 000000000..77a561bce --- /dev/null +++ b/tests/InteractiveTests/TestNotebook.ipynb @@ -0,0 +1,121 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "dotnet_interactive": { + "language": "csharp" + }, + "polyglot_notebook": { + "kernelName": "csharp" + } + }, + "source": [ + "To reproduce the package, run `./Repack.ps1` in powershell. It will clean your cache in `~/.nuget/packages` and pack the library to `Plotly.NET/pkg` folder, which you should specify below (absolute paths only) in `#i` line.\n", + "\n", + "The version of the package is always `0.0.0-dev`." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "dotnet_interactive": { + "language": "fsharp" + } + }, + "outputs": [ + { + "data": { + "text/html": [ + "<div><div><strong>Restore sources</strong><ul><li><span> C:/Users/schne/source/repos/plotly/Plotly.NET/pkg</span></li></ul></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Plotly.NET, 2.0.0-alpha2</span></li></ul></div></div>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "// be advised, that you always should set absolute paths for local nuget packages - change this to reflect your own setup\n", + "#i \"nuget: C:/Users/schne/source/repos/plotly/Plotly.NET/tests/Interactivetests/pkg\"\n", + "#r \"nuget: Plotly.NET, 0.0.1-dev\"" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "dotnet_interactive": { + "language": "fsharp" + } + }, + "outputs": [ + { + "data": { + "text/html": [ + "<div><div id=\"4fc61fc7-1f1e-48f0-9aca-5da1084da281\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\n", + "var renderPlotly_4fc61fc71f1e48f09aca5da1084da281 = function() {\n", + " var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\n", + " fsharpPlotlyRequire(['plotly'], function(Plotly) {\n", + " var data = [{\"type\":\"scatter\",\"mode\":\"markers\",\"x\":[1,3],\"y\":[2,4],\"marker\":{},\"line\":{}}];\n", + " var layout = {\"width\":600,\"height\":600,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}}};\n", + " var config = {\"responsive\":true};\n", + " Plotly.newPlot('4fc61fc7-1f1e-48f0-9aca-5da1084da281', data, layout, config);\n", + " });\n", + "};\n", + "if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\n", + " var script = document.createElement(\"script\");\n", + " script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js/");\n", + " script.onload = function(){\n", + " renderPlotly_4fc61fc71f1e48f09aca5da1084da281();\n", + " };\n", + " document.getElementsByTagName(\"head\")[0].appendChild(script);\n", + "}\n", + "else {\n", + " renderPlotly_4fc61fc71f1e48f09aca5da1084da281();\n", + "}\n", + "</script><h1>lel!</h1></div>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "open Plotly.NET\n", + "open Giraffe.ViewEngine\n", + "\n", + "Chart.Point([1,2; 3,4])\n", + "|> Chart.withDescription [\n", + " h1 [] [str \"lel!\"]\n", + "]" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".NET (C#)", + "language": "C#", + "name": ".net-csharp" + }, + "polyglot_notebook": { + "kernelInfo": { + "defaultKernelName": "csharp", + "items": [ + { + "aliases": [], + "name": "csharp" + }, + { + "aliases": [ + "frontend" + ], + "name": "vscode" + } + ] + } + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}