Skip to content

How to create polar plots with Csharp #432

Answered by kMutagene
jackthomas818 asked this question in Q&A
Discussion options

You must be logged in to vote

yes it is, the respective member is however on the AngularAxis object which is not wrapped in the CSharp lib. You can fallback on mixing both APIs, but will have to prefix the calls:

using Plotly.NET.CSharp;
using Plotly.NET;
using Plotly.NET.LayoutObjects;

var c = 
    Plotly.NET.CSharp.Chart.PointPolar<int, int, string>(
        theta: new[] { 0, 45, 90, 180, 270, 360 },
        r: new[] { 1, 2, 3, 4, 5, 6 }
    );

Plotly.NET.Chart.WithAngularAxis(
    AngularAxis.init<int, int, int, int, int, int>(Rotation: 270)
).Invoke(c)

I'll go ahead and close this, please use either the Github discussions tab or the discord for questions - issues are more intended for bugs and feature requests

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
Comment options

You must be logged in to vote
0 replies
Answer selected by kMutagene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #427 on November 03, 2023 09:58.