René's URL Explorer Experiment


Title: Any C# sample with connectgaps · plotly/Plotly.NET · Discussion #434 · GitHub

Open Graph Title: Any C# sample with connectgaps · plotly/Plotly.NET · Discussion #434

X Title: Any C# sample with connectgaps · plotly/Plotly.NET · Discussion #434

Description: Any C# sample with connectgaps

Open Graph Description: Hello, do you have any sample in C# to help create a line plot with connectgaps property ? I saw #146, but i don't know how to convert it from F# to C#. Thanks

X Description: Hello, do you have any sample in C# to help create a line plot with connectgaps property ? I saw #146, but i don't know how to convert it from F# to C#. Thanks

Opengraph URL: https://github.com/plotly/Plotly.NET/discussions/434

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Any C# sample with connectgaps","text":"

Hello, do you have any sample in C# to help create a line plot with connectgaps property ?

\n

I saw #146, but i don't know how to convert it from F# to C#.

\n

Thanks

","upvoteCount":2,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

@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.

\n

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#.

\n

However, as a workaround it at least works:

\n
using Plotly.NET.CSharp;\n\nvar chart = \n    Chart.Scatter<float,int,string>(\n        mode: Plotly.NET.StyleParam.Mode.Lines_Markers,\n        x: new float[] { 1, 2, float.NaN, 4 },\n        y: new int[] { 1, 2, 3, 4 }\n    );\n\nPlotly.NET.GenericChart.mapTrace(\n    Plotly.NET.Trace2DStyle.Scatter<float,float,float,float,float,float,float,float,float,float,float,float,float,float,Plotly.NET.Trace>(\n        ConnectGaps: true\n    ),\n    chart\n);\n\nchart
\n

\"image\"

\n

I think we eventually need a WithTraceStyle extension member for charts in Plotly.NET.CSharp. I'll track that in a separate issue. Thanks for making this obvious to me.

","upvoteCount":1,"url":"https://github.com/plotly/Plotly.NET/discussions/434#discussioncomment-7562478"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:f2d2df1d-5677-de7d-c683-de5d6b0f32f2
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idA8C2:A5383:100D780:14A0CF3:698FEC18
html-safe-nonce2c608ab92d2cab569c00fd3268e6137d43c7f6290d6600a7313b57cacd04a014
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEMyOkE1MzgzOjEwMEQ3ODA6MTRBMENGMzo2OThGRUMxOCIsInZpc2l0b3JfaWQiOiIyNDI1MTMwNzE5Njk5MjY2NTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb56d5d949b05c88e7c1360a6bbc48eca2be1e17099a8315b7d027d30d682e838
hovercard-subject-tagdiscussion:5848073
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/plotly/Plotly.NET/434/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/157363ae8ffae159c836787accb4667059f1a6ff9e646c4d6f889de1fc6071e1/plotly/Plotly.NET/discussions/434
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/157363ae8ffae159c836787accb4667059f1a6ff9e646c4d6f889de1fc6071e1/plotly/Plotly.NET/discussions/434
og:image:altHello, do you have any sample in C# to help create a line plot with connectgaps property ? I saw #146, but i don't know how to convert it from F# to C#. Thanks
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/plotly/Plotly.NET git https://github.com/plotly/Plotly.NET.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id58708375
octolytics-dimension-repository_nwoplotly/Plotly.NET
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id58708375
octolytics-dimension-repository_network_root_nwoplotly/Plotly.NET
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2FPlotly.NET%2Fdiscussions%2F434
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2FPlotly.NET%2Fdiscussions%2F434
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=plotly%2FPlotly.NET
Reloadhttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
Reloadhttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
Reloadhttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
plotly https://patch-diff.githubusercontent.com/plotly
Plotly.NEThttps://patch-diff.githubusercontent.com/plotly/Plotly.NET
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fplotly%2FPlotly.NET
Fork 101 https://patch-diff.githubusercontent.com/login?return_to=%2Fplotly%2FPlotly.NET
Star 834 https://patch-diff.githubusercontent.com/login?return_to=%2Fplotly%2FPlotly.NET
Code https://patch-diff.githubusercontent.com/plotly/Plotly.NET
Issues 43 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/issues
Pull requests 3 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/pulls
Discussions https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions
Actions https://patch-diff.githubusercontent.com/plotly/Plotly.NET/actions
Projects 0 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/projects
Security 0 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/security
Insights https://patch-diff.githubusercontent.com/plotly/Plotly.NET/pulse
Code https://patch-diff.githubusercontent.com/plotly/Plotly.NET
Issues https://patch-diff.githubusercontent.com/plotly/Plotly.NET/issues
Pull requests https://patch-diff.githubusercontent.com/plotly/Plotly.NET/pulls
Discussions https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions
Actions https://patch-diff.githubusercontent.com/plotly/Plotly.NET/actions
Projects https://patch-diff.githubusercontent.com/plotly/Plotly.NET/projects
Security https://patch-diff.githubusercontent.com/plotly/Plotly.NET/security
Insights https://patch-diff.githubusercontent.com/plotly/Plotly.NET/pulse
Answered https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#discussioncomment-7562478
kMutagenehttps://patch-diff.githubusercontent.com/kMutagene
davidsaurel https://patch-diff.githubusercontent.com/davidsaurel
Q&Ahttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/categories/q-a
Any C# sample with connectgaps https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#top
davidsaurel https://patch-diff.githubusercontent.com/davidsaurel
Answered https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#discussioncomment-7562478
kMutagenehttps://patch-diff.githubusercontent.com/kMutagene
Return to tophttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#top
Please reload this pagehttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
Please reload this pagehttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
davidsaurel https://patch-diff.githubusercontent.com/davidsaurel
Nov 13, 2023 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#discussion-5848073
#146https://github.com/plotly/Plotly.NET/issues/146
Give feedback.https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
kMutagene https://patch-diff.githubusercontent.com/kMutagene
Nov 14, 2023 https://github.com/plotly/Plotly.NET/discussions/434#discussioncomment-7562478
@davidsaurelhttps://github.com/davidsaurel
#322https://github.com/plotly/Plotly.NET/issues/322
View full answer https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#discussioncomment-7562478
Oldest https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434?sort=old
Newest https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434?sort=new
Top https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434?sort=top
Please reload this pagehttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
smoothdeveloper https://patch-diff.githubusercontent.com/smoothdeveloper
Nov 14, 2023 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#discussioncomment-7561490
@davidsaurelhttps://github.com/davidsaurel
https://plotly.net/#Declarative-style-in-C-using-the-underlyinghttps://plotly.net/#Declarative-style-in-C-using-the-underlying
Give feedback.https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
Please reload this pagehttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
kMutagene https://patch-diff.githubusercontent.com/kMutagene
Nov 14, 2023 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#discussioncomment-7562478
@davidsaurelhttps://github.com/davidsaurel
#322https://github.com/plotly/Plotly.NET/issues/322
https://private-user-images.githubusercontent.com/21338071/282704050-ab7c972e-df52-4eb8-8bf9-601e71b4f245.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEwNDAwNjgsIm5iZiI6MTc3MTAzOTc2OCwicGF0aCI6Ii8yMTMzODA3MS8yODI3MDQwNTAtYWI3Yzk3MmUtZGY1Mi00ZWI4LThiZjktNjAxZTcxYjRmMjQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjE0VDAzMjkyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0MGRmOWViYjBiZTE2NTRjNWY4NTI4NTBmNGY1MjUwZTkwYTkwOWQwOWRhMTQ4Nzg3YTFlNDE2Y2FhOWJhZDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8LXgeX98PvD_FBES7fypZrKWAZdNgEQbiUL7avl6fOw
Give feedback.https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
davidsaurelhttps://patch-diff.githubusercontent.com/davidsaurel
Please reload this pagehttps://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
davidsaurel https://patch-diff.githubusercontent.com/davidsaurel
Nov 14, 2023 https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434#discussioncomment-7564574
Give feedback.https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2FPlotly.NET%2Fdiscussions%2F434
🙏 Q&A https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/categories/q-a
https://patch-diff.githubusercontent.com/davidsaurel
https://patch-diff.githubusercontent.com/smoothdeveloper
https://patch-diff.githubusercontent.com/kMutagene
https://patch-diff.githubusercontent.com/plotly/Plotly.NET/discussions/434
https://patch-diff.githubusercontent.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.