﻿#I "../../../bin"
#r "XPlot.GoogleCharts.dll"
#r "XPlot.GoogleCharts.WPF.dll"

open XPlot.GoogleCharts

let table1 =
    [
        "Mike", 10000
        "Jim", 8000
        "Alice", 12500
        "Bob", 7000
    ]
    |> Chart.Table
    |> Chart.WithOptions(Options(showRowNumber = true))
    |> Chart.WithLabels ["Name"; "Salary"]
    |> Chart.Show

let table2 =
    let salary =
        [
            "Mike", 10000
            "Jim", 8000
            "Alice", 12500
            "Bob", 7000
        ]
        |> List.map (fun (x, y) -> x, y :> value)
    let fulltime =
        [
            "Mike", true
            "Jim", false
            "Alice", true
            "Bob", true
        ]
        |> List.map (fun (x, y) -> x, y :> value)
    [salary; fulltime]        
    |> Chart.Table
    |> Chart.WithOptions(Options(showRowNumber = true))
    |> Chart.WithLabels ["Name"; "Salary"; "Full Time Employee"]
    |> Chart.Show
