Giter Site home page Giter Site logo

Comments (3)

kMutagene avatar kMutagene commented on June 11, 2024

Hi @jackthomas818, yes there are multiple ways:

  • F# is part of .NET, same as C#. You can use F# libraries from C#, meaning you can translate the samples.

  • There is Plotly.NET.CSharp (see also https://plotly.net/#Installation), a more idiomatic C# API. It is written in C# but less feature complete than the core F# API. It has polar chart creation but less styling options:

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

image

from plotly.net.

jackthomas818 avatar jackthomas818 commented on June 11, 2024

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?

from plotly.net.

kMutagene avatar kMutagene commented on June 11, 2024

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)

image

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

from plotly.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.