#load "../packages/FsPlot.0.6.5/FsPlotBootstrap.fsx" | |
open FsPlot.Google.Charting | |
let sales = ["2010", 1300; "2011", 1470; "2012", 740; "2013", 1330] | |
let expenses = ["2010", 1000; "2011", 1170; "2012", 560; "2013", 1030] | |
let chart = | |
[sales; expenses] | |
|> Chart.StackedColumn | |
|> Chart.WithNames ["Sales"; "Expenses"] | |
|> Chart.WithTitle "Company Performance" | |
|> Chart.WithXTitle "Year" | |
|> Chart.WithLegend true | |
Chart.Close chart |