Skip to content

Instantly share code, notes, and snippets.

@TahaHachana
Last active August 29, 2015 14:07
Show Gist options
  • Save TahaHachana/734c913a859cadca6387 to your computer and use it in GitHub Desktop.
Save TahaHachana/734c913a859cadca6387 to your computer and use it in GitHub Desktop.
#load "../packages/XPlot.GoogleCharts.1.0.1/XPlot.GoogleCharts.fsx"
open XPlot.GoogleCharts
let options =
Options(
title = "The decline of 'The 39 Steps'",
vAxis = Axis(title = "Accumulated Rating"),
isStacked = true
)
let chart =
[
[
"Alfred Hitchcock (1935)", 8.4
"Ralph Thomas (1959)", 6.9
"Don Sharp (1978)", 6.5
"James Hawes (2008)", 4.4
]
[
"Alfred Hitchcock (1935)", 7.9
"Ralph Thomas (1959)", 6.5
"Don Sharp (1978)", 6.4
"James Hawes (2008)", 6.2
]
]
|> Chart.SteppedArea
|> Chart.WithOptions options
|> Chart.WithLabels ["Rotten Tomatoes"; "IMDB"]
|> Chart.WithLegend true
|> Chart.Show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment