Last active
August 29, 2015 14:07
-
-
Save TahaHachana/8a8e831364c2a965f646 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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