├── .devops └── build-nuget.yml ├── .gitignore ├── LICENSE ├── Plotly.Generator ├── ApiParser.fs ├── AssemblyInfo.fs ├── Common.fs ├── Domain.fs ├── LICENSE ├── Plotly.Generator.fsproj ├── Program.fs ├── Render.fs └── Utils.fs ├── Plotly.H5 ├── Bindings.cs ├── Colors.cs ├── DomObserver.cs ├── Interop.cs ├── Literals.cs ├── Plotly.H5.csproj ├── Plotly.cs ├── Props │ ├── Aaxis.cs │ ├── Aggregate.cs │ ├── Aggregation.cs │ ├── Aggregations.cs │ ├── Angularaxis.cs │ ├── Animation.cs │ ├── Annotation.cs │ ├── Annotations.cs │ ├── Area.cs │ ├── Aspectratio.cs │ ├── Axis.cs │ ├── Bar.cs │ ├── Barpolar.cs │ ├── Baxis.cs │ ├── Border.cs │ ├── Box.cs │ ├── Button.cs │ ├── Buttons.cs │ ├── Camera.cs │ ├── Candlestick.cs │ ├── Caps.cs │ ├── Carpet.cs │ ├── Caxis.cs │ ├── Cells.cs │ ├── Center.cs │ ├── Choropleth.cs │ ├── Choroplethmapbox.cs │ ├── Circle.cs │ ├── Coloraxis.cs │ ├── Colorbar.cs │ ├── Colorscale.cs │ ├── Colorscales.cs │ ├── Concentrationscales.cs │ ├── Cone.cs │ ├── Config.cs │ ├── Connector.cs │ ├── Contour.cs │ ├── Contourcarpet.cs │ ├── Contours.cs │ ├── Cumulative.cs │ ├── Currentvalue.cs │ ├── Decreasing.cs │ ├── Delta.cs │ ├── Densitymapbox.cs │ ├── Diagonal.cs │ ├── Dimension.cs │ ├── Dimensions.cs │ ├── Domain.cs │ ├── Edits.cs │ ├── ErrorX.cs │ ├── ErrorY.cs │ ├── ErrorZ.cs │ ├── Eye.cs │ ├── Fill.cs │ ├── Filter.cs │ ├── Font.cs │ ├── Frame.cs │ ├── Frames.cs │ ├── FramesEntry.cs │ ├── Funnel.cs │ ├── Funnelarea.cs │ ├── Gauge.cs │ ├── Geo.cs │ ├── Gradient.cs │ ├── Grid.cs │ ├── Groupby.cs │ ├── Header.cs │ ├── Heatmap.cs │ ├── Heatmapgl.cs │ ├── Histogram.cs │ ├── Histogram2d.cs │ ├── Histogram2dcontour.cs │ ├── Hoverlabel.cs │ ├── Image.cs │ ├── Images.cs │ ├── Increasing.cs │ ├── Indicator.cs │ ├── Insidetextfont.cs │ ├── Isosurface.cs │ ├── Labelfont.cs │ ├── Lataxis.cs │ ├── Layer.cs │ ├── Layers.cs │ ├── Layout.cs │ ├── Leaf.cs │ ├── Legend.cs │ ├── Lighting.cs │ ├── Lightposition.cs │ ├── Line.cs │ ├── Link.cs │ ├── Lonaxis.cs │ ├── Mapbox.cs │ ├── Margin.cs │ ├── Marker.cs │ ├── Meanline.cs │ ├── Mesh3d.cs │ ├── Modebar.cs │ ├── Node.cs │ ├── Number.cs │ ├── Ohlc.cs │ ├── Outsidetextfont.cs │ ├── Pad.cs │ ├── Parcats.cs │ ├── Parcoords.cs │ ├── Pathbar.cs │ ├── Pie.cs │ ├── Pointcloud.cs │ ├── Polar.cs │ ├── Project.cs │ ├── Projection.cs │ ├── Radialaxis.cs │ ├── Rangefont.cs │ ├── Rangeselector.cs │ ├── Rangeslider.cs │ ├── Rotation.cs │ ├── Sankey.cs │ ├── Scatter.cs │ ├── Scatter3d.cs │ ├── Scattercarpet.cs │ ├── Scattergeo.cs │ ├── Scattergl.cs │ ├── Scattermapbox.cs │ ├── Scatterpolar.cs │ ├── Scatterpolargl.cs │ ├── Scatterternary.cs │ ├── Scene.cs │ ├── Selected.cs │ ├── Shape.cs │ ├── Shapes.cs │ ├── Slices.cs │ ├── Slider.cs │ ├── Sliders.cs │ ├── Sort.cs │ ├── Spaceframe.cs │ ├── Splom.cs │ ├── Starts.cs │ ├── Step.cs │ ├── Steps.cs │ ├── Stream.cs │ ├── Streamtube.cs │ ├── Style.cs │ ├── Styles.cs │ ├── Sunburst.cs │ ├── Surface.cs │ ├── Symbol.cs │ ├── Table.cs │ ├── Ternary.cs │ ├── Textfont.cs │ ├── Threshold.cs │ ├── Tickfont.cs │ ├── Tickformatstop.cs │ ├── Tickformatstops.cs │ ├── Tiling.cs │ ├── Title.cs │ ├── Totals.cs │ ├── Traces.cs │ ├── Transforms.cs │ ├── Transition.cs │ ├── Treemap.cs │ ├── Uniformtext.cs │ ├── Unselected.cs │ ├── Up.cs │ ├── Updatemenu.cs │ ├── Updatemenus.cs │ ├── Violin.cs │ ├── Volume.cs │ ├── Waterfall.cs │ ├── X.cs │ ├── Xaxis.cs │ ├── Xbins.cs │ ├── Y.cs │ ├── Yaxis.cs │ ├── Ybins.cs │ ├── Z.cs │ └── Zaxis.cs ├── Types.cs ├── h5.json ├── h5 │ ├── plotly.js │ └── plotly.min.js └── plotly-h5-logo.png ├── Plotly.Sharp.Demo ├── Plotly.Sharp.Demo.csproj └── Program.cs ├── Plotly.Sharp.sln ├── Plotly.Sharp ├── Bindings.cs ├── Colors.cs ├── Interop.cs ├── Literals.cs ├── Plotly.Sharp.csproj ├── Plotly.cs ├── Props │ ├── Aaxis.cs │ ├── Aggregate.cs │ ├── Aggregation.cs │ ├── Aggregations.cs │ ├── Angularaxis.cs │ ├── Animation.cs │ ├── Annotation.cs │ ├── Annotations.cs │ ├── Area.cs │ ├── Aspectratio.cs │ ├── Axis.cs │ ├── Bar.cs │ ├── Barpolar.cs │ ├── Baxis.cs │ ├── Border.cs │ ├── Box.cs │ ├── Button.cs │ ├── Buttons.cs │ ├── Camera.cs │ ├── Candlestick.cs │ ├── Caps.cs │ ├── Carpet.cs │ ├── Caxis.cs │ ├── Cells.cs │ ├── Center.cs │ ├── Choropleth.cs │ ├── Choroplethmapbox.cs │ ├── Circle.cs │ ├── Coloraxis.cs │ ├── Colorbar.cs │ ├── Colorscale.cs │ ├── Colorscales.cs │ ├── Concentrationscales.cs │ ├── Cone.cs │ ├── Config.cs │ ├── Connector.cs │ ├── Contour.cs │ ├── Contourcarpet.cs │ ├── Contours.cs │ ├── Cumulative.cs │ ├── Currentvalue.cs │ ├── Decreasing.cs │ ├── Delta.cs │ ├── Densitymapbox.cs │ ├── Diagonal.cs │ ├── Dimension.cs │ ├── Dimensions.cs │ ├── Domain.cs │ ├── Edits.cs │ ├── ErrorX.cs │ ├── ErrorY.cs │ ├── ErrorZ.cs │ ├── Eye.cs │ ├── Fill.cs │ ├── Filter.cs │ ├── Font.cs │ ├── Frame.cs │ ├── Frames.cs │ ├── FramesEntry.cs │ ├── Funnel.cs │ ├── Funnelarea.cs │ ├── Gauge.cs │ ├── Geo.cs │ ├── Gradient.cs │ ├── Grid.cs │ ├── Groupby.cs │ ├── Header.cs │ ├── Heatmap.cs │ ├── Heatmapgl.cs │ ├── Histogram.cs │ ├── Histogram2d.cs │ ├── Histogram2dcontour.cs │ ├── Hoverlabel.cs │ ├── Image.cs │ ├── Images.cs │ ├── Increasing.cs │ ├── Indicator.cs │ ├── Insidetextfont.cs │ ├── Isosurface.cs │ ├── Labelfont.cs │ ├── Lataxis.cs │ ├── Layer.cs │ ├── Layers.cs │ ├── Layout.cs │ ├── Leaf.cs │ ├── Legend.cs │ ├── Lighting.cs │ ├── Lightposition.cs │ ├── Line.cs │ ├── Link.cs │ ├── Lonaxis.cs │ ├── Mapbox.cs │ ├── Margin.cs │ ├── Marker.cs │ ├── Meanline.cs │ ├── Mesh3d.cs │ ├── Modebar.cs │ ├── Node.cs │ ├── Number.cs │ ├── Ohlc.cs │ ├── Outsidetextfont.cs │ ├── Pad.cs │ ├── Parcats.cs │ ├── Parcoords.cs │ ├── Pathbar.cs │ ├── Pie.cs │ ├── Pointcloud.cs │ ├── Polar.cs │ ├── Project.cs │ ├── Projection.cs │ ├── Radialaxis.cs │ ├── Rangefont.cs │ ├── Rangeselector.cs │ ├── Rangeslider.cs │ ├── Rotation.cs │ ├── Sankey.cs │ ├── Scatter.cs │ ├── Scatter3d.cs │ ├── Scattercarpet.cs │ ├── Scattergeo.cs │ ├── Scattergl.cs │ ├── Scattermapbox.cs │ ├── Scatterpolar.cs │ ├── Scatterpolargl.cs │ ├── Scatterternary.cs │ ├── Scene.cs │ ├── Selected.cs │ ├── Shape.cs │ ├── Shapes.cs │ ├── Slices.cs │ ├── Slider.cs │ ├── Sliders.cs │ ├── Sort.cs │ ├── Spaceframe.cs │ ├── Splom.cs │ ├── Starts.cs │ ├── Step.cs │ ├── Steps.cs │ ├── Stream.cs │ ├── Streamtube.cs │ ├── Style.cs │ ├── Styles.cs │ ├── Sunburst.cs │ ├── Surface.cs │ ├── Symbol.cs │ ├── Table.cs │ ├── Ternary.cs │ ├── Textfont.cs │ ├── Threshold.cs │ ├── Tickfont.cs │ ├── Tickformatstop.cs │ ├── Tickformatstops.cs │ ├── Tiling.cs │ ├── Title.cs │ ├── Totals.cs │ ├── Traces.cs │ ├── Transforms.cs │ ├── Transition.cs │ ├── Treemap.cs │ ├── Uniformtext.cs │ ├── Unselected.cs │ ├── Up.cs │ ├── Updatemenu.cs │ ├── Updatemenus.cs │ ├── Violin.cs │ ├── Volume.cs │ ├── Waterfall.cs │ ├── X.cs │ ├── Xaxis.cs │ ├── Xbins.cs │ ├── Y.cs │ ├── Yaxis.cs │ ├── Ybins.cs │ ├── Z.cs │ └── Zaxis.cs ├── Types.cs └── plotly-sharp-logo.png └── README.md /.devops/build-nuget.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | projectH5: './Plotly.H5/Plotly.H5.csproj' 3 | projectSharp: './Plotly.Sharp/Plotly.Sharp.csproj' 4 | buildPlatform: 'Any CPU' 5 | buildConfiguration: 'Release' 6 | 7 | trigger: 8 | - master 9 | 10 | pool: 11 | vmImage: 'windows-latest' 12 | 13 | steps: 14 | - task: NuGetToolInstaller@1 15 | 16 | - task: UseDotNet@2 17 | displayName: 'Use .NET Core sdk' 18 | inputs: 19 | packageType: sdk 20 | version: 9.x 21 | installationPath: $(Agent.ToolsDirectory)/dotnet 22 | 23 | - task: PowerShell@2 24 | displayName: 'Set Version' 25 | inputs: 26 | targetType: 'inline' 27 | script: | 28 | $date=$(Get-Date -Format yyyy.M); 29 | Write-Host "##vso[task.setvariable variable=buildVersion]$date.$(build.buildId)" 30 | 31 | - task: CmdLine@2 32 | inputs: 33 | script: 'dotnet tool update --global h5-compiler' 34 | 35 | - task: DotNetCoreCLI@2 36 | displayName: 'restore nuget' 37 | inputs: 38 | command: 'restore' 39 | projects: '$(projectH5)' 40 | 41 | - task: DotNetCoreCLI@2 42 | displayName: 'build' 43 | inputs: 44 | command: 'build' 45 | projects: '$(projectH5)' 46 | arguments: '-c $(buildConfiguration) /p:Version=$(buildVersion) /p:AllowUnsafeBlocks=True /p:LangVersion=latest' 47 | 48 | - task: DotNetCoreCLI@2 49 | displayName: 'pack nuget' 50 | inputs: 51 | command: 'pack' 52 | packagesToPack: '$(projectH5)' 53 | configuration: '$(buildConfiguration)' 54 | versioningScheme: 'off' 55 | buildProperties: 'Version="$(buildVersion)";AllowUnsafeBlocks="True";LangVersion="latest"' 56 | 57 | - task: DotNetCoreCLI@2 58 | displayName: 'restore projectH5' 59 | inputs: 60 | command: 'restore' 61 | projects: '$(projectH5)' 62 | 63 | 64 | - task: DotNetCoreCLI@2 65 | displayName: 'restore projectSharp' 66 | inputs: 67 | command: 'restore' 68 | projects: '$(projectSharp)' 69 | 70 | 71 | - task: VSBuild@1 72 | displayName: 'build projectH5' 73 | inputs: 74 | solution: '$(projectH5)' 75 | msbuildArgs: '/t:pack /p:Version=$(buildVersion)' 76 | platform: '$(buildPlatform)' 77 | configuration: '$(buildConfiguration)' 78 | 79 | - task: VSBuild@1 80 | displayName: 'build projectSharp' 81 | inputs: 82 | solution: '$(projectSharp)' 83 | msbuildArgs: '/t:pack /p:Version=$(buildVersion)' 84 | platform: '$(buildPlatform)' 85 | configuration: '$(buildConfiguration)' 86 | 87 | - task: CmdLine@2 88 | inputs: 89 | script: 'dir $(Build.SourcesDirectory)\*.nupkg /S' 90 | 91 | - task: NuGetCommand@2 92 | displayName: 'push Plotly.H5 to nuget' 93 | inputs: 94 | command: 'push' 95 | packagesToPush: '**/Plotly.H5.$(buildVersion).nupkg' 96 | nuGetFeedType: 'external' 97 | publishFeedCredentials: 'nuget-curiosity' 98 | 99 | 100 | - task: NuGetCommand@2 101 | displayName: 'push Plotly.Sharp to nuget' 102 | inputs: 103 | command: 'push' 104 | packagesToPush: '**/Plotly.Sharp.$(buildVersion).nupkg' 105 | nuGetFeedType: 'external' 106 | publishFeedCredentials: 'nuget-curiosity-org' 107 | 108 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Curiosity GmbH 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Plotly.Generator/AssemblyInfo.fs: -------------------------------------------------------------------------------- 1 | // Auto-Generated by FAKE; do not edit 2 | namespace System 3 | open System.Reflection 4 | open System.Runtime.CompilerServices 5 | 6 | [] 7 | [] 8 | [] 9 | [] 10 | [] 11 | [] 12 | [] 13 | do () 14 | 15 | module internal AssemblyVersionInformation = 16 | let [] AssemblyTitle = "Feliz.Generator.Plotly" 17 | let [] AssemblyProduct = "Feliz.Plotly" 18 | let [] AssemblyDescription = "Fable bindings written in the Feliz-style for plotly.js" 19 | let [] AssemblyVersion = "0.17.0" 20 | let [] AssemblyFileVersion = "0.17.0" 21 | let [] AssemblyConfiguration = "Debug" 22 | let [] InternalsVisibleTo = "Feliz.Generator.Plotly.Tests" 23 | -------------------------------------------------------------------------------- /Plotly.Generator/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Shmew 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Plotly.Generator/Plotly.Generator.fsproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net9.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Plotly.Generator/Program.fs: -------------------------------------------------------------------------------- 1 | namespace Fable.Plotly.Generator 2 | 3 | module Program = 4 | open Fake.IO 5 | open Fake.IO.FileSystemOperators 6 | open Microsoft.CodeAnalysis 7 | open Microsoft.CodeAnalysis.CSharp 8 | open FSharp.Data 9 | 10 | [] 11 | let main _ = 12 | 13 | 14 | // only embedd the javascript files on the Plotly.Bridge project 15 | let libMinFileH5 = __SOURCE_DIRECTORY__ @@ "../Plotly.H5/h5/plotly.min.js" 16 | let libFileH5 = __SOURCE_DIRECTORY__ @@ "../Plotly.H5/h5/plotly.js" 17 | 18 | //Uncomment here to update plotly 19 | //Http.RequestString(@"https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plotly.min.js") |> File.writeString false libMinFileH5 20 | //Http.RequestString(@"https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plotly.js") |> File.writeString false libFileH5 21 | 22 | let projects = ["Plotly.H5"; "Plotly.Sharp"] 23 | 24 | for proj in projects do 25 | let api = match proj with 26 | | "Plotly.H5" -> "PlotlyH5" |> ApiParser.parseApi 27 | | "Plotly.Sharp" -> "Plotly" |> ApiParser.parseApi 28 | 29 | let plotlyFile = __SOURCE_DIRECTORY__ @@ sprintf "../%s/Plotly.cs" proj 30 | let interopFile = __SOURCE_DIRECTORY__ @@ sprintf "../%s/Interop.cs" proj 31 | let typesFile = __SOURCE_DIRECTORY__ @@ sprintf "../%s/Types.cs" proj 32 | let propsDir = __SOURCE_DIRECTORY__ @@ sprintf "../%s/Props" proj 33 | 34 | Shell.cleanDir propsDir 35 | 36 | let plotlyCode = Render.componentDocument api.GeneratorComponentApi |> CSharpSyntaxTree.ParseText 37 | plotlyCode.GetRoot().NormalizeWhitespace().ToFullString() |> File.writeString false plotlyFile 38 | 39 | let interopCode = Render.interopDocument api.GeneratorComponentApi |> CSharpSyntaxTree.ParseText 40 | interopCode.GetRoot().NormalizeWhitespace().ToFullString() |> File.writeString false interopFile 41 | 42 | let typesCode = Render.typesDocument api.GeneratorComponentApi |> CSharpSyntaxTree.ParseText 43 | typesCode.GetRoot().NormalizeWhitespace().ToFullString() |> File.writeString false typesFile 44 | 45 | api.GeneratorComponentApi 46 | |> Render.propsDocument true 47 | |> List.iter (fun (name, doc) -> 48 | let path = propsDir @@ (sprintf "%s.cs" (name |> String.upperFirst)) 49 | let formatedDoc = doc |> CSharpSyntaxTree.ParseText; 50 | formatedDoc.GetRoot().NormalizeWhitespace().ToFullString() |> File.writeString false path 51 | ) 52 | 53 | 0 54 | -------------------------------------------------------------------------------- /Plotly.Generator/Utils.fs: -------------------------------------------------------------------------------- 1 | namespace Fable.Plotly.Generator 2 | 3 | [] 4 | module Utils = 5 | 6 | let flip f x y = f y x 7 | 8 | module String = 9 | let trim (s: string) = s.Trim() 10 | 11 | /// Converts the first character to lowercase. 12 | let lowerFirst (s: string) = s.Substring(0, 1).ToLower() + s.Substring(1) 13 | 14 | /// Converts the first character to uppercase. 15 | let upperFirst (s: string) = s.Substring(0, 1).ToUpper() + s.Substring(1) 16 | 17 | /// Adds a prefix to the given string 18 | let prefix (prefix: string) s = prefix + s 19 | 20 | /// Indents a string based on `spacesPerLevel` and `numLevels` 21 | let indent spacesPerLevel numLevels = prefix (String.replicate (numLevels * spacesPerLevel) " ") 22 | 23 | /// Returns `true` if the input string is likely a Regular Expression 24 | let containsRegex (s: string) = 25 | [ "/"; "\\"; "$"; "^"; "|"; "["; "]" ] 26 | |> List.filter (fun c -> s.Contains(c)) 27 | |> List.length > 1 28 | 29 | /// Splits the string on the specified separator. 30 | let split (sep: string) (str: string) = 31 | match sep, str with 32 | | ((null 33 | | ""), _) 34 | | (_, (null 35 | | "")) -> seq [ str ] 36 | | _ -> 37 | let n, j = str.Length, sep.Length 38 | 39 | let rec loop p = 40 | seq { 41 | if p < n then 42 | let i = 43 | match str.IndexOf(sep, p) with 44 | | -1 -> n 45 | | i -> i 46 | yield str.Substring(p, i - p) 47 | yield! loop (i + j) 48 | } 49 | loop 0 50 | 51 | module List = 52 | /// Returns the list after removing the first N elements. If the list has less 53 | /// than N elements, returns an empty list. 54 | let trySkip count list = 55 | if List.length list < count then [] 56 | else List.skip count list 57 | 58 | let trimEmptyLines list = 59 | list 60 | |> List.skipWhile ((=) "") 61 | |> List.rev 62 | |> List.skipWhile ((=) "") 63 | |> List.rev 64 | 65 | let allCombinations list = 66 | let rec comb accList elemList = 67 | match elemList with 68 | | h :: t -> 69 | let next = [ h ] :: List.map (fun el -> h :: el) accList @ accList 70 | comb next t 71 | | _ -> accList 72 | comb [] list 73 | 74 | module Seq = 75 | let trimEmptyLines list = 76 | list 77 | |> Seq.skipWhile ((=) "") 78 | |> Seq.rev 79 | |> Seq.skipWhile ((=) "") 80 | |> Seq.rev 81 | 82 | module JsonValue = 83 | open FSharp.Data 84 | 85 | let asString (j: JsonValue) = j.ToString() 86 | let tryGetProp s (j: JsonValue) = j.TryGetProperty(s) 87 | -------------------------------------------------------------------------------- /Plotly.H5/Plotly.H5.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | netstandard2.0 4 | true 5 | 7.2 6 | true 7 | None 8 | false 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | false 20 | (c) Copyright 2020 Curiosity GmbH - all right reserved 21 | Curiosity GmbH 22 | Curiosity GmbH 23 | https://github.com/curiosity-ai/plotly-sharp 24 | Plotly.H5 25 | PlotlyH5 26 | Plotly.H5 27 | Plotly.H5 provides a strongly-typed binding to use Plotly on H5 applications. 28 | Plotly, H5, Graphs, Charts, HTML 29 | plotly-h5-logo.png 30 | 1701;1702;1591 31 | MIT 32 | 33 | 34 | -------------------------------------------------------------------------------- /Plotly.H5/Props/Aggregate.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Aggregate 15 | { 16 | /// Determines whether this aggregate transform is enabled or disabled. 17 | public static Box enabled(bool val) => Interop.mkAggregateAttr("enabled", val); 18 | /// Sets the grouping target to which the aggregation is applied. Data points with matching group values will be coalesced into one point, using the supplied aggregation functions to reduce data in other data arrays. If a string, `groups` is assumed to be a reference to a data array in the parent trace object. To aggregate by nested variables, use *.* to access them. For example, set `groups` to *marker.color* to aggregate about the marker color array. If an array, `groups` is itself the data array by which we aggregate. 19 | public static Box groups(string val) => Interop.mkAggregateAttr("groups", val); 20 | /// Sets the grouping target to which the aggregation is applied. Data points with matching group values will be coalesced into one point, using the supplied aggregation functions to reduce data in other data arrays. If a string, `groups` is assumed to be a reference to a data array in the parent trace object. To aggregate by nested variables, use *.* to access them. For example, set `groups` to *marker.color* to aggregate about the marker color array. If an array, `groups` is itself the data array by which we aggregate. 21 | public static Box groups(IEnumerable values) => Interop.mkAggregateAttr("groups", values.ToArray()); 22 | public static Box aggregations(params Box[] properties) => Interop.mkAggregateAttr("aggregations", Bindings.flattenProperties(properties)); 23 | /// Sets the source reference on plot.ly for groups . 24 | public static Box groupssrc(string val) => Interop.mkAggregateAttr("groupssrc", val); 25 | } 26 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Aggregations.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Aggregations 15 | { 16 | public static Box aggregation(params Box[] properties) => Interop.mkAggregationsAttr("aggregation", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Animation.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Animation 15 | { 16 | /// Play frames starting at the current frame instead of the beginning. 17 | public static Box fromcurrent(bool val) => Interop.mkAnimationAttr("fromcurrent", val); 18 | public static Box frame(params Box[] properties) => Interop.mkAnimationAttr("frame", Bindings.flattenProperties(properties)); 19 | public static Box transition(params Box[] properties) => Interop.mkAnimationAttr("transition", Bindings.flattenProperties(properties)); 20 | } 21 | 22 | public static partial class Animation 23 | { 24 | /// Describes how a new animate call interacts with currently-running animations. If `immediate`, current animations are interrupted and the new animation is started. If `next`, the current frame is allowed to complete, after which the new animation is started. If `afterall` all existing frames are animated to completion before the new animation is started. 25 | public static partial class Mode 26 | { 27 | public static Box afterall() => Interop.mkAnimationAttr("mode", "afterall"); 28 | public static Box immediate() => Interop.mkAnimationAttr("mode", "immediate"); 29 | public static Box next() => Interop.mkAnimationAttr("mode", "next"); 30 | } 31 | 32 | /// The direction in which to play the frames triggered by the animation call 33 | public static partial class Direction 34 | { 35 | public static Box forward() => Interop.mkAnimationAttr("direction", "forward"); 36 | public static Box reverse() => Interop.mkAnimationAttr("direction", "reverse"); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Annotations.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Annotations 15 | { 16 | public static Box annotation(params Box[] properties) => Interop.mkAnnotationsAttr("annotation", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Aspectratio.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Aspectratio 15 | { 16 | public static Box x(int val) => Interop.mkAspectratioAttr("x", val); 17 | public static Box x(float val) => Interop.mkAspectratioAttr("x", val); 18 | public static Box y(int val) => Interop.mkAspectratioAttr("y", val); 19 | public static Box y(float val) => Interop.mkAspectratioAttr("y", val); 20 | public static Box z(int val) => Interop.mkAspectratioAttr("z", val); 21 | public static Box z(float val) => Interop.mkAspectratioAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Border.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Border 15 | { 16 | /// Sets the stroke color. It accepts a specific color. If the color is not fully opaque and there are hundreds of thousands of points, it may cause slower zooming and panning. 17 | public static Box color(string val) => Interop.mkBorderAttr("color", val); 18 | /// Specifies what fraction of the marker area is covered with the border. 19 | public static Box arearatio(int val) => Interop.mkBorderAttr("arearatio", val); 20 | /// Specifies what fraction of the marker area is covered with the border. 21 | public static Box arearatio(float val) => Interop.mkBorderAttr("arearatio", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Buttons.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Buttons 15 | { 16 | /// Sets the specifications for each buttons. By default, a range selector comes with no buttons. 17 | public static Box button(params Box[] properties) => Interop.mkButtonsAttr("button", Bindings.flattenProperties(properties)); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Camera.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Camera 15 | { 16 | /// Sets the (x,y,z) components of the 'up' camera vector. This vector determines the up direction of this scene with respect to the page. The default is *{x: 0, y: 0, z: 1}* which means that the z axis points up. 17 | public static Box up(params Box[] properties) => Interop.mkCameraAttr("up", Bindings.flattenProperties(properties)); 18 | /// Sets the (x,y,z) components of the 'center' camera vector This vector determines the translation (x,y,z) space about the center of this scene. By default, there is no such translation. 19 | public static Box center(params Box[] properties) => Interop.mkCameraAttr("center", Bindings.flattenProperties(properties)); 20 | /// Sets the (x,y,z) components of the 'eye' camera vector. This vector determines the view point about the origin of this scene. 21 | public static Box eye(params Box[] properties) => Interop.mkCameraAttr("eye", Bindings.flattenProperties(properties)); 22 | public static Box projection(params Box[] properties) => Interop.mkCameraAttr("projection", Bindings.flattenProperties(properties)); 23 | } 24 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Caps.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Caps 15 | { 16 | public static Box x(params Box[] properties) => Interop.mkCapsAttr("x", Bindings.flattenProperties(properties)); 17 | public static Box y(params Box[] properties) => Interop.mkCapsAttr("y", Bindings.flattenProperties(properties)); 18 | public static Box z(params Box[] properties) => Interop.mkCapsAttr("z", Bindings.flattenProperties(properties)); 19 | } 20 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Center.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Center 15 | { 16 | public static Box x(int val) => Interop.mkCenterAttr("x", val); 17 | public static Box x(float val) => Interop.mkCenterAttr("x", val); 18 | public static Box y(int val) => Interop.mkCenterAttr("y", val); 19 | public static Box y(float val) => Interop.mkCenterAttr("y", val); 20 | public static Box z(int val) => Interop.mkCenterAttr("z", val); 21 | public static Box z(float val) => Interop.mkCenterAttr("z", val); 22 | /// Sets the longitude 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. 23 | public static Box lon(int val) => Interop.mkCenterAttr("lon", val); 24 | /// Sets the longitude 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. 25 | public static Box lon(float val) => Interop.mkCenterAttr("lon", val); 26 | /// Sets the latitude of the map's center. For all projection types, the map's latitude center lies at the middle of the latitude range by default. 27 | public static Box lat(int val) => Interop.mkCenterAttr("lat", val); 28 | /// Sets the latitude of the map's center. For all projection types, the map's latitude center lies at the middle of the latitude range by default. 29 | public static Box lat(float val) => Interop.mkCenterAttr("lat", val); 30 | } 31 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Circle.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Circle 15 | { 16 | /// Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to *circle*. 17 | public static Box radius(int val) => Interop.mkCircleAttr("radius", val); 18 | /// Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to *circle*. 19 | public static Box radius(float val) => Interop.mkCircleAttr("radius", val); 20 | } 21 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Colorscale.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Colorscale 15 | { 16 | /// Sets the default sequential colorscale for positive values. Note that `autocolorscale` must be true for this attribute to work. 17 | public static Box sequential(string val) => Interop.mkColorscaleAttr("sequential", val); 18 | /// Sets the default sequential colorscale for positive values. Note that `autocolorscale` must be true for this attribute to work. 19 | public static Box sequential(List values) => Interop.mkColorscaleAttr("sequential", Bindings.flatten2DArrayIf1D(values)); 20 | /// Sets the default sequential colorscale for negative values. Note that `autocolorscale` must be true for this attribute to work. 21 | public static Box sequentialminus(string val) => Interop.mkColorscaleAttr("sequentialminus", val); 22 | /// Sets the default sequential colorscale for negative values. Note that `autocolorscale` must be true for this attribute to work. 23 | public static Box sequentialminus(List values) => Interop.mkColorscaleAttr("sequentialminus", Bindings.flatten2DArrayIf1D(values)); 24 | /// Sets the default diverging colorscale. Note that `autocolorscale` must be true for this attribute to work. 25 | public static Box diverging(string val) => Interop.mkColorscaleAttr("diverging", val); 26 | /// Sets the default diverging colorscale. Note that `autocolorscale` must be true for this attribute to work. 27 | public static Box diverging(List values) => Interop.mkColorscaleAttr("diverging", Bindings.flatten2DArrayIf1D(values)); 28 | } 29 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Colorscales.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Colorscales 15 | { 16 | public static Box concentrationscales(params Box[] properties) => Interop.mkColorscalesAttr("concentrationscales", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Connector.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Connector 15 | { 16 | /// Sets the fill color. 17 | public static Box fillcolor(string val) => Interop.mkConnectorAttr("fillcolor", val); 18 | public static Box line(params Box[] properties) => Interop.mkConnectorAttr("line", Bindings.flattenProperties(properties)); 19 | /// Determines if connector regions and lines are drawn. 20 | public static Box visible(bool val) => Interop.mkConnectorAttr("visible", val); 21 | } 22 | 23 | public static partial class Connector 24 | { 25 | /// Sets the shape of connector lines. 26 | public static partial class Mode 27 | { 28 | public static Box between() => Interop.mkConnectorAttr("mode", "between"); 29 | public static Box spanning() => Interop.mkConnectorAttr("mode", "spanning"); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Cumulative.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Cumulative 15 | { 16 | /// If true, display the cumulative distribution by summing the binned values. Use the `direction` and `centralbin` attributes to tune the accumulation method. Note: in this mode, the *density* `histnorm` settings behave the same as their equivalents without *density*: ** and *density* both rise to the number of data points, and *probability* and *probability density* both rise to the number of sample points. 17 | public static Box enabled(bool val) => Interop.mkCumulativeAttr("enabled", val); 18 | } 19 | 20 | public static partial class Cumulative 21 | { 22 | /// Only applies if cumulative is enabled. If *increasing* (default) we sum all prior bins, so the result increases from left to right. If *decreasing* we sum later bins so the result decreases from left to right. 23 | public static partial class Direction 24 | { 25 | public static Box decreasing() => Interop.mkCumulativeAttr("direction", "decreasing"); 26 | public static Box increasing() => Interop.mkCumulativeAttr("direction", "increasing"); 27 | } 28 | 29 | /// Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. *include* is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. *exclude* makes the opposite half-bin bias, and *half* removes it. 30 | public static partial class Currentbin 31 | { 32 | public static Box exclude() => Interop.mkCumulativeAttr("currentbin", "exclude"); 33 | public static Box half() => Interop.mkCumulativeAttr("currentbin", "half"); 34 | public static Box _include() => Interop.mkCumulativeAttr("currentbin", "include"); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Currentvalue.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Currentvalue 15 | { 16 | /// Shows the currently-selected value above the slider. 17 | public static Box visible(bool val) => Interop.mkCurrentvalueAttr("visible", val); 18 | /// The amount of space, in pixels, between the current value label and the slider. 19 | public static Box offset(int val) => Interop.mkCurrentvalueAttr("offset", val); 20 | /// The amount of space, in pixels, between the current value label and the slider. 21 | public static Box offset(float val) => Interop.mkCurrentvalueAttr("offset", val); 22 | /// When currentvalue.visible is true, this sets the prefix of the label. 23 | public static Box prefix(string val) => Interop.mkCurrentvalueAttr("prefix", val); 24 | /// When currentvalue.visible is true, this sets the suffix of the label. 25 | public static Box suffix(string val) => Interop.mkCurrentvalueAttr("suffix", val); 26 | /// Sets the font of the current value label text. 27 | public static Box font(params Box[] properties) => Interop.mkCurrentvalueAttr("font", Bindings.flattenProperties(properties)); 28 | } 29 | 30 | public static partial class Currentvalue 31 | { 32 | /// The alignment of the value readout relative to the length of the slider. 33 | public static partial class Xanchor 34 | { 35 | public static Box center() => Interop.mkCurrentvalueAttr("xanchor", "center"); 36 | public static Box left() => Interop.mkCurrentvalueAttr("xanchor", "left"); 37 | public static Box right() => Interop.mkCurrentvalueAttr("xanchor", "right"); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Decreasing.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Decreasing 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkDecreasingAttr("marker", Bindings.flattenProperties(properties)); 17 | /// Sets the symbol to display for increasing value 18 | public static Box symbol(string val) => Interop.mkDecreasingAttr("symbol", val); 19 | /// Sets the color for increasing value. 20 | public static Box color(string val) => Interop.mkDecreasingAttr("color", val); 21 | public static Box line(params Box[] properties) => Interop.mkDecreasingAttr("line", Bindings.flattenProperties(properties)); 22 | /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. 23 | public static Box fillcolor(string val) => Interop.mkDecreasingAttr("fillcolor", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Delta.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Delta 15 | { 16 | /// Sets the reference value to compute the delta. By default, it is set to the current value. 17 | public static Box reference(int val) => Interop.mkDeltaAttr("reference", val); 18 | /// Sets the reference value to compute the delta. By default, it is set to the current value. 19 | public static Box reference(float val) => Interop.mkDeltaAttr("reference", val); 20 | /// Show relative change 21 | public static Box relative(bool val) => Interop.mkDeltaAttr("relative", val); 22 | /// Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format 23 | public static Box valueformat(string val) => Interop.mkDeltaAttr("valueformat", val); 24 | public static Box increasing(params Box[] properties) => Interop.mkDeltaAttr("increasing", Bindings.flattenProperties(properties)); 25 | public static Box decreasing(params Box[] properties) => Interop.mkDeltaAttr("decreasing", Bindings.flattenProperties(properties)); 26 | /// Set the font used to display the delta 27 | public static Box font(params Box[] properties) => Interop.mkDeltaAttr("font", Bindings.flattenProperties(properties)); 28 | } 29 | 30 | public static partial class Delta 31 | { 32 | /// Sets the position of delta with respect to the number. 33 | public static partial class Position 34 | { 35 | public static Box bottom() => Interop.mkDeltaAttr("position", "bottom"); 36 | public static Box left() => Interop.mkDeltaAttr("position", "left"); 37 | public static Box right() => Interop.mkDeltaAttr("position", "right"); 38 | public static Box top() => Interop.mkDeltaAttr("position", "top"); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Diagonal.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Diagonal 15 | { 16 | /// Determines whether or not subplots on the diagonal are displayed. 17 | public static Box visible(bool val) => Interop.mkDiagonalAttr("visible", val); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Dimensions.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Dimensions 15 | { 16 | public static Box dimension(params Box[] properties) => Interop.mkDimensionsAttr("dimension", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Domain.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Domain 15 | { 16 | /// Sets the horizontal domain of this pie trace (in plot fraction). 17 | public static Box x(int val) => Interop.mkDomainAttr("x", new[]{val}); 18 | /// Sets the horizontal domain of this pie trace (in plot fraction). 19 | public static Box x(IEnumerable values) => Interop.mkDomainAttr("x", values.ToArray()); 20 | /// Sets the horizontal domain of this pie trace (in plot fraction). 21 | public static Box x(float val) => Interop.mkDomainAttr("x", new[]{val}); 22 | /// Sets the horizontal domain of this pie trace (in plot fraction). 23 | public static Box x(IEnumerable values) => Interop.mkDomainAttr("x", values.ToArray()); 24 | /// Sets the vertical domain of this pie trace (in plot fraction). 25 | public static Box y(int val) => Interop.mkDomainAttr("y", new[]{val}); 26 | /// Sets the vertical domain of this pie trace (in plot fraction). 27 | public static Box y(IEnumerable values) => Interop.mkDomainAttr("y", values.ToArray()); 28 | /// Sets the vertical domain of this pie trace (in plot fraction). 29 | public static Box y(float val) => Interop.mkDomainAttr("y", new[]{val}); 30 | /// Sets the vertical domain of this pie trace (in plot fraction). 31 | public static Box y(IEnumerable values) => Interop.mkDomainAttr("y", values.ToArray()); 32 | /// If there is a layout grid, use the domain for this row in the grid for this pie trace . 33 | public static Box row(int val) => Interop.mkDomainAttr("row", val); 34 | /// If there is a layout grid, use the domain for this column in the grid for this pie trace . 35 | public static Box column(int val) => Interop.mkDomainAttr("column", val); 36 | } 37 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Edits.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Edits 15 | { 16 | /// Determines if the main anchor of the annotation is editable. The main anchor corresponds to the text (if no arrow) or the arrow (which drags the whole thing leaving the arrow length & direction unchanged). 17 | public static Box annotationPosition(bool val) => Interop.mkEditsAttr("annotationPosition", val); 18 | /// Has only an effect for annotations with arrows. Enables changing the length and direction of the arrow. 19 | public static Box annotationTail(bool val) => Interop.mkEditsAttr("annotationTail", val); 20 | /// Enables editing annotation text. 21 | public static Box annotationText(bool val) => Interop.mkEditsAttr("annotationText", val); 22 | /// Enables editing axis title text. 23 | public static Box axisTitleText(bool val) => Interop.mkEditsAttr("axisTitleText", val); 24 | /// Enables moving colorbars. 25 | public static Box colorbarPosition(bool val) => Interop.mkEditsAttr("colorbarPosition", val); 26 | /// Enables editing colorbar title text. 27 | public static Box colorbarTitleText(bool val) => Interop.mkEditsAttr("colorbarTitleText", val); 28 | /// Enables moving the legend. 29 | public static Box legendPosition(bool val) => Interop.mkEditsAttr("legendPosition", val); 30 | /// Enables editing the trace name fields from the legend 31 | public static Box legendText(bool val) => Interop.mkEditsAttr("legendText", val); 32 | /// Enables moving shapes. 33 | public static Box shapePosition(bool val) => Interop.mkEditsAttr("shapePosition", val); 34 | /// Enables editing the global layout title. 35 | public static Box titleText(bool val) => Interop.mkEditsAttr("titleText", val); 36 | } 37 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Eye.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Eye 15 | { 16 | public static Box x(int val) => Interop.mkEyeAttr("x", val); 17 | public static Box x(float val) => Interop.mkEyeAttr("x", val); 18 | public static Box y(int val) => Interop.mkEyeAttr("y", val); 19 | public static Box y(float val) => Interop.mkEyeAttr("y", val); 20 | public static Box z(int val) => Interop.mkEyeAttr("z", val); 21 | public static Box z(float val) => Interop.mkEyeAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Fill.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Fill 15 | { 16 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 17 | public static Box color(string val) => Interop.mkFillAttr("color", val); 18 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 19 | public static Box color(IEnumerable values) => Interop.mkFillAttr("color", values.ToArray()); 20 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 21 | public static Box color(params int[] values) => Interop.mkFillAttr("color", values); 22 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 23 | public static Box color(params float[] values) => Interop.mkFillAttr("color", values); 24 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 25 | public static Box color(IEnumerable> values) => Interop.mkFillAttr("color", Bindings.flatten2DArrayIf1D(values)); 26 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 27 | public static Box color(List values) => Interop.mkFillAttr("color", Bindings.flatten2DArrayIf1D(values)); 28 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 29 | public static Box color(params string[][] values) => Interop.mkFillAttr("color", Bindings.flatten2DArrayIf1D(values)); 30 | /// Sets the source reference on plot.ly for color . 31 | public static Box colorsrc(string val) => Interop.mkFillAttr("colorsrc", val); 32 | /// Sets the fill outline color (mapbox.layer.paint.fill-outline-color). Has an effect only when `type` is set to *fill*. 33 | public static Box outlinecolor(string val) => Interop.mkFillAttr("outlinecolor", val); 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Font.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Font 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkFontAttr("family", val); 18 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 19 | public static Box family(IEnumerable values) => Interop.mkFontAttr("family", values.ToArray()); 20 | public static Box size(int val) => Interop.mkFontAttr("size", val); 21 | public static Box size(float val) => Interop.mkFontAttr("size", val); 22 | public static Box size(IEnumerable values) => Interop.mkFontAttr("size", values.ToArray()); 23 | public static Box size(IEnumerable values) => Interop.mkFontAttr("size", values.ToArray()); 24 | public static Box color(string val) => Interop.mkFontAttr("color", val); 25 | public static Box color(IEnumerable values) => Interop.mkFontAttr("color", values.ToArray()); 26 | public static Box color(params int[] values) => Interop.mkFontAttr("color", values); 27 | public static Box color(params float[] values) => Interop.mkFontAttr("color", values); 28 | /// Sets the source reference on plot.ly for family . 29 | public static Box familysrc(string val) => Interop.mkFontAttr("familysrc", val); 30 | /// Sets the source reference on plot.ly for size . 31 | public static Box sizesrc(string val) => Interop.mkFontAttr("sizesrc", val); 32 | /// Sets the source reference on plot.ly for color . 33 | public static Box colorsrc(string val) => Interop.mkFontAttr("colorsrc", val); 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Frame.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Frame 15 | { 16 | /// The duration in milliseconds of each frame. If greater than the frame duration, it will be limited to the frame duration. 17 | public static Box duration(int val) => Interop.mkFrameAttr("duration", val); 18 | /// The duration in milliseconds of each frame. If greater than the frame duration, it will be limited to the frame duration. 19 | public static Box duration(float val) => Interop.mkFrameAttr("duration", val); 20 | /// Redraw the plot at completion of the transition. This is desirable for transitions that include properties that cannot be transitioned, but may significantly slow down updates that do not require a full redraw of the plot 21 | public static Box redraw(bool val) => Interop.mkFrameAttr("redraw", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Frames.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Frames 15 | { 16 | public static Box framesEntry(params Box[] properties) => Interop.mkFramesAttr("frames_entry", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Gauge.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Gauge 15 | { 16 | /// Set the appearance of the gauge's value 17 | public static Box bar(params Box[] properties) => Interop.mkGaugeAttr("bar", Bindings.flattenProperties(properties)); 18 | /// Sets the gauge background color. 19 | public static Box bgcolor(string val) => Interop.mkGaugeAttr("bgcolor", val); 20 | /// Sets the color of the border enclosing the gauge. 21 | public static Box bordercolor(string val) => Interop.mkGaugeAttr("bordercolor", val); 22 | /// Sets the width (in px) of the border enclosing the gauge. 23 | public static Box borderwidth(int val) => Interop.mkGaugeAttr("borderwidth", val); 24 | /// Sets the width (in px) of the border enclosing the gauge. 25 | public static Box borderwidth(float val) => Interop.mkGaugeAttr("borderwidth", val); 26 | public static Box axis(params Box[] properties) => Interop.mkGaugeAttr("axis", Bindings.flattenProperties(properties)); 27 | public static Box steps(params Box[] properties) => Interop.mkGaugeAttr("steps", Bindings.flattenProperties(properties)); 28 | public static Box threshold(params Box[] properties) => Interop.mkGaugeAttr("threshold", Bindings.flattenProperties(properties)); 29 | } 30 | 31 | public static partial class Gauge 32 | { 33 | /// Set the shape of the gauge 34 | public static partial class Shape 35 | { 36 | public static Box angular() => Interop.mkGaugeAttr("shape", "angular"); 37 | public static Box bullet() => Interop.mkGaugeAttr("shape", "bullet"); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Gradient.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Gradient 15 | { 16 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 17 | public static Box color(string val) => Interop.mkGradientAttr("color", val); 18 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 19 | public static Box color(IEnumerable values) => Interop.mkGradientAttr("color", values.ToArray()); 20 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 21 | public static Box color(params int[] values) => Interop.mkGradientAttr("color", values); 22 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 23 | public static Box color(params float[] values) => Interop.mkGradientAttr("color", values); 24 | /// Sets the source reference on plot.ly for type . 25 | public static Box typesrc(string val) => Interop.mkGradientAttr("typesrc", val); 26 | /// Sets the source reference on plot.ly for color . 27 | public static Box colorsrc(string val) => Interop.mkGradientAttr("colorsrc", val); 28 | } 29 | 30 | public static partial class Gradient 31 | { 32 | /// Sets the type of gradient used to fill the markers 33 | public static partial class _type 34 | { 35 | public static Box horizontal() => Interop.mkGradientAttr("type", "horizontal"); 36 | public static Box none() => Interop.mkGradientAttr("type", "none"); 37 | public static Box radial() => Interop.mkGradientAttr("type", "radial"); 38 | public static Box vertical() => Interop.mkGradientAttr("type", "vertical"); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Images.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Images 15 | { 16 | public static Box image(params Box[] properties) => Interop.mkImagesAttr("image", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Increasing.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Increasing 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkIncreasingAttr("marker", Bindings.flattenProperties(properties)); 17 | /// Sets the symbol to display for increasing value 18 | public static Box symbol(string val) => Interop.mkIncreasingAttr("symbol", val); 19 | /// Sets the color for increasing value. 20 | public static Box color(string val) => Interop.mkIncreasingAttr("color", val); 21 | public static Box line(params Box[] properties) => Interop.mkIncreasingAttr("line", Bindings.flattenProperties(properties)); 22 | /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. 23 | public static Box fillcolor(string val) => Interop.mkIncreasingAttr("fillcolor", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Labelfont.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Labelfont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkLabelfontAttr("family", val); 18 | public static Box size(int val) => Interop.mkLabelfontAttr("size", val); 19 | public static Box size(float val) => Interop.mkLabelfontAttr("size", val); 20 | public static Box color(string val) => Interop.mkLabelfontAttr("color", val); 21 | } 22 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Lataxis.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Lataxis 15 | { 16 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 17 | public static Box range(int val) => Interop.mkLataxisAttr("range", new[]{val}); 18 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 19 | public static Box range(IEnumerable values) => Interop.mkLataxisAttr("range", values.ToArray()); 20 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 21 | public static Box range(float val) => Interop.mkLataxisAttr("range", new[]{val}); 22 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 23 | public static Box range(IEnumerable values) => Interop.mkLataxisAttr("range", values.ToArray()); 24 | /// Sets whether or not graticule are shown on the map. 25 | public static Box showgrid(bool val) => Interop.mkLataxisAttr("showgrid", val); 26 | /// Sets the graticule's starting tick longitude/latitude. 27 | public static Box tick0(int val) => Interop.mkLataxisAttr("tick0", val); 28 | /// Sets the graticule's starting tick longitude/latitude. 29 | public static Box tick0(float val) => Interop.mkLataxisAttr("tick0", val); 30 | /// Sets the graticule's longitude/latitude tick step. 31 | public static Box dtick(int val) => Interop.mkLataxisAttr("dtick", val); 32 | /// Sets the graticule's longitude/latitude tick step. 33 | public static Box dtick(float val) => Interop.mkLataxisAttr("dtick", val); 34 | /// Sets the graticule's stroke color. 35 | public static Box gridcolor(string val) => Interop.mkLataxisAttr("gridcolor", val); 36 | /// Sets the graticule's stroke width (in px). 37 | public static Box gridwidth(int val) => Interop.mkLataxisAttr("gridwidth", val); 38 | /// Sets the graticule's stroke width (in px). 39 | public static Box gridwidth(float val) => Interop.mkLataxisAttr("gridwidth", val); 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Layers.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Layers 15 | { 16 | public static Box layer(params Box[] properties) => Interop.mkLayersAttr("layer", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Leaf.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Leaf 15 | { 16 | /// Sets the opacity of the leaves. With colorscale it is defaulted to 1; otherwise it is defaulted to 0.7 17 | public static Box opacity(int val) => Interop.mkLeafAttr("opacity", val); 18 | /// Sets the opacity of the leaves. With colorscale it is defaulted to 1; otherwise it is defaulted to 0.7 19 | public static Box opacity(float val) => Interop.mkLeafAttr("opacity", val); 20 | } 21 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Lightposition.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Lightposition 15 | { 16 | /// Numeric vector, representing the X coordinate for each vertex. 17 | public static Box x(int val) => Interop.mkLightpositionAttr("x", val); 18 | /// Numeric vector, representing the X coordinate for each vertex. 19 | public static Box x(float val) => Interop.mkLightpositionAttr("x", val); 20 | /// Numeric vector, representing the Y coordinate for each vertex. 21 | public static Box y(int val) => Interop.mkLightpositionAttr("y", val); 22 | /// Numeric vector, representing the Y coordinate for each vertex. 23 | public static Box y(float val) => Interop.mkLightpositionAttr("y", val); 24 | /// Numeric vector, representing the Z coordinate for each vertex. 25 | public static Box z(int val) => Interop.mkLightpositionAttr("z", val); 26 | /// Numeric vector, representing the Z coordinate for each vertex. 27 | public static Box z(float val) => Interop.mkLightpositionAttr("z", val); 28 | } 29 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Lonaxis.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Lonaxis 15 | { 16 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 17 | public static Box range(int val) => Interop.mkLonaxisAttr("range", new[]{val}); 18 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 19 | public static Box range(IEnumerable values) => Interop.mkLonaxisAttr("range", values.ToArray()); 20 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 21 | public static Box range(float val) => Interop.mkLonaxisAttr("range", new[]{val}); 22 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 23 | public static Box range(IEnumerable values) => Interop.mkLonaxisAttr("range", values.ToArray()); 24 | /// Sets whether or not graticule are shown on the map. 25 | public static Box showgrid(bool val) => Interop.mkLonaxisAttr("showgrid", val); 26 | /// Sets the graticule's starting tick longitude/latitude. 27 | public static Box tick0(int val) => Interop.mkLonaxisAttr("tick0", val); 28 | /// Sets the graticule's starting tick longitude/latitude. 29 | public static Box tick0(float val) => Interop.mkLonaxisAttr("tick0", val); 30 | /// Sets the graticule's longitude/latitude tick step. 31 | public static Box dtick(int val) => Interop.mkLonaxisAttr("dtick", val); 32 | /// Sets the graticule's longitude/latitude tick step. 33 | public static Box dtick(float val) => Interop.mkLonaxisAttr("dtick", val); 34 | /// Sets the graticule's stroke color. 35 | public static Box gridcolor(string val) => Interop.mkLonaxisAttr("gridcolor", val); 36 | /// Sets the graticule's stroke width (in px). 37 | public static Box gridwidth(int val) => Interop.mkLonaxisAttr("gridwidth", val); 38 | /// Sets the graticule's stroke width (in px). 39 | public static Box gridwidth(float val) => Interop.mkLonaxisAttr("gridwidth", val); 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Margin.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Margin 15 | { 16 | /// Sets the left margin (in px). 17 | public static Box l(int val) => Interop.mkMarginAttr("l", val); 18 | /// Sets the left margin (in px). 19 | public static Box l(float val) => Interop.mkMarginAttr("l", val); 20 | /// Sets the right margin (in px). 21 | public static Box r(int val) => Interop.mkMarginAttr("r", val); 22 | /// Sets the right margin (in px). 23 | public static Box r(float val) => Interop.mkMarginAttr("r", val); 24 | /// Sets the top margin (in px). 25 | public static Box t(int val) => Interop.mkMarginAttr("t", val); 26 | /// Sets the top margin (in px). 27 | public static Box t(float val) => Interop.mkMarginAttr("t", val); 28 | /// Sets the bottom margin (in px). 29 | public static Box b(int val) => Interop.mkMarginAttr("b", val); 30 | /// Sets the bottom margin (in px). 31 | public static Box b(float val) => Interop.mkMarginAttr("b", val); 32 | /// Sets the amount of padding (in px) between the plotting area and the axis lines 33 | public static Box pad(int val) => Interop.mkMarginAttr("pad", val); 34 | /// Sets the amount of padding (in px) between the plotting area and the axis lines 35 | public static Box pad(float val) => Interop.mkMarginAttr("pad", val); 36 | /// Turns on/off margin expansion computations. Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider are allowed to push the margins by defaults. 37 | public static Box autoexpand(bool val) => Interop.mkMarginAttr("autoexpand", val); 38 | } 39 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Meanline.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Meanline 15 | { 16 | /// Determines if a line corresponding to the sample's mean is shown inside the violins. If `box.visible` is turned on, the mean line is drawn inside the inner box. Otherwise, the mean line is drawn from one side of the violin to other. 17 | public static Box visible(bool val) => Interop.mkMeanlineAttr("visible", val); 18 | /// Sets the mean line color. 19 | public static Box color(string val) => Interop.mkMeanlineAttr("color", val); 20 | /// Sets the mean line width. 21 | public static Box width(int val) => Interop.mkMeanlineAttr("width", val); 22 | /// Sets the mean line width. 23 | public static Box width(float val) => Interop.mkMeanlineAttr("width", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Number.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Number 15 | { 16 | /// Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format 17 | public static Box valueformat(string val) => Interop.mkNumberAttr("valueformat", val); 18 | /// Set the font used to display main number 19 | public static Box font(params Box[] properties) => Interop.mkNumberAttr("font", Bindings.flattenProperties(properties)); 20 | /// Sets a prefix appearing before the number. 21 | public static Box prefix(string val) => Interop.mkNumberAttr("prefix", val); 22 | /// Sets a suffix appearing next to the number. 23 | public static Box suffix(string val) => Interop.mkNumberAttr("suffix", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Pad.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Pad 15 | { 16 | /// Sets the padding form the top (in px). 17 | public static Box t(int val) => Interop.mkPadAttr("t", val); 18 | /// Sets the padding form the top (in px). 19 | public static Box t(float val) => Interop.mkPadAttr("t", val); 20 | /// Sets the padding form the left (in px). 21 | public static Box l(int val) => Interop.mkPadAttr("l", val); 22 | /// Sets the padding form the left (in px). 23 | public static Box l(float val) => Interop.mkPadAttr("l", val); 24 | /// Sets the padding form the right (in px). 25 | public static Box r(int val) => Interop.mkPadAttr("r", val); 26 | /// Sets the padding form the right (in px). 27 | public static Box r(float val) => Interop.mkPadAttr("r", val); 28 | /// Sets the padding form the bottom (in px). 29 | public static Box b(int val) => Interop.mkPadAttr("b", val); 30 | /// Sets the padding form the bottom (in px). 31 | public static Box b(float val) => Interop.mkPadAttr("b", val); 32 | } 33 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Pathbar.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Pathbar 15 | { 16 | /// Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap. 17 | public static Box visible(bool val) => Interop.mkPathbarAttr("visible", val); 18 | /// Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side. 19 | public static Box thickness(int val) => Interop.mkPathbarAttr("thickness", val); 20 | /// Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side. 21 | public static Box thickness(float val) => Interop.mkPathbarAttr("thickness", val); 22 | /// Sets the font used inside `pathbar`. 23 | public static Box textfont(params Box[] properties) => Interop.mkPathbarAttr("textfont", Bindings.flattenProperties(properties)); 24 | } 25 | 26 | public static partial class Pathbar 27 | { 28 | /// Determines on which side of the the treemap the `pathbar` should be presented. 29 | public static partial class Side 30 | { 31 | public static Box bottom() => Interop.mkPathbarAttr("side", "bottom"); 32 | public static Box top() => Interop.mkPathbarAttr("side", "top"); 33 | } 34 | 35 | /// Determines which shape is used for edges between `barpath` labels. 36 | public static partial class Edgeshape 37 | { 38 | public static Box rightSlant() => Interop.mkPathbarAttr("edgeshape", "/"); 39 | public static Box pointedLeft() => Interop.mkPathbarAttr("edgeshape", "<"); 40 | public static Box pointedRight() => Interop.mkPathbarAttr("edgeshape", ">"); 41 | public static Box leftSlant() => Interop.mkPathbarAttr("edgeshape", "\\"); 42 | public static Box straight() => Interop.mkPathbarAttr("edgeshape", "|"); 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Project.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Project 15 | { 16 | /// Determines whether or not these contour lines are projected on the x plane. If `highlight` is set to *true* (the default), the projected lines are shown on hover. If `show` is set to *true*, the projected lines are shown in permanence. 17 | public static Box x(bool val) => Interop.mkProjectAttr("x", val); 18 | /// Determines whether or not these contour lines are projected on the y plane. If `highlight` is set to *true* (the default), the projected lines are shown on hover. If `show` is set to *true*, the projected lines are shown in permanence. 19 | public static Box y(bool val) => Interop.mkProjectAttr("y", val); 20 | /// Determines whether or not these contour lines are projected on the z plane. If `highlight` is set to *true* (the default), the projected lines are shown on hover. If `show` is set to *true*, the projected lines are shown in permanence. 21 | public static Box z(bool val) => Interop.mkProjectAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Rangefont.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Rangefont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkRangefontAttr("family", val); 18 | public static Box size(int val) => Interop.mkRangefontAttr("size", val); 19 | public static Box size(float val) => Interop.mkRangefontAttr("size", val); 20 | public static Box color(string val) => Interop.mkRangefontAttr("color", val); 21 | } 22 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Rotation.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Rotation 15 | { 16 | /// Rotates the map along parallels (in degrees East). Defaults to the center of the `lonaxis.range` values. 17 | public static Box lon(int val) => Interop.mkRotationAttr("lon", val); 18 | /// Rotates the map along parallels (in degrees East). Defaults to the center of the `lonaxis.range` values. 19 | public static Box lon(float val) => Interop.mkRotationAttr("lon", val); 20 | /// Rotates the map along meridians (in degrees North). 21 | public static Box lat(int val) => Interop.mkRotationAttr("lat", val); 22 | /// Rotates the map along meridians (in degrees North). 23 | public static Box lat(float val) => Interop.mkRotationAttr("lat", val); 24 | /// Roll the map (in degrees) For example, a roll of *180* makes the map appear upside down. 25 | public static Box roll(int val) => Interop.mkRotationAttr("roll", val); 26 | /// Roll the map (in degrees) For example, a roll of *180* makes the map appear upside down. 27 | public static Box roll(float val) => Interop.mkRotationAttr("roll", val); 28 | } 29 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Selected.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Selected 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkSelectedAttr("marker", Bindings.flattenProperties(properties)); 17 | public static Box textfont(params Box[] properties) => Interop.mkSelectedAttr("textfont", Bindings.flattenProperties(properties)); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Shapes.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Shapes 15 | { 16 | public static Box shape(params Box[] properties) => Interop.mkShapesAttr("shape", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Slices.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Slices 15 | { 16 | public static Box x(params Box[] properties) => Interop.mkSlicesAttr("x", Bindings.flattenProperties(properties)); 17 | public static Box y(params Box[] properties) => Interop.mkSlicesAttr("y", Bindings.flattenProperties(properties)); 18 | public static Box z(params Box[] properties) => Interop.mkSlicesAttr("z", Bindings.flattenProperties(properties)); 19 | } 20 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Sliders.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Sliders 15 | { 16 | public static Box slider(params Box[] properties) => Interop.mkSlidersAttr("slider", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Sort.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Sort 15 | { 16 | /// Determines whether this sort transform is enabled or disabled. 17 | public static Box enabled(bool val) => Interop.mkSortAttr("enabled", val); 18 | /// Sets the target by which the sort transform is applied. If a string, *target* is assumed to be a reference to a data array in the parent trace object. To sort about nested variables, use *.* to access them. For example, set `target` to *marker.size* to sort about the marker size array. If an array, *target* is then the data array by which the sort transform is applied. 19 | public static Box target(string val) => Interop.mkSortAttr("target", val); 20 | /// Sets the target by which the sort transform is applied. If a string, *target* is assumed to be a reference to a data array in the parent trace object. To sort about nested variables, use *.* to access them. For example, set `target` to *marker.size* to sort about the marker size array. If an array, *target* is then the data array by which the sort transform is applied. 21 | public static Box target(IEnumerable values) => Interop.mkSortAttr("target", values.ToArray()); 22 | /// Sets the source reference on plot.ly for target . 23 | public static Box targetsrc(string val) => Interop.mkSortAttr("targetsrc", val); 24 | } 25 | 26 | public static partial class Sort 27 | { 28 | /// Sets the sort transform order. 29 | public static partial class Order 30 | { 31 | public static Box ascending() => Interop.mkSortAttr("order", "ascending"); 32 | public static Box descending() => Interop.mkSortAttr("order", "descending"); 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Spaceframe.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Spaceframe 15 | { 16 | /// Displays/hides tetrahedron shapes between minimum and maximum iso-values. Often useful when either caps or surfaces are disabled or filled with values less than 1. 17 | public static Box show(bool val) => Interop.mkSpaceframeAttr("show", val); 18 | /// Sets the fill ratio of the `spaceframe` elements. The default fill value is 0.15 meaning that only 15% of the area of every faces of tetras would be shaded. Applying a greater `fill` ratio would allow the creation of stronger elements or could be sued to have entirely closed areas (in case of using 1). 19 | public static Box fill(int val) => Interop.mkSpaceframeAttr("fill", val); 20 | /// Sets the fill ratio of the `spaceframe` elements. The default fill value is 0.15 meaning that only 15% of the area of every faces of tetras would be shaded. Applying a greater `fill` ratio would allow the creation of stronger elements or could be sued to have entirely closed areas (in case of using 1). 21 | public static Box fill(float val) => Interop.mkSpaceframeAttr("fill", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Steps.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Steps 15 | { 16 | public static Box step(params Box[] properties) => Interop.mkStepsAttr("step", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Stream.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Stream 15 | { 16 | /// The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. 17 | public static Box token(string val) => Interop.mkStreamAttr("token", val); 18 | /// Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to *50*, only the newest 50 points will be displayed on the plot. 19 | public static Box maxpoints(int val) => Interop.mkStreamAttr("maxpoints", val); 20 | /// Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to *50*, only the newest 50 points will be displayed on the plot. 21 | public static Box maxpoints(float val) => Interop.mkStreamAttr("maxpoints", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Styles.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Styles 15 | { 16 | public static Box style(params Box[] properties) => Interop.mkStylesAttr("style", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Textfont.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Textfont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkTextfontAttr("family", val); 18 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 19 | public static Box family(IEnumerable values) => Interop.mkTextfontAttr("family", values.ToArray()); 20 | public static Box size(int val) => Interop.mkTextfontAttr("size", val); 21 | public static Box size(float val) => Interop.mkTextfontAttr("size", val); 22 | public static Box size(IEnumerable values) => Interop.mkTextfontAttr("size", values.ToArray()); 23 | public static Box size(IEnumerable values) => Interop.mkTextfontAttr("size", values.ToArray()); 24 | public static Box color(string val) => Interop.mkTextfontAttr("color", val); 25 | public static Box color(IEnumerable values) => Interop.mkTextfontAttr("color", values.ToArray()); 26 | public static Box color(params int[] values) => Interop.mkTextfontAttr("color", values); 27 | public static Box color(params float[] values) => Interop.mkTextfontAttr("color", values); 28 | /// Sets the source reference on plot.ly for family . 29 | public static Box familysrc(string val) => Interop.mkTextfontAttr("familysrc", val); 30 | /// Sets the source reference on plot.ly for size . 31 | public static Box sizesrc(string val) => Interop.mkTextfontAttr("sizesrc", val); 32 | /// Sets the source reference on plot.ly for color . 33 | public static Box colorsrc(string val) => Interop.mkTextfontAttr("colorsrc", val); 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Threshold.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Threshold 15 | { 16 | public static Box line(params Box[] properties) => Interop.mkThresholdAttr("line", Bindings.flattenProperties(properties)); 17 | /// Sets the thickness of the threshold line as a fraction of the thickness of the gauge. 18 | public static Box thickness(int val) => Interop.mkThresholdAttr("thickness", val); 19 | /// Sets the thickness of the threshold line as a fraction of the thickness of the gauge. 20 | public static Box thickness(float val) => Interop.mkThresholdAttr("thickness", val); 21 | /// Sets a treshold value drawn as a line. 22 | public static Box value(int val) => Interop.mkThresholdAttr("value", val); 23 | /// Sets a treshold value drawn as a line. 24 | public static Box value(float val) => Interop.mkThresholdAttr("value", val); 25 | } 26 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Tickfont.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Tickfont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkTickfontAttr("family", val); 18 | public static Box size(int val) => Interop.mkTickfontAttr("size", val); 19 | public static Box size(float val) => Interop.mkTickfontAttr("size", val); 20 | public static Box color(string val) => Interop.mkTickfontAttr("color", val); 21 | } 22 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Tickformatstops.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Tickformatstops 15 | { 16 | public static Box tickformatstop(params Box[] properties) => Interop.mkTickformatstopsAttr("tickformatstop", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Totals.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Totals 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkTotalsAttr("marker", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Transforms.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Transforms 15 | { 16 | public static Box aggregate(params Box[] properties) => Interop.mkTransformsAttr("aggregate", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkAggregateAttr("type", "aggregate")}))); 17 | public static Box filter(params Box[] properties) => Interop.mkTransformsAttr("filter", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkFilterAttr("type", "filter")}))); 18 | public static Box groupby(params Box[] properties) => Interop.mkTransformsAttr("groupby", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkGroupbyAttr("type", "groupby")}))); 19 | public static Box sort(params Box[] properties) => Interop.mkTransformsAttr("sort", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkSortAttr("type", "sort")}))); 20 | } 21 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Uniformtext.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Uniformtext 15 | { 16 | /// Sets the minimum text size between traces of the same type. 17 | public static Box minsize(int val) => Interop.mkUniformtextAttr("minsize", val); 18 | /// Sets the minimum text size between traces of the same type. 19 | public static Box minsize(float val) => Interop.mkUniformtextAttr("minsize", val); 20 | } 21 | 22 | public static partial class Uniformtext 23 | { 24 | /// Determines how the font size for various text elements are uniformed between each trace type. If the computed text sizes were smaller than the minimum size defined by `uniformtext.minsize` using *hide* option hides the text; and using *show* option shows the text without further downscaling. Please note that if the size defined by `minsize` is greater than the font size defined by trace, then the `minsize` is used. 25 | public static partial class Mode 26 | { 27 | public static Box hide() => Interop.mkUniformtextAttr("mode", "hide"); 28 | public static Box show() => Interop.mkUniformtextAttr("mode", "show"); 29 | public static Box _false() => Interop.mkUniformtextAttr("mode", false); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Unselected.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Unselected 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkUnselectedAttr("marker", Bindings.flattenProperties(properties)); 17 | public static Box textfont(params Box[] properties) => Interop.mkUnselectedAttr("textfont", Bindings.flattenProperties(properties)); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Up.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Up 15 | { 16 | public static Box x(int val) => Interop.mkUpAttr("x", val); 17 | public static Box x(float val) => Interop.mkUpAttr("x", val); 18 | public static Box y(int val) => Interop.mkUpAttr("y", val); 19 | public static Box y(float val) => Interop.mkUpAttr("y", val); 20 | public static Box z(int val) => Interop.mkUpAttr("z", val); 21 | public static Box z(float val) => Interop.mkUpAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.H5/Props/Updatemenus.cs: -------------------------------------------------------------------------------- 1 | namespace PlotlyH5 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using H5; 12 | using static H5.Core.dom; 13 | 14 | public static partial class Updatemenus 15 | { 16 | public static Box updatemenu(params Box[] properties) => Interop.mkUpdatemenusAttr("updatemenu", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.H5/h5.json: -------------------------------------------------------------------------------- 1 | // See all h5.json configuration options at https://github.com/bridgedotnet/H5/wiki/global-configuration 2 | { 3 | "sourceMap": { "enabled": false }, 4 | "html": { "disabled": true }, 5 | "resources": [ 6 | 7 | // Include the JS that is compiled from the C# in this project - be sure to include non-minified AND minified version (and to include the meta data files required for reflection) 8 | // because H5 will only include ".min.js" versions of resources when a project that references this is built in Release and will only include NON-".min.js" versions when built 9 | // in Debug (this is the default behaviour for projects that don't have any external resources to build into the binary but when a "resources" section is present in a bridge.json 10 | // file then that default behaviour is lost and must be opted back into - see suggestion 1 at the bottom of he opening comment on https://github.com/bridgedotnet/H5/issues/3991). 11 | { 12 | "name": "Plotly.H5.js", 13 | "files": [ "$(OutDir)h5/Plotly.H5.js" ] 14 | }, 15 | { 16 | "name": "Plotly.H5.min.js", 17 | "files": [ "$(OutDir)h5/Plotly.H5.min.js" ] 18 | }, 19 | { 20 | "name": "plotly.js", 21 | "files": [ "h5/plotly.js" ] 22 | }, 23 | { 24 | "name": "plotly.min.js", 25 | "files": [ "h5/plotly.min.js" ] 26 | } 27 | ], 28 | "outputFormatting": "Both", 29 | "cleanOutputFolderBeforeBuildPattern": "*.*", 30 | "loader": { "type": "Global" }, 31 | "rules": { 32 | "anonymousType": "Plain", 33 | "arrayIndex": "Managed", 34 | "autoProperty": "Plain", 35 | "boxing": "Managed", 36 | "externalCast": "Plain", 37 | "inlineComment": "Plain", 38 | "integer": "Managed", 39 | "lambda": "Plain" 40 | }, 41 | "reflection": { 42 | "disabled": true 43 | } 44 | } -------------------------------------------------------------------------------- /Plotly.H5/plotly-h5-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/curiosity-ai/plotly-sharp/3eebaf8b9af7b3dc7a2a50494678629b6e423394/Plotly.H5/plotly-h5-logo.png -------------------------------------------------------------------------------- /Plotly.Sharp.Demo/Plotly.Sharp.Demo.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Plotly.Sharp.Demo/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Plotly.Sharp.Demo 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | var testData = new[] 10 | { 11 | new float[]{ 1, 20, 30 }, 12 | new float[]{20, 1, 60 }, 13 | new float[]{30, 60, 1 } 14 | }; 15 | 16 | var chart = new Plot(Plot.traces(Traces.heatmap(Heatmap.z(testData)))); 17 | 18 | Console.WriteLine(chart.Render()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Plotly.Sharp.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.14.35906.104 d17.14 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Plotly.Generator", "Plotly.Generator\Plotly.Generator.fsproj", "{D4274115-77E5-4A1F-929C-67473DDC254F}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "azure-devops", "azure-devops", "{8B7E9B7F-5A91-4C0A-9F68-60F5530FDDB0}" 9 | ProjectSection(SolutionItems) = preProject 10 | .devops\build-nuget.yml = .devops\build-nuget.yml 11 | EndProjectSection 12 | EndProject 13 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3CE3C21C-F645-4FF2-B6D2-0AB7C1E0FCF1}" 14 | ProjectSection(SolutionItems) = preProject 15 | README.md = README.md 16 | EndProjectSection 17 | EndProject 18 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plotly.Sharp", "Plotly.Sharp\Plotly.Sharp.csproj", "{E70320D9-3325-4788-9795-B2AAA93E760D}" 19 | EndProject 20 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plotly.Sharp.Demo", "Plotly.Sharp.Demo\Plotly.Sharp.Demo.csproj", "{36176F0E-823C-48CA-A3C9-49F5458D266D}" 21 | EndProject 22 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plotly.H5", "Plotly.H5\Plotly.H5.csproj", "{B81B71AB-7C09-47A6-9701-AC208850F3E5}" 23 | EndProject 24 | Global 25 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 26 | Debug|Any CPU = Debug|Any CPU 27 | Release|Any CPU = Release|Any CPU 28 | EndGlobalSection 29 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 30 | {D4274115-77E5-4A1F-929C-67473DDC254F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 31 | {D4274115-77E5-4A1F-929C-67473DDC254F}.Debug|Any CPU.Build.0 = Debug|Any CPU 32 | {D4274115-77E5-4A1F-929C-67473DDC254F}.Release|Any CPU.ActiveCfg = Release|Any CPU 33 | {D4274115-77E5-4A1F-929C-67473DDC254F}.Release|Any CPU.Build.0 = Release|Any CPU 34 | {E70320D9-3325-4788-9795-B2AAA93E760D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 35 | {E70320D9-3325-4788-9795-B2AAA93E760D}.Debug|Any CPU.Build.0 = Debug|Any CPU 36 | {E70320D9-3325-4788-9795-B2AAA93E760D}.Release|Any CPU.ActiveCfg = Release|Any CPU 37 | {E70320D9-3325-4788-9795-B2AAA93E760D}.Release|Any CPU.Build.0 = Release|Any CPU 38 | {36176F0E-823C-48CA-A3C9-49F5458D266D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 39 | {36176F0E-823C-48CA-A3C9-49F5458D266D}.Debug|Any CPU.Build.0 = Debug|Any CPU 40 | {36176F0E-823C-48CA-A3C9-49F5458D266D}.Release|Any CPU.ActiveCfg = Release|Any CPU 41 | {36176F0E-823C-48CA-A3C9-49F5458D266D}.Release|Any CPU.Build.0 = Release|Any CPU 42 | {B81B71AB-7C09-47A6-9701-AC208850F3E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 43 | {B81B71AB-7C09-47A6-9701-AC208850F3E5}.Debug|Any CPU.Build.0 = Debug|Any CPU 44 | {B81B71AB-7C09-47A6-9701-AC208850F3E5}.Release|Any CPU.ActiveCfg = Release|Any CPU 45 | {B81B71AB-7C09-47A6-9701-AC208850F3E5}.Release|Any CPU.Build.0 = Release|Any CPU 46 | EndGlobalSection 47 | GlobalSection(SolutionProperties) = preSolution 48 | HideSolutionNode = FALSE 49 | EndGlobalSection 50 | GlobalSection(ExtensibilityGlobals) = postSolution 51 | SolutionGuid = {36868868-9865-46CA-AF06-29BE13308C82} 52 | EndGlobalSection 53 | EndGlobal 54 | -------------------------------------------------------------------------------- /Plotly.Sharp/Plotly.Sharp.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | netstandard2.0 4 | 0.0.42 5 | false 6 | (c) Copyright 2019 Curiosity GmbH - all right reserved 7 | Curiosity GmbH 8 | Curiosity GmbH 9 | false 10 | latest 11 | https://github.com/curiosity-ai/plotly.sharp 12 | https://github.com/curiosity-ai/plotly.sharp 13 | Plotly.Sharp 14 | Plotly 15 | Plotly.Sharp 16 | Plotly.Sharp provides a strongly-typed binding that generates embedded HTML using Plotly. 17 | Plotly, Graphs, Charts, HTML 18 | plotly-sharp-logo.png 19 | MIT 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | True 29 | 30 | 31 | 32 | 33 | 34 | True 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Aggregate.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Aggregate 15 | { 16 | /// Determines whether this aggregate transform is enabled or disabled. 17 | public static Box enabled(bool val) => Interop.mkAggregateAttr("enabled", val); 18 | /// Sets the grouping target to which the aggregation is applied. Data points with matching group values will be coalesced into one point, using the supplied aggregation functions to reduce data in other data arrays. If a string, `groups` is assumed to be a reference to a data array in the parent trace object. To aggregate by nested variables, use *.* to access them. For example, set `groups` to *marker.color* to aggregate about the marker color array. If an array, `groups` is itself the data array by which we aggregate. 19 | public static Box groups(string val) => Interop.mkAggregateAttr("groups", val); 20 | /// Sets the grouping target to which the aggregation is applied. Data points with matching group values will be coalesced into one point, using the supplied aggregation functions to reduce data in other data arrays. If a string, `groups` is assumed to be a reference to a data array in the parent trace object. To aggregate by nested variables, use *.* to access them. For example, set `groups` to *marker.color* to aggregate about the marker color array. If an array, `groups` is itself the data array by which we aggregate. 21 | public static Box groups(IEnumerable values) => Interop.mkAggregateAttr("groups", values.ToArray()); 22 | public static Box aggregations(params Box[] properties) => Interop.mkAggregateAttr("aggregations", Bindings.flattenProperties(properties)); 23 | /// Sets the source reference on plot.ly for groups . 24 | public static Box groupssrc(string val) => Interop.mkAggregateAttr("groupssrc", val); 25 | } 26 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Aggregations.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Aggregations 15 | { 16 | public static Box aggregation(params Box[] properties) => Interop.mkAggregationsAttr("aggregation", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Animation.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Animation 15 | { 16 | /// Play frames starting at the current frame instead of the beginning. 17 | public static Box fromcurrent(bool val) => Interop.mkAnimationAttr("fromcurrent", val); 18 | public static Box frame(params Box[] properties) => Interop.mkAnimationAttr("frame", Bindings.flattenProperties(properties)); 19 | public static Box transition(params Box[] properties) => Interop.mkAnimationAttr("transition", Bindings.flattenProperties(properties)); 20 | } 21 | 22 | public static partial class Animation 23 | { 24 | /// Describes how a new animate call interacts with currently-running animations. If `immediate`, current animations are interrupted and the new animation is started. If `next`, the current frame is allowed to complete, after which the new animation is started. If `afterall` all existing frames are animated to completion before the new animation is started. 25 | public static partial class Mode 26 | { 27 | public static Box afterall() => Interop.mkAnimationAttr("mode", "afterall"); 28 | public static Box immediate() => Interop.mkAnimationAttr("mode", "immediate"); 29 | public static Box next() => Interop.mkAnimationAttr("mode", "next"); 30 | } 31 | 32 | /// The direction in which to play the frames triggered by the animation call 33 | public static partial class Direction 34 | { 35 | public static Box forward() => Interop.mkAnimationAttr("direction", "forward"); 36 | public static Box reverse() => Interop.mkAnimationAttr("direction", "reverse"); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Annotations.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Annotations 15 | { 16 | public static Box annotation(params Box[] properties) => Interop.mkAnnotationsAttr("annotation", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Aspectratio.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Aspectratio 15 | { 16 | public static Box x(int val) => Interop.mkAspectratioAttr("x", val); 17 | public static Box x(float val) => Interop.mkAspectratioAttr("x", val); 18 | public static Box y(int val) => Interop.mkAspectratioAttr("y", val); 19 | public static Box y(float val) => Interop.mkAspectratioAttr("y", val); 20 | public static Box z(int val) => Interop.mkAspectratioAttr("z", val); 21 | public static Box z(float val) => Interop.mkAspectratioAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Border.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Border 15 | { 16 | /// Sets the stroke color. It accepts a specific color. If the color is not fully opaque and there are hundreds of thousands of points, it may cause slower zooming and panning. 17 | public static Box color(string val) => Interop.mkBorderAttr("color", val); 18 | /// Specifies what fraction of the marker area is covered with the border. 19 | public static Box arearatio(int val) => Interop.mkBorderAttr("arearatio", val); 20 | /// Specifies what fraction of the marker area is covered with the border. 21 | public static Box arearatio(float val) => Interop.mkBorderAttr("arearatio", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Buttons.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Buttons 15 | { 16 | /// Sets the specifications for each buttons. By default, a range selector comes with no buttons. 17 | public static Box button(params Box[] properties) => Interop.mkButtonsAttr("button", Bindings.flattenProperties(properties)); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Camera.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Camera 15 | { 16 | /// Sets the (x,y,z) components of the 'up' camera vector. This vector determines the up direction of this scene with respect to the page. The default is *{x: 0, y: 0, z: 1}* which means that the z axis points up. 17 | public static Box up(params Box[] properties) => Interop.mkCameraAttr("up", Bindings.flattenProperties(properties)); 18 | /// Sets the (x,y,z) components of the 'center' camera vector This vector determines the translation (x,y,z) space about the center of this scene. By default, there is no such translation. 19 | public static Box center(params Box[] properties) => Interop.mkCameraAttr("center", Bindings.flattenProperties(properties)); 20 | /// Sets the (x,y,z) components of the 'eye' camera vector. This vector determines the view point about the origin of this scene. 21 | public static Box eye(params Box[] properties) => Interop.mkCameraAttr("eye", Bindings.flattenProperties(properties)); 22 | public static Box projection(params Box[] properties) => Interop.mkCameraAttr("projection", Bindings.flattenProperties(properties)); 23 | } 24 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Caps.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Caps 15 | { 16 | public static Box x(params Box[] properties) => Interop.mkCapsAttr("x", Bindings.flattenProperties(properties)); 17 | public static Box y(params Box[] properties) => Interop.mkCapsAttr("y", Bindings.flattenProperties(properties)); 18 | public static Box z(params Box[] properties) => Interop.mkCapsAttr("z", Bindings.flattenProperties(properties)); 19 | } 20 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Center.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Center 15 | { 16 | public static Box x(int val) => Interop.mkCenterAttr("x", val); 17 | public static Box x(float val) => Interop.mkCenterAttr("x", val); 18 | public static Box y(int val) => Interop.mkCenterAttr("y", val); 19 | public static Box y(float val) => Interop.mkCenterAttr("y", val); 20 | public static Box z(int val) => Interop.mkCenterAttr("z", val); 21 | public static Box z(float val) => Interop.mkCenterAttr("z", val); 22 | /// Sets the longitude 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. 23 | public static Box lon(int val) => Interop.mkCenterAttr("lon", val); 24 | /// Sets the longitude 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. 25 | public static Box lon(float val) => Interop.mkCenterAttr("lon", val); 26 | /// Sets the latitude of the map's center. For all projection types, the map's latitude center lies at the middle of the latitude range by default. 27 | public static Box lat(int val) => Interop.mkCenterAttr("lat", val); 28 | /// Sets the latitude of the map's center. For all projection types, the map's latitude center lies at the middle of the latitude range by default. 29 | public static Box lat(float val) => Interop.mkCenterAttr("lat", val); 30 | } 31 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Circle.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Circle 15 | { 16 | /// Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to *circle*. 17 | public static Box radius(int val) => Interop.mkCircleAttr("radius", val); 18 | /// Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to *circle*. 19 | public static Box radius(float val) => Interop.mkCircleAttr("radius", val); 20 | } 21 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Colorscale.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Colorscale 15 | { 16 | /// Sets the default sequential colorscale for positive values. Note that `autocolorscale` must be true for this attribute to work. 17 | public static Box sequential(string val) => Interop.mkColorscaleAttr("sequential", val); 18 | /// Sets the default sequential colorscale for positive values. Note that `autocolorscale` must be true for this attribute to work. 19 | public static Box sequential(List values) => Interop.mkColorscaleAttr("sequential", Bindings.flatten2DArrayIf1D(values)); 20 | /// Sets the default sequential colorscale for negative values. Note that `autocolorscale` must be true for this attribute to work. 21 | public static Box sequentialminus(string val) => Interop.mkColorscaleAttr("sequentialminus", val); 22 | /// Sets the default sequential colorscale for negative values. Note that `autocolorscale` must be true for this attribute to work. 23 | public static Box sequentialminus(List values) => Interop.mkColorscaleAttr("sequentialminus", Bindings.flatten2DArrayIf1D(values)); 24 | /// Sets the default diverging colorscale. Note that `autocolorscale` must be true for this attribute to work. 25 | public static Box diverging(string val) => Interop.mkColorscaleAttr("diverging", val); 26 | /// Sets the default diverging colorscale. Note that `autocolorscale` must be true for this attribute to work. 27 | public static Box diverging(List values) => Interop.mkColorscaleAttr("diverging", Bindings.flatten2DArrayIf1D(values)); 28 | } 29 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Colorscales.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Colorscales 15 | { 16 | public static Box concentrationscales(params Box[] properties) => Interop.mkColorscalesAttr("concentrationscales", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Connector.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Connector 15 | { 16 | /// Sets the fill color. 17 | public static Box fillcolor(string val) => Interop.mkConnectorAttr("fillcolor", val); 18 | public static Box line(params Box[] properties) => Interop.mkConnectorAttr("line", Bindings.flattenProperties(properties)); 19 | /// Determines if connector regions and lines are drawn. 20 | public static Box visible(bool val) => Interop.mkConnectorAttr("visible", val); 21 | } 22 | 23 | public static partial class Connector 24 | { 25 | /// Sets the shape of connector lines. 26 | public static partial class Mode 27 | { 28 | public static Box between() => Interop.mkConnectorAttr("mode", "between"); 29 | public static Box spanning() => Interop.mkConnectorAttr("mode", "spanning"); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Cumulative.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Cumulative 15 | { 16 | /// If true, display the cumulative distribution by summing the binned values. Use the `direction` and `centralbin` attributes to tune the accumulation method. Note: in this mode, the *density* `histnorm` settings behave the same as their equivalents without *density*: ** and *density* both rise to the number of data points, and *probability* and *probability density* both rise to the number of sample points. 17 | public static Box enabled(bool val) => Interop.mkCumulativeAttr("enabled", val); 18 | } 19 | 20 | public static partial class Cumulative 21 | { 22 | /// Only applies if cumulative is enabled. If *increasing* (default) we sum all prior bins, so the result increases from left to right. If *decreasing* we sum later bins so the result decreases from left to right. 23 | public static partial class Direction 24 | { 25 | public static Box decreasing() => Interop.mkCumulativeAttr("direction", "decreasing"); 26 | public static Box increasing() => Interop.mkCumulativeAttr("direction", "increasing"); 27 | } 28 | 29 | /// Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. *include* is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. *exclude* makes the opposite half-bin bias, and *half* removes it. 30 | public static partial class Currentbin 31 | { 32 | public static Box exclude() => Interop.mkCumulativeAttr("currentbin", "exclude"); 33 | public static Box half() => Interop.mkCumulativeAttr("currentbin", "half"); 34 | public static Box _include() => Interop.mkCumulativeAttr("currentbin", "include"); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Currentvalue.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Currentvalue 15 | { 16 | /// Shows the currently-selected value above the slider. 17 | public static Box visible(bool val) => Interop.mkCurrentvalueAttr("visible", val); 18 | /// The amount of space, in pixels, between the current value label and the slider. 19 | public static Box offset(int val) => Interop.mkCurrentvalueAttr("offset", val); 20 | /// The amount of space, in pixels, between the current value label and the slider. 21 | public static Box offset(float val) => Interop.mkCurrentvalueAttr("offset", val); 22 | /// When currentvalue.visible is true, this sets the prefix of the label. 23 | public static Box prefix(string val) => Interop.mkCurrentvalueAttr("prefix", val); 24 | /// When currentvalue.visible is true, this sets the suffix of the label. 25 | public static Box suffix(string val) => Interop.mkCurrentvalueAttr("suffix", val); 26 | /// Sets the font of the current value label text. 27 | public static Box font(params Box[] properties) => Interop.mkCurrentvalueAttr("font", Bindings.flattenProperties(properties)); 28 | } 29 | 30 | public static partial class Currentvalue 31 | { 32 | /// The alignment of the value readout relative to the length of the slider. 33 | public static partial class Xanchor 34 | { 35 | public static Box center() => Interop.mkCurrentvalueAttr("xanchor", "center"); 36 | public static Box left() => Interop.mkCurrentvalueAttr("xanchor", "left"); 37 | public static Box right() => Interop.mkCurrentvalueAttr("xanchor", "right"); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Decreasing.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Decreasing 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkDecreasingAttr("marker", Bindings.flattenProperties(properties)); 17 | /// Sets the symbol to display for increasing value 18 | public static Box symbol(string val) => Interop.mkDecreasingAttr("symbol", val); 19 | /// Sets the color for increasing value. 20 | public static Box color(string val) => Interop.mkDecreasingAttr("color", val); 21 | public static Box line(params Box[] properties) => Interop.mkDecreasingAttr("line", Bindings.flattenProperties(properties)); 22 | /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. 23 | public static Box fillcolor(string val) => Interop.mkDecreasingAttr("fillcolor", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Delta.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Delta 15 | { 16 | /// Sets the reference value to compute the delta. By default, it is set to the current value. 17 | public static Box reference(int val) => Interop.mkDeltaAttr("reference", val); 18 | /// Sets the reference value to compute the delta. By default, it is set to the current value. 19 | public static Box reference(float val) => Interop.mkDeltaAttr("reference", val); 20 | /// Show relative change 21 | public static Box relative(bool val) => Interop.mkDeltaAttr("relative", val); 22 | /// Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format 23 | public static Box valueformat(string val) => Interop.mkDeltaAttr("valueformat", val); 24 | public static Box increasing(params Box[] properties) => Interop.mkDeltaAttr("increasing", Bindings.flattenProperties(properties)); 25 | public static Box decreasing(params Box[] properties) => Interop.mkDeltaAttr("decreasing", Bindings.flattenProperties(properties)); 26 | /// Set the font used to display the delta 27 | public static Box font(params Box[] properties) => Interop.mkDeltaAttr("font", Bindings.flattenProperties(properties)); 28 | } 29 | 30 | public static partial class Delta 31 | { 32 | /// Sets the position of delta with respect to the number. 33 | public static partial class Position 34 | { 35 | public static Box bottom() => Interop.mkDeltaAttr("position", "bottom"); 36 | public static Box left() => Interop.mkDeltaAttr("position", "left"); 37 | public static Box right() => Interop.mkDeltaAttr("position", "right"); 38 | public static Box top() => Interop.mkDeltaAttr("position", "top"); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Diagonal.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Diagonal 15 | { 16 | /// Determines whether or not subplots on the diagonal are displayed. 17 | public static Box visible(bool val) => Interop.mkDiagonalAttr("visible", val); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Dimensions.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Dimensions 15 | { 16 | public static Box dimension(params Box[] properties) => Interop.mkDimensionsAttr("dimension", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Domain.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Domain 15 | { 16 | /// Sets the horizontal domain of this pie trace (in plot fraction). 17 | public static Box x(int val) => Interop.mkDomainAttr("x", new[]{val}); 18 | /// Sets the horizontal domain of this pie trace (in plot fraction). 19 | public static Box x(IEnumerable values) => Interop.mkDomainAttr("x", values.ToArray()); 20 | /// Sets the horizontal domain of this pie trace (in plot fraction). 21 | public static Box x(float val) => Interop.mkDomainAttr("x", new[]{val}); 22 | /// Sets the horizontal domain of this pie trace (in plot fraction). 23 | public static Box x(IEnumerable values) => Interop.mkDomainAttr("x", values.ToArray()); 24 | /// Sets the vertical domain of this pie trace (in plot fraction). 25 | public static Box y(int val) => Interop.mkDomainAttr("y", new[]{val}); 26 | /// Sets the vertical domain of this pie trace (in plot fraction). 27 | public static Box y(IEnumerable values) => Interop.mkDomainAttr("y", values.ToArray()); 28 | /// Sets the vertical domain of this pie trace (in plot fraction). 29 | public static Box y(float val) => Interop.mkDomainAttr("y", new[]{val}); 30 | /// Sets the vertical domain of this pie trace (in plot fraction). 31 | public static Box y(IEnumerable values) => Interop.mkDomainAttr("y", values.ToArray()); 32 | /// If there is a layout grid, use the domain for this row in the grid for this pie trace . 33 | public static Box row(int val) => Interop.mkDomainAttr("row", val); 34 | /// If there is a layout grid, use the domain for this column in the grid for this pie trace . 35 | public static Box column(int val) => Interop.mkDomainAttr("column", val); 36 | } 37 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Edits.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Edits 15 | { 16 | /// Determines if the main anchor of the annotation is editable. The main anchor corresponds to the text (if no arrow) or the arrow (which drags the whole thing leaving the arrow length & direction unchanged). 17 | public static Box annotationPosition(bool val) => Interop.mkEditsAttr("annotationPosition", val); 18 | /// Has only an effect for annotations with arrows. Enables changing the length and direction of the arrow. 19 | public static Box annotationTail(bool val) => Interop.mkEditsAttr("annotationTail", val); 20 | /// Enables editing annotation text. 21 | public static Box annotationText(bool val) => Interop.mkEditsAttr("annotationText", val); 22 | /// Enables editing axis title text. 23 | public static Box axisTitleText(bool val) => Interop.mkEditsAttr("axisTitleText", val); 24 | /// Enables moving colorbars. 25 | public static Box colorbarPosition(bool val) => Interop.mkEditsAttr("colorbarPosition", val); 26 | /// Enables editing colorbar title text. 27 | public static Box colorbarTitleText(bool val) => Interop.mkEditsAttr("colorbarTitleText", val); 28 | /// Enables moving the legend. 29 | public static Box legendPosition(bool val) => Interop.mkEditsAttr("legendPosition", val); 30 | /// Enables editing the trace name fields from the legend 31 | public static Box legendText(bool val) => Interop.mkEditsAttr("legendText", val); 32 | /// Enables moving shapes. 33 | public static Box shapePosition(bool val) => Interop.mkEditsAttr("shapePosition", val); 34 | /// Enables editing the global layout title. 35 | public static Box titleText(bool val) => Interop.mkEditsAttr("titleText", val); 36 | } 37 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Eye.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Eye 15 | { 16 | public static Box x(int val) => Interop.mkEyeAttr("x", val); 17 | public static Box x(float val) => Interop.mkEyeAttr("x", val); 18 | public static Box y(int val) => Interop.mkEyeAttr("y", val); 19 | public static Box y(float val) => Interop.mkEyeAttr("y", val); 20 | public static Box z(int val) => Interop.mkEyeAttr("z", val); 21 | public static Box z(float val) => Interop.mkEyeAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Fill.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Fill 15 | { 16 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 17 | public static Box color(string val) => Interop.mkFillAttr("color", val); 18 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 19 | public static Box color(IEnumerable values) => Interop.mkFillAttr("color", values.ToArray()); 20 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 21 | public static Box color(params int[] values) => Interop.mkFillAttr("color", values); 22 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 23 | public static Box color(params float[] values) => Interop.mkFillAttr("color", values); 24 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 25 | public static Box color(IEnumerable> values) => Interop.mkFillAttr("color", Bindings.flatten2DArrayIf1D(values)); 26 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 27 | public static Box color(List values) => Interop.mkFillAttr("color", Bindings.flatten2DArrayIf1D(values)); 28 | /// Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. 29 | public static Box color(params string[][] values) => Interop.mkFillAttr("color", Bindings.flatten2DArrayIf1D(values)); 30 | /// Sets the source reference on plot.ly for color . 31 | public static Box colorsrc(string val) => Interop.mkFillAttr("colorsrc", val); 32 | /// Sets the fill outline color (mapbox.layer.paint.fill-outline-color). Has an effect only when `type` is set to *fill*. 33 | public static Box outlinecolor(string val) => Interop.mkFillAttr("outlinecolor", val); 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Font.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Font 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkFontAttr("family", val); 18 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 19 | public static Box family(IEnumerable values) => Interop.mkFontAttr("family", values.ToArray()); 20 | public static Box size(int val) => Interop.mkFontAttr("size", val); 21 | public static Box size(float val) => Interop.mkFontAttr("size", val); 22 | public static Box size(IEnumerable values) => Interop.mkFontAttr("size", values.ToArray()); 23 | public static Box size(IEnumerable values) => Interop.mkFontAttr("size", values.ToArray()); 24 | public static Box color(string val) => Interop.mkFontAttr("color", val); 25 | public static Box color(IEnumerable values) => Interop.mkFontAttr("color", values.ToArray()); 26 | public static Box color(params int[] values) => Interop.mkFontAttr("color", values); 27 | public static Box color(params float[] values) => Interop.mkFontAttr("color", values); 28 | /// Sets the source reference on plot.ly for family . 29 | public static Box familysrc(string val) => Interop.mkFontAttr("familysrc", val); 30 | /// Sets the source reference on plot.ly for size . 31 | public static Box sizesrc(string val) => Interop.mkFontAttr("sizesrc", val); 32 | /// Sets the source reference on plot.ly for color . 33 | public static Box colorsrc(string val) => Interop.mkFontAttr("colorsrc", val); 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Frame.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Frame 15 | { 16 | /// The duration in milliseconds of each frame. If greater than the frame duration, it will be limited to the frame duration. 17 | public static Box duration(int val) => Interop.mkFrameAttr("duration", val); 18 | /// The duration in milliseconds of each frame. If greater than the frame duration, it will be limited to the frame duration. 19 | public static Box duration(float val) => Interop.mkFrameAttr("duration", val); 20 | /// Redraw the plot at completion of the transition. This is desirable for transitions that include properties that cannot be transitioned, but may significantly slow down updates that do not require a full redraw of the plot 21 | public static Box redraw(bool val) => Interop.mkFrameAttr("redraw", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Frames.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Frames 15 | { 16 | public static Box framesEntry(params Box[] properties) => Interop.mkFramesAttr("frames_entry", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Gauge.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Gauge 15 | { 16 | /// Set the appearance of the gauge's value 17 | public static Box bar(params Box[] properties) => Interop.mkGaugeAttr("bar", Bindings.flattenProperties(properties)); 18 | /// Sets the gauge background color. 19 | public static Box bgcolor(string val) => Interop.mkGaugeAttr("bgcolor", val); 20 | /// Sets the color of the border enclosing the gauge. 21 | public static Box bordercolor(string val) => Interop.mkGaugeAttr("bordercolor", val); 22 | /// Sets the width (in px) of the border enclosing the gauge. 23 | public static Box borderwidth(int val) => Interop.mkGaugeAttr("borderwidth", val); 24 | /// Sets the width (in px) of the border enclosing the gauge. 25 | public static Box borderwidth(float val) => Interop.mkGaugeAttr("borderwidth", val); 26 | public static Box axis(params Box[] properties) => Interop.mkGaugeAttr("axis", Bindings.flattenProperties(properties)); 27 | public static Box steps(params Box[] properties) => Interop.mkGaugeAttr("steps", Bindings.flattenProperties(properties)); 28 | public static Box threshold(params Box[] properties) => Interop.mkGaugeAttr("threshold", Bindings.flattenProperties(properties)); 29 | } 30 | 31 | public static partial class Gauge 32 | { 33 | /// Set the shape of the gauge 34 | public static partial class Shape 35 | { 36 | public static Box angular() => Interop.mkGaugeAttr("shape", "angular"); 37 | public static Box bullet() => Interop.mkGaugeAttr("shape", "bullet"); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Gradient.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Gradient 15 | { 16 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 17 | public static Box color(string val) => Interop.mkGradientAttr("color", val); 18 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 19 | public static Box color(IEnumerable values) => Interop.mkGradientAttr("color", values.ToArray()); 20 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 21 | public static Box color(params int[] values) => Interop.mkGradientAttr("color", values); 22 | /// Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 23 | public static Box color(params float[] values) => Interop.mkGradientAttr("color", values); 24 | /// Sets the source reference on plot.ly for type . 25 | public static Box typesrc(string val) => Interop.mkGradientAttr("typesrc", val); 26 | /// Sets the source reference on plot.ly for color . 27 | public static Box colorsrc(string val) => Interop.mkGradientAttr("colorsrc", val); 28 | } 29 | 30 | public static partial class Gradient 31 | { 32 | /// Sets the type of gradient used to fill the markers 33 | public static partial class _type 34 | { 35 | public static Box horizontal() => Interop.mkGradientAttr("type", "horizontal"); 36 | public static Box none() => Interop.mkGradientAttr("type", "none"); 37 | public static Box radial() => Interop.mkGradientAttr("type", "radial"); 38 | public static Box vertical() => Interop.mkGradientAttr("type", "vertical"); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Images.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Images 15 | { 16 | public static Box image(params Box[] properties) => Interop.mkImagesAttr("image", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Increasing.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Increasing 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkIncreasingAttr("marker", Bindings.flattenProperties(properties)); 17 | /// Sets the symbol to display for increasing value 18 | public static Box symbol(string val) => Interop.mkIncreasingAttr("symbol", val); 19 | /// Sets the color for increasing value. 20 | public static Box color(string val) => Interop.mkIncreasingAttr("color", val); 21 | public static Box line(params Box[] properties) => Interop.mkIncreasingAttr("line", Bindings.flattenProperties(properties)); 22 | /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. 23 | public static Box fillcolor(string val) => Interop.mkIncreasingAttr("fillcolor", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Labelfont.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Labelfont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkLabelfontAttr("family", val); 18 | public static Box size(int val) => Interop.mkLabelfontAttr("size", val); 19 | public static Box size(float val) => Interop.mkLabelfontAttr("size", val); 20 | public static Box color(string val) => Interop.mkLabelfontAttr("color", val); 21 | } 22 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Lataxis.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Lataxis 15 | { 16 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 17 | public static Box range(int val) => Interop.mkLataxisAttr("range", new[]{val}); 18 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 19 | public static Box range(IEnumerable values) => Interop.mkLataxisAttr("range", values.ToArray()); 20 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 21 | public static Box range(float val) => Interop.mkLataxisAttr("range", new[]{val}); 22 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 23 | public static Box range(IEnumerable values) => Interop.mkLataxisAttr("range", values.ToArray()); 24 | /// Sets whether or not graticule are shown on the map. 25 | public static Box showgrid(bool val) => Interop.mkLataxisAttr("showgrid", val); 26 | /// Sets the graticule's starting tick longitude/latitude. 27 | public static Box tick0(int val) => Interop.mkLataxisAttr("tick0", val); 28 | /// Sets the graticule's starting tick longitude/latitude. 29 | public static Box tick0(float val) => Interop.mkLataxisAttr("tick0", val); 30 | /// Sets the graticule's longitude/latitude tick step. 31 | public static Box dtick(int val) => Interop.mkLataxisAttr("dtick", val); 32 | /// Sets the graticule's longitude/latitude tick step. 33 | public static Box dtick(float val) => Interop.mkLataxisAttr("dtick", val); 34 | /// Sets the graticule's stroke color. 35 | public static Box gridcolor(string val) => Interop.mkLataxisAttr("gridcolor", val); 36 | /// Sets the graticule's stroke width (in px). 37 | public static Box gridwidth(int val) => Interop.mkLataxisAttr("gridwidth", val); 38 | /// Sets the graticule's stroke width (in px). 39 | public static Box gridwidth(float val) => Interop.mkLataxisAttr("gridwidth", val); 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Layers.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Layers 15 | { 16 | public static Box layer(params Box[] properties) => Interop.mkLayersAttr("layer", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Leaf.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Leaf 15 | { 16 | /// Sets the opacity of the leaves. With colorscale it is defaulted to 1; otherwise it is defaulted to 0.7 17 | public static Box opacity(int val) => Interop.mkLeafAttr("opacity", val); 18 | /// Sets the opacity of the leaves. With colorscale it is defaulted to 1; otherwise it is defaulted to 0.7 19 | public static Box opacity(float val) => Interop.mkLeafAttr("opacity", val); 20 | } 21 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Lightposition.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Lightposition 15 | { 16 | /// Numeric vector, representing the X coordinate for each vertex. 17 | public static Box x(int val) => Interop.mkLightpositionAttr("x", val); 18 | /// Numeric vector, representing the X coordinate for each vertex. 19 | public static Box x(float val) => Interop.mkLightpositionAttr("x", val); 20 | /// Numeric vector, representing the Y coordinate for each vertex. 21 | public static Box y(int val) => Interop.mkLightpositionAttr("y", val); 22 | /// Numeric vector, representing the Y coordinate for each vertex. 23 | public static Box y(float val) => Interop.mkLightpositionAttr("y", val); 24 | /// Numeric vector, representing the Z coordinate for each vertex. 25 | public static Box z(int val) => Interop.mkLightpositionAttr("z", val); 26 | /// Numeric vector, representing the Z coordinate for each vertex. 27 | public static Box z(float val) => Interop.mkLightpositionAttr("z", val); 28 | } 29 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Lonaxis.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Lonaxis 15 | { 16 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 17 | public static Box range(int val) => Interop.mkLonaxisAttr("range", new[]{val}); 18 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 19 | public static Box range(IEnumerable values) => Interop.mkLonaxisAttr("range", values.ToArray()); 20 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 21 | public static Box range(float val) => Interop.mkLonaxisAttr("range", new[]{val}); 22 | /// Sets the range of this axis (in degrees), sets the map's clipped coordinates. 23 | public static Box range(IEnumerable values) => Interop.mkLonaxisAttr("range", values.ToArray()); 24 | /// Sets whether or not graticule are shown on the map. 25 | public static Box showgrid(bool val) => Interop.mkLonaxisAttr("showgrid", val); 26 | /// Sets the graticule's starting tick longitude/latitude. 27 | public static Box tick0(int val) => Interop.mkLonaxisAttr("tick0", val); 28 | /// Sets the graticule's starting tick longitude/latitude. 29 | public static Box tick0(float val) => Interop.mkLonaxisAttr("tick0", val); 30 | /// Sets the graticule's longitude/latitude tick step. 31 | public static Box dtick(int val) => Interop.mkLonaxisAttr("dtick", val); 32 | /// Sets the graticule's longitude/latitude tick step. 33 | public static Box dtick(float val) => Interop.mkLonaxisAttr("dtick", val); 34 | /// Sets the graticule's stroke color. 35 | public static Box gridcolor(string val) => Interop.mkLonaxisAttr("gridcolor", val); 36 | /// Sets the graticule's stroke width (in px). 37 | public static Box gridwidth(int val) => Interop.mkLonaxisAttr("gridwidth", val); 38 | /// Sets the graticule's stroke width (in px). 39 | public static Box gridwidth(float val) => Interop.mkLonaxisAttr("gridwidth", val); 40 | } 41 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Margin.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Margin 15 | { 16 | /// Sets the left margin (in px). 17 | public static Box l(int val) => Interop.mkMarginAttr("l", val); 18 | /// Sets the left margin (in px). 19 | public static Box l(float val) => Interop.mkMarginAttr("l", val); 20 | /// Sets the right margin (in px). 21 | public static Box r(int val) => Interop.mkMarginAttr("r", val); 22 | /// Sets the right margin (in px). 23 | public static Box r(float val) => Interop.mkMarginAttr("r", val); 24 | /// Sets the top margin (in px). 25 | public static Box t(int val) => Interop.mkMarginAttr("t", val); 26 | /// Sets the top margin (in px). 27 | public static Box t(float val) => Interop.mkMarginAttr("t", val); 28 | /// Sets the bottom margin (in px). 29 | public static Box b(int val) => Interop.mkMarginAttr("b", val); 30 | /// Sets the bottom margin (in px). 31 | public static Box b(float val) => Interop.mkMarginAttr("b", val); 32 | /// Sets the amount of padding (in px) between the plotting area and the axis lines 33 | public static Box pad(int val) => Interop.mkMarginAttr("pad", val); 34 | /// Sets the amount of padding (in px) between the plotting area and the axis lines 35 | public static Box pad(float val) => Interop.mkMarginAttr("pad", val); 36 | /// Turns on/off margin expansion computations. Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider are allowed to push the margins by defaults. 37 | public static Box autoexpand(bool val) => Interop.mkMarginAttr("autoexpand", val); 38 | } 39 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Meanline.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Meanline 15 | { 16 | /// Determines if a line corresponding to the sample's mean is shown inside the violins. If `box.visible` is turned on, the mean line is drawn inside the inner box. Otherwise, the mean line is drawn from one side of the violin to other. 17 | public static Box visible(bool val) => Interop.mkMeanlineAttr("visible", val); 18 | /// Sets the mean line color. 19 | public static Box color(string val) => Interop.mkMeanlineAttr("color", val); 20 | /// Sets the mean line width. 21 | public static Box width(int val) => Interop.mkMeanlineAttr("width", val); 22 | /// Sets the mean line width. 23 | public static Box width(float val) => Interop.mkMeanlineAttr("width", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Number.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Number 15 | { 16 | /// Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format 17 | public static Box valueformat(string val) => Interop.mkNumberAttr("valueformat", val); 18 | /// Set the font used to display main number 19 | public static Box font(params Box[] properties) => Interop.mkNumberAttr("font", Bindings.flattenProperties(properties)); 20 | /// Sets a prefix appearing before the number. 21 | public static Box prefix(string val) => Interop.mkNumberAttr("prefix", val); 22 | /// Sets a suffix appearing next to the number. 23 | public static Box suffix(string val) => Interop.mkNumberAttr("suffix", val); 24 | } 25 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Pad.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Pad 15 | { 16 | /// Sets the padding form the top (in px). 17 | public static Box t(int val) => Interop.mkPadAttr("t", val); 18 | /// Sets the padding form the top (in px). 19 | public static Box t(float val) => Interop.mkPadAttr("t", val); 20 | /// Sets the padding form the left (in px). 21 | public static Box l(int val) => Interop.mkPadAttr("l", val); 22 | /// Sets the padding form the left (in px). 23 | public static Box l(float val) => Interop.mkPadAttr("l", val); 24 | /// Sets the padding form the right (in px). 25 | public static Box r(int val) => Interop.mkPadAttr("r", val); 26 | /// Sets the padding form the right (in px). 27 | public static Box r(float val) => Interop.mkPadAttr("r", val); 28 | /// Sets the padding form the bottom (in px). 29 | public static Box b(int val) => Interop.mkPadAttr("b", val); 30 | /// Sets the padding form the bottom (in px). 31 | public static Box b(float val) => Interop.mkPadAttr("b", val); 32 | } 33 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Pathbar.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Pathbar 15 | { 16 | /// Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap. 17 | public static Box visible(bool val) => Interop.mkPathbarAttr("visible", val); 18 | /// Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side. 19 | public static Box thickness(int val) => Interop.mkPathbarAttr("thickness", val); 20 | /// Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side. 21 | public static Box thickness(float val) => Interop.mkPathbarAttr("thickness", val); 22 | /// Sets the font used inside `pathbar`. 23 | public static Box textfont(params Box[] properties) => Interop.mkPathbarAttr("textfont", Bindings.flattenProperties(properties)); 24 | } 25 | 26 | public static partial class Pathbar 27 | { 28 | /// Determines on which side of the the treemap the `pathbar` should be presented. 29 | public static partial class Side 30 | { 31 | public static Box bottom() => Interop.mkPathbarAttr("side", "bottom"); 32 | public static Box top() => Interop.mkPathbarAttr("side", "top"); 33 | } 34 | 35 | /// Determines which shape is used for edges between `barpath` labels. 36 | public static partial class Edgeshape 37 | { 38 | public static Box rightSlant() => Interop.mkPathbarAttr("edgeshape", "/"); 39 | public static Box pointedLeft() => Interop.mkPathbarAttr("edgeshape", "<"); 40 | public static Box pointedRight() => Interop.mkPathbarAttr("edgeshape", ">"); 41 | public static Box leftSlant() => Interop.mkPathbarAttr("edgeshape", "\\"); 42 | public static Box straight() => Interop.mkPathbarAttr("edgeshape", "|"); 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Project.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Project 15 | { 16 | /// Determines whether or not these contour lines are projected on the x plane. If `highlight` is set to *true* (the default), the projected lines are shown on hover. If `show` is set to *true*, the projected lines are shown in permanence. 17 | public static Box x(bool val) => Interop.mkProjectAttr("x", val); 18 | /// Determines whether or not these contour lines are projected on the y plane. If `highlight` is set to *true* (the default), the projected lines are shown on hover. If `show` is set to *true*, the projected lines are shown in permanence. 19 | public static Box y(bool val) => Interop.mkProjectAttr("y", val); 20 | /// Determines whether or not these contour lines are projected on the z plane. If `highlight` is set to *true* (the default), the projected lines are shown on hover. If `show` is set to *true*, the projected lines are shown in permanence. 21 | public static Box z(bool val) => Interop.mkProjectAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Rangefont.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Rangefont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkRangefontAttr("family", val); 18 | public static Box size(int val) => Interop.mkRangefontAttr("size", val); 19 | public static Box size(float val) => Interop.mkRangefontAttr("size", val); 20 | public static Box color(string val) => Interop.mkRangefontAttr("color", val); 21 | } 22 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Rotation.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Rotation 15 | { 16 | /// Rotates the map along parallels (in degrees East). Defaults to the center of the `lonaxis.range` values. 17 | public static Box lon(int val) => Interop.mkRotationAttr("lon", val); 18 | /// Rotates the map along parallels (in degrees East). Defaults to the center of the `lonaxis.range` values. 19 | public static Box lon(float val) => Interop.mkRotationAttr("lon", val); 20 | /// Rotates the map along meridians (in degrees North). 21 | public static Box lat(int val) => Interop.mkRotationAttr("lat", val); 22 | /// Rotates the map along meridians (in degrees North). 23 | public static Box lat(float val) => Interop.mkRotationAttr("lat", val); 24 | /// Roll the map (in degrees) For example, a roll of *180* makes the map appear upside down. 25 | public static Box roll(int val) => Interop.mkRotationAttr("roll", val); 26 | /// Roll the map (in degrees) For example, a roll of *180* makes the map appear upside down. 27 | public static Box roll(float val) => Interop.mkRotationAttr("roll", val); 28 | } 29 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Selected.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Selected 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkSelectedAttr("marker", Bindings.flattenProperties(properties)); 17 | public static Box textfont(params Box[] properties) => Interop.mkSelectedAttr("textfont", Bindings.flattenProperties(properties)); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Shapes.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Shapes 15 | { 16 | public static Box shape(params Box[] properties) => Interop.mkShapesAttr("shape", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Slices.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Slices 15 | { 16 | public static Box x(params Box[] properties) => Interop.mkSlicesAttr("x", Bindings.flattenProperties(properties)); 17 | public static Box y(params Box[] properties) => Interop.mkSlicesAttr("y", Bindings.flattenProperties(properties)); 18 | public static Box z(params Box[] properties) => Interop.mkSlicesAttr("z", Bindings.flattenProperties(properties)); 19 | } 20 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Sliders.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Sliders 15 | { 16 | public static Box slider(params Box[] properties) => Interop.mkSlidersAttr("slider", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Sort.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Sort 15 | { 16 | /// Determines whether this sort transform is enabled or disabled. 17 | public static Box enabled(bool val) => Interop.mkSortAttr("enabled", val); 18 | /// Sets the target by which the sort transform is applied. If a string, *target* is assumed to be a reference to a data array in the parent trace object. To sort about nested variables, use *.* to access them. For example, set `target` to *marker.size* to sort about the marker size array. If an array, *target* is then the data array by which the sort transform is applied. 19 | public static Box target(string val) => Interop.mkSortAttr("target", val); 20 | /// Sets the target by which the sort transform is applied. If a string, *target* is assumed to be a reference to a data array in the parent trace object. To sort about nested variables, use *.* to access them. For example, set `target` to *marker.size* to sort about the marker size array. If an array, *target* is then the data array by which the sort transform is applied. 21 | public static Box target(IEnumerable values) => Interop.mkSortAttr("target", values.ToArray()); 22 | /// Sets the source reference on plot.ly for target . 23 | public static Box targetsrc(string val) => Interop.mkSortAttr("targetsrc", val); 24 | } 25 | 26 | public static partial class Sort 27 | { 28 | /// Sets the sort transform order. 29 | public static partial class Order 30 | { 31 | public static Box ascending() => Interop.mkSortAttr("order", "ascending"); 32 | public static Box descending() => Interop.mkSortAttr("order", "descending"); 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Spaceframe.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Spaceframe 15 | { 16 | /// Displays/hides tetrahedron shapes between minimum and maximum iso-values. Often useful when either caps or surfaces are disabled or filled with values less than 1. 17 | public static Box show(bool val) => Interop.mkSpaceframeAttr("show", val); 18 | /// Sets the fill ratio of the `spaceframe` elements. The default fill value is 0.15 meaning that only 15% of the area of every faces of tetras would be shaded. Applying a greater `fill` ratio would allow the creation of stronger elements or could be sued to have entirely closed areas (in case of using 1). 19 | public static Box fill(int val) => Interop.mkSpaceframeAttr("fill", val); 20 | /// Sets the fill ratio of the `spaceframe` elements. The default fill value is 0.15 meaning that only 15% of the area of every faces of tetras would be shaded. Applying a greater `fill` ratio would allow the creation of stronger elements or could be sued to have entirely closed areas (in case of using 1). 21 | public static Box fill(float val) => Interop.mkSpaceframeAttr("fill", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Steps.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Steps 15 | { 16 | public static Box step(params Box[] properties) => Interop.mkStepsAttr("step", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Stream.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Stream 15 | { 16 | /// The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. 17 | public static Box token(string val) => Interop.mkStreamAttr("token", val); 18 | /// Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to *50*, only the newest 50 points will be displayed on the plot. 19 | public static Box maxpoints(int val) => Interop.mkStreamAttr("maxpoints", val); 20 | /// Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to *50*, only the newest 50 points will be displayed on the plot. 21 | public static Box maxpoints(float val) => Interop.mkStreamAttr("maxpoints", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Styles.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Styles 15 | { 16 | public static Box style(params Box[] properties) => Interop.mkStylesAttr("style", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Textfont.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Textfont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkTextfontAttr("family", val); 18 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 19 | public static Box family(IEnumerable values) => Interop.mkTextfontAttr("family", values.ToArray()); 20 | public static Box size(int val) => Interop.mkTextfontAttr("size", val); 21 | public static Box size(float val) => Interop.mkTextfontAttr("size", val); 22 | public static Box size(IEnumerable values) => Interop.mkTextfontAttr("size", values.ToArray()); 23 | public static Box size(IEnumerable values) => Interop.mkTextfontAttr("size", values.ToArray()); 24 | public static Box color(string val) => Interop.mkTextfontAttr("color", val); 25 | public static Box color(IEnumerable values) => Interop.mkTextfontAttr("color", values.ToArray()); 26 | public static Box color(params int[] values) => Interop.mkTextfontAttr("color", values); 27 | public static Box color(params float[] values) => Interop.mkTextfontAttr("color", values); 28 | /// Sets the source reference on plot.ly for family . 29 | public static Box familysrc(string val) => Interop.mkTextfontAttr("familysrc", val); 30 | /// Sets the source reference on plot.ly for size . 31 | public static Box sizesrc(string val) => Interop.mkTextfontAttr("sizesrc", val); 32 | /// Sets the source reference on plot.ly for color . 33 | public static Box colorsrc(string val) => Interop.mkTextfontAttr("colorsrc", val); 34 | } 35 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Threshold.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Threshold 15 | { 16 | public static Box line(params Box[] properties) => Interop.mkThresholdAttr("line", Bindings.flattenProperties(properties)); 17 | /// Sets the thickness of the threshold line as a fraction of the thickness of the gauge. 18 | public static Box thickness(int val) => Interop.mkThresholdAttr("thickness", val); 19 | /// Sets the thickness of the threshold line as a fraction of the thickness of the gauge. 20 | public static Box thickness(float val) => Interop.mkThresholdAttr("thickness", val); 21 | /// Sets a treshold value drawn as a line. 22 | public static Box value(int val) => Interop.mkThresholdAttr("value", val); 23 | /// Sets a treshold value drawn as a line. 24 | public static Box value(float val) => Interop.mkThresholdAttr("value", val); 25 | } 26 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Tickfont.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Tickfont 15 | { 16 | /// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. 17 | public static Box family(string val) => Interop.mkTickfontAttr("family", val); 18 | public static Box size(int val) => Interop.mkTickfontAttr("size", val); 19 | public static Box size(float val) => Interop.mkTickfontAttr("size", val); 20 | public static Box color(string val) => Interop.mkTickfontAttr("color", val); 21 | } 22 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Tickformatstops.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Tickformatstops 15 | { 16 | public static Box tickformatstop(params Box[] properties) => Interop.mkTickformatstopsAttr("tickformatstop", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Totals.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Totals 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkTotalsAttr("marker", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Transforms.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Transforms 15 | { 16 | public static Box aggregate(params Box[] properties) => Interop.mkTransformsAttr("aggregate", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkAggregateAttr("type", "aggregate")}))); 17 | public static Box filter(params Box[] properties) => Interop.mkTransformsAttr("filter", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkFilterAttr("type", "filter")}))); 18 | public static Box groupby(params Box[] properties) => Interop.mkTransformsAttr("groupby", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkGroupbyAttr("type", "groupby")}))); 19 | public static Box sort(params Box[] properties) => Interop.mkTransformsAttr("sort", Bindings.flattenProperties(properties.Concat(new[]{Interop.mkSortAttr("type", "sort")}))); 20 | } 21 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Uniformtext.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Uniformtext 15 | { 16 | /// Sets the minimum text size between traces of the same type. 17 | public static Box minsize(int val) => Interop.mkUniformtextAttr("minsize", val); 18 | /// Sets the minimum text size between traces of the same type. 19 | public static Box minsize(float val) => Interop.mkUniformtextAttr("minsize", val); 20 | } 21 | 22 | public static partial class Uniformtext 23 | { 24 | /// Determines how the font size for various text elements are uniformed between each trace type. If the computed text sizes were smaller than the minimum size defined by `uniformtext.minsize` using *hide* option hides the text; and using *show* option shows the text without further downscaling. Please note that if the size defined by `minsize` is greater than the font size defined by trace, then the `minsize` is used. 25 | public static partial class Mode 26 | { 27 | public static Box hide() => Interop.mkUniformtextAttr("mode", "hide"); 28 | public static Box show() => Interop.mkUniformtextAttr("mode", "show"); 29 | public static Box _false() => Interop.mkUniformtextAttr("mode", false); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Unselected.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Unselected 15 | { 16 | public static Box marker(params Box[] properties) => Interop.mkUnselectedAttr("marker", Bindings.flattenProperties(properties)); 17 | public static Box textfont(params Box[] properties) => Interop.mkUnselectedAttr("textfont", Bindings.flattenProperties(properties)); 18 | } 19 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Up.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Up 15 | { 16 | public static Box x(int val) => Interop.mkUpAttr("x", val); 17 | public static Box x(float val) => Interop.mkUpAttr("x", val); 18 | public static Box y(int val) => Interop.mkUpAttr("y", val); 19 | public static Box y(float val) => Interop.mkUpAttr("y", val); 20 | public static Box z(int val) => Interop.mkUpAttr("z", val); 21 | public static Box z(float val) => Interop.mkUpAttr("z", val); 22 | } 23 | } -------------------------------------------------------------------------------- /Plotly.Sharp/Props/Updatemenus.cs: -------------------------------------------------------------------------------- 1 | namespace Plotly 2 | { 3 | /*//////////////////////////////// 4 | /// THIS FILE IS AUTO-GENERATED // 5 | /// by propsDocument // 6 | ////////////////////////////////*/ 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using Types; 11 | using Bridge; 12 | using static Retyped.dom; 13 | 14 | public static partial class Updatemenus 15 | { 16 | public static Box updatemenu(params Box[] properties) => Interop.mkUpdatemenusAttr("updatemenu", Bindings.flattenProperties(properties)); 17 | } 18 | } -------------------------------------------------------------------------------- /Plotly.Sharp/plotly-sharp-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/curiosity-ai/plotly-sharp/3eebaf8b9af7b3dc7a2a50494678629b6e423394/Plotly.Sharp/plotly-sharp-logo.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://dev.azure.com/curiosity-ai/mosaik/_apis/build/status/plotly-sharp?branchName=master)](https://dev.azure.com/curiosity-ai/mosaik/_build/latest?definitionId=19&branchName=master) 2 | 3 | 4 | 5 | 6 | 7 | _**Plotly.Sharp**_ provides a strongly-typed binding to generate embedded HTML using [Plotly](https://plot.ly/javascript/). 8 | 9 | [![Nuget](https://img.shields.io/nuget/v/Plotly.Sharp.svg?maxAge=0&colorB=brightgreen)](https://www.nuget.org/packages/Plotly.Sharp) 10 | 11 | _**Plotly.Bridge**_ provides a strongly-typed binding to use [Plotly](https://plot.ly/javascript/) on [Bridge.Net](https://github.com/bridgedotnet/Bridge) applications. 12 | 13 | [![Nuget](https://img.shields.io/nuget/v/Plotly.Bridge.svg?maxAge=0&colorB=brightgreen)](https://www.nuget.org/packages/Plotly.Bridge) 14 | 15 | Both libraries are automatically generated from the official [plotly.js API schema](https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plot-schema.json), and includes the respective plotly.min.js file as part of the Nuget package. 16 | 17 | Example: 18 | 19 | ```csharp 20 | var data = new[]{ 21 | new []{ 1f, 20f, 30f }, 22 | new []{20f, 1f, 60f }, 23 | new []{30f, 60f, 1f } 24 | }; 25 | 26 | //Or use the shortcut: 27 | // var data = data.m( 1f, 20f, 30f) 28 | // .r(20f, 1f, 60f) 29 | // .r(30f, 60f, 1f); 30 | 31 | var chart = new Plot( 32 | Plot.traces( 33 | Traces.heatmap( 34 | Heatmap.z(data)))); 35 | 36 | //For Plotly.Bridge, you can directly render the chart to an HTMLElement: 37 | document.body.appendChild(chart.Render()); 38 | 39 | //For Plotly.Sharp, you can create the embedded HTML string as follows: 40 | var html = chart.Render().ToHTML(); 41 | ``` 42 | 43 | You can follow the official [documentation](https://plot.ly/javascript/) from Plotly, as the types and usage are almost exactly the same (one minor but **important change**: some of the objects on C# have the first letter in upper-case (like Traces.heatmap on the example above). 44 | 45 | *Note*: Event types have been manually created, and have not been all validated against plotly's events. If you find any definition that doesn't match the expected one from plotly, please open an issue for it! 46 | 47 | This project is derived from the awesome work by [Cody Johnson](https://github.com/Shmew) on the [F# bindings](https://github.com/Shmew/Feliz.Plotly/). 48 | --------------------------------------------------------------------------------