Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C#] Plotly.NET.CSharp Roadmap #379

Open
1 of 3 tasks
kMutagene opened this issue Mar 23, 2023 · 0 comments
Open
1 of 3 tasks

[C#] Plotly.NET.CSharp Roadmap #379

kMutagene opened this issue Mar 23, 2023 · 0 comments
Labels
Area: CSharp Area: Meta Area: MissingAbstraction Plotly.js functionality that has to be implemented Type: Enhancement

Comments

@kMutagene
Copy link
Collaborator

This issue tracks the roadmap for the native C# package Plotly.NET.CSharp

Plans on how to design and develop the C# API have been laid out and tracked in #285 and #322.

The general roadmap implementation-wise is the following:

  • 1. C# bindings for the high-level Chart construction API ([C#] C# bindings progress #296), one binding per chart at first (no overloads)
  • 2. C# GenericChart Extension methods (this covers more or less all styling functions). Once these are finished, the F# extension methods for fluent interface can be removed.
  • 3. C# bindings for Object abstractions (TraceObjects, LayoutObjects, etc.) this might be a bit tricky
    Progress on this side has been made on the 'csharp-object-bindings' branch. In short, all these bindings can be auto-generated by using reflection on the F# objects. Might be worth to look into C# source generators

The way to go for the future is clearly code generation. The F# core API could in theory also created from the plotly.js JSON schema, but has many features that would be hard to automate such as type safety for enums etc.

To prevent having to namually maintain 2 code bases though, we should at least try to auto-generate the C# API based on the F# API, over which we have full control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: CSharp Area: Meta Area: MissingAbstraction Plotly.js functionality that has to be implemented Type: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant