Skip to content
Discussion options

You must be logged in to vote

@davidsaurel thanks for this question. I am afraid that applying this in C# is quite hard because you must either apply the tracestyle function (which is very FSharpy as it takes a function as argument) or use dynamic object style.

The first solution would look like this. It has the same problems that eventually lead to Plotly.NET.CSharp (see #322), namely the huge amount of generic type annotations that you just do not have to set using the function from F#.

However, as a workaround it at least works:

usingPlotly.NET.CSharp;varchart=Chart.Scatter<float,int,string>(mode:Plotly.NET.StyleParam.Mode.Lines_Markers,x:newfloat[]{1,2,float.NaN,4},y:n…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected bydavidsaurel
Comment options

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@davidsaurel@smoothdeveloper@kMutagene