// can't yet format YamlFrontmatter (["title: Polar charts"; "category: Polar Charts"; "categoryindex: 8"; "index: 1"], Some { StartLine = 2 StartColumn = 0 EndLine = 6 EndColumn = 8 }) to pynb markdown

In [ ]:
#r "nuget: Plotly.NET, 2.0.0-preview.6"
#r "nuget: Plotly.NET.Interactive, 2.0.0-preview.6"

Polar charts

BinderScriptNotebook

Summary: This example shows how to create polar charts in F#.

let's first create some data for the purpose of creating example charts:

In [3]:
open Plotly.NET 
  
let r  = [ 1; 2; 3; 4; 5; 6; 7;]
let r2 = [ 5; 6; 7; 1; 2; 3; 4;]
let r3 = [ 3; 1; 5; 2; 8; 7; 5;]

let t  = [0; 45; 90; 135; 200; 320; 184;]

A polar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point. The relative position and angle of the axes is typically uninformative.

In [4]:
let polar1 =
        [
            Chart.Polar(r,t,StyleParam.Mode.Markers,Name="1")
            Chart.Polar(r2,t,StyleParam.Mode.Markers,Name="2")
            Chart.Polar(r3,t,StyleParam.Mode.Markers,Name="3")
        ]
        |> Chart.Combine
In [ ]:
polar1
Out[ ]: