How to create polar plots with Csharp #432
|
Is there any support for producing polar plots with C# using Plotly.NET? The documentation only has F# code. |
Replies: 3 comments
|
Hi @jackthomas818, yes there are multiple ways:
|
|
I've got the basic polar plot displaying. Is it possible to rotate the polar plot clockwise 90 degrees so that the 0 degree is on the bottom of chart? |
|
yes it is, the respective member is however on the 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 |


yes it is, the respective member is however on the
AngularAxisobject which is not wrapped in the CSharp lib. You can fallback on mixing both APIs, but will have to prefix the calls: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