Foogle Charts


Foogle: F# Library for Google Charts

This example demonstrates using a function defined in this sample library. Here are some pie charts:

1: 
2: 
3: 
4: 
5: 
6: 
let tasks = 
  [ "Work", 11; "Eat", 2; "Commute", 2
    "Watch TV", 2; "Sleep", 7 ]

Chart.PieChart(tasks, Label = "Hours per Day")
|> Chart.WithTitle(Title = "Daily activities")
1: 
2: 
3: 
Chart.PieChart(tasks, Label = "Hours per Day")
|> Chart.WithTitle(Title = "Daily activities")
|> Chart.WithPie(PieHole = 0.5)

Getting the library

TODO: How to get the library

Samples & documentation

The library comes with comprehensible documentation. It can include a tutorials automatically generated from *.fsx files in the content folder. The API reference is automatically generated from Markdown comments in the library implementation.

  • Tutorial contains a further explanation of this sample library.

  • API Reference contains automatically generated documentation for all types, modules and functions in the library. This includes additional brief samples on using most of the functions.

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding new public API, please also consider adding samples that can be turned into a documentation. You might also want to read library design notes to understand how it works.

The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

namespace Foogle
namespace System
namespace System.Windows
namespace System.Windows.Forms
val tasks : (string * int) list

Full name: Index.tasks
type Chart =
  static member GeoChart : data:seq<string * #value * #value> * ?Labels:string list * ?Region:string * ?DisplayMode:DisplayMode -> FoogleChart
  static member GeoChart : data:seq<string * #value> * ?Label:string * ?Region:string * ?DisplayMode:DisplayMode -> FoogleChart
  static member LineChart : data:seq<string * #value list> * ?Labels:string list * ?CurveType:CurveType -> FoogleChart
  static member LineChart : data:seq<string * #value> * ?Label:string * ?CurveType:CurveType -> FoogleChart
  static member PieChart : data:seq<string * #value> * ?Label:string * ?PieHole:float -> FoogleChart
  static member WithColorAxis : ?MinValue:float * ?MaxValue:float * ?Values:seq<float> * ?Colors:seq<Color> -> (FoogleChart -> FoogleChart)
  static member WithOutput : ?Engine:Engine -> (FoogleChart -> FoogleChart)
  static member WithPie : ?PieHole:float -> (FoogleChart -> FoogleChart)
  static member WithTitle : ?Title:string -> (FoogleChart -> FoogleChart)

Full name: Foogle.Chart
static member Chart.PieChart : data:seq<string * #value> * ?Label:string * ?PieHole:float -> FoogleChart
Multiple items
type Label =
  inherit Control
  new : unit -> Label
  member AutoEllipsis : bool with get, set
  member AutoSize : bool with get, set
  member BackgroundImage : Image with get, set
  member BackgroundImageLayout : ImageLayout with get, set
  member BorderStyle : BorderStyle with get, set
  member FlatStyle : FlatStyle with get, set
  member GetPreferredSize : proposedSize:Size -> Size
  member Image : Image with get, set
  member ImageAlign : ContentAlignment with get, set
  ...

Full name: System.Windows.Forms.Label

--------------------
Label() : unit
static member Chart.WithTitle : ?Title:string -> (FoogleChart -> FoogleChart)
static member Chart.WithPie : ?PieHole:float -> (FoogleChart -> FoogleChart)
Fork me on GitHub