You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've googled servaral days but I cannot find any materials about how to use Plotly.Net in C# language.
The most relevant content I've found is: https://plotly.net/03_5_3d-volume-plots.html
I've tried to translate the code line by line from F# to C#. But the core part Chart.Volume() seems to have a different signature. Chart3D.Chart.Volume<**a, b, c, d, e, f, g**>(System.Collections.Generic.IEnumerable<a>, System.Collections.Generic.IEnumerable<b>, System.Collections.Generic.IEnumerable<c>, System.Collections.Generic.IEnumerable<d>, Microsoft.FSharp.Core.FSharpOption<string>, Microsoft.FSharp.Core.FSharpOption<bool>, Microsoft.FSharp.Core.FSharpOption<double>, Microsoft.FSharp.Core.FSharpOption<e>, Microsoft.FSharp.Core.FSharpOption<System.Collections.Generic.IEnumerable<e>>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.StyleParam.Colorscale>, Microsoft.FSharp.Core.FSharpOption<bool>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.ColorBar>, Microsoft.FSharp.Core.FSharpOption<double>, Microsoft.FSharp.Core.FSharpOption<double>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.TraceObjects.Caps>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.TraceObjects.Slices>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.TraceObjects.Surface>, Microsoft.FSharp.Core.FSharpOption<System.Collections.Generic.IEnumerable<f>>, Microsoft.FSharp.Core.FSharpOption<bool>)
I don't know how to set the a,b,c,d,e,f,g. Consequently, I cannot call this function.
Expected behavior
I want a runnable C# version of the official volume rendering demo.
Any tutorials about how to use plotly WITH C# would be appreaciated.
Known workarounds
Please provide a description of any known workarounds.
Related information
Operating system: Win10
Branch:Latest Stable from nuget
.NET Runtime: framework4.7.2
The text was updated successfully, but these errors were encountered:
But the core part Chart.Volume() seems to have a different signature
That's not completely correct, C# just forces you to make these annotations for the generics, while F# can infer them (see #285).
In general for usage from C#, I'd suggest using our new, more idiomatic Plotly.NET.CSharp API. You won't get around making these annotations, although that API minimizes the amount of generics used. Also, it provides names for the generics so you're more informed when setting them:
I want a runnable C# version of the official volume rendering demo.
That would require rewriting the helper functions used in that tutorial in C#. For the time being, here's a simple example:
If you rewrite the helper code, it would be greatly appreciated if you would add it here, since it is planned to provide C# docs once the C# chart bindings are completed (#296)
Description
I've googled servaral days but I cannot find any materials about how to use Plotly.Net in C# language.
The most relevant content I've found is:
https://plotly.net/03_5_3d-volume-plots.html
I've tried to translate the code line by line from F# to C#. But the core part
Chart.Volume()
seems to have a different signature.Chart3D.Chart.Volume<**a, b, c, d, e, f, g**>(System.Collections.Generic.IEnumerable<a>, System.Collections.Generic.IEnumerable<b>, System.Collections.Generic.IEnumerable<c>, System.Collections.Generic.IEnumerable<d>, Microsoft.FSharp.Core.FSharpOption<string>, Microsoft.FSharp.Core.FSharpOption<bool>, Microsoft.FSharp.Core.FSharpOption<double>, Microsoft.FSharp.Core.FSharpOption<e>, Microsoft.FSharp.Core.FSharpOption<System.Collections.Generic.IEnumerable<e>>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.StyleParam.Colorscale>, Microsoft.FSharp.Core.FSharpOption<bool>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.ColorBar>, Microsoft.FSharp.Core.FSharpOption<double>, Microsoft.FSharp.Core.FSharpOption<double>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.TraceObjects.Caps>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.TraceObjects.Slices>, Microsoft.FSharp.Core.FSharpOption<Plotly.NET.TraceObjects.Surface>, Microsoft.FSharp.Core.FSharpOption<System.Collections.Generic.IEnumerable<f>>, Microsoft.FSharp.Core.FSharpOption<bool>)
I don't know how to set the
a,b,c,d,e,f,g
. Consequently, I cannot call this function.Expected behavior
I want a runnable C# version of the official volume rendering demo.
Any tutorials about how to use plotly WITH C# would be appreaciated.
Known workarounds
Please provide a description of any known workarounds.
Related information
The text was updated successfully, but these errors were encountered: