Skip to content

Any C# sample with connectgaps #434

Closed Answered by kMutagene
davidsaurel asked this question in Q&A
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:

using Plotly.NET.CSharp;

var chart = 
    Chart.Scatter<float,int,string>(
        mode: Plotly.NET.StyleParam.Mode.Lines_Markers,
        x: new float[] { 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 by davidsaurel
Comment options

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