Skip to content

Instantly share code, notes, and snippets.

@samueleresca
Created April 13, 2019 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueleresca/8cf7e73c909a59427c262f3604198502 to your computer and use it in GitHub Desktop.
Save samueleresca/8cf7e73c909a59427c262f3604198502 to your computer and use it in GitHub Desktop.
open XPlot.Plotly
songLyrics
|> Seq.map(fun row -> row.Genre)
|> Seq.countBy id |> Seq.toList
|> Chart.Pie
|> Chart.WithTitle "Dataset by Genre"
|> Chart.WithLegend true
songLyrics
|> Seq.map(fun row -> row.Year)
|> Seq.countBy id |> Seq.toList
|> Chart.Pie
|> Chart.WithTitle "Dataset by Year"
|> Chart.WithLegend true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment