Skip to content

Instantly share code, notes, and snippets.

@TahaHachana
Last active August 29, 2015 14:07
Show Gist options
  • Save TahaHachana/8a8e831364c2a965f646 to your computer and use it in GitHub Desktop.
Save TahaHachana/8a8e831364c2a965f646 to your computer and use it in GitHub Desktop.
#load "../packages/XPlot.GoogleCharts.1.0.1/XPlot.GoogleCharts.fsx"
open XPlot.GoogleCharts
let sales = ["2013", 1000; "2014", 1170; "2015", 660; "2016", 1030]
let expenses = ["2013", 400; "2014", 460; "2015", 1120; "2016", 540]
let options =
Options(
title = "Company Performance",
curveType = "function",
legend = Legend(position = "bottom")
)
let chart =
[sales; expenses]
|> Chart.Line
|> Chart.WithOptions options
|> Chart.WithLabels ["Sales"; "Expenses"]
|> Chart.Show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment