Partager via


Getting Started with FSharpChart (from the F# Team Blog)

Here's a cross-posting of one of our first team posts on the F# Team Blog. Welcome to the team, Keith!

Hi, I'm Keith Battocchi, and I'm working on making it easier to use F# for data-rich programming. In my first blog post, I want to highlight some of the basic features of the FSharpChart wrappers that Don blogged about earlier this month . As Don mentioned, this library contains F#-friendly wrappers for the types in the System.Windows.Forms.DataVisualization.Charting namespace, making it easy to interactively chart data from F# Interactive (see also the Chart Controls section of MSDN for further information about the underlying controls themselves, including tutorials). To get started, load the library script and open the Samples.Charting namespace:

#load "FSharpChart.fsx"
open Samples.Charting

Basic features

All of the chart types in the System.Windows.Forms.DataVisualization.Charting namespace are supported, from the common Line and Bar charts to the more exotic Kagi and Renko charts, among many others. Each type of chart can be created by using static methods on the FSharpChart type, which you can browse in IntelliSense:

continued...