To achieve this, you must wrap your chart in FSharp.Charting.ChartTypes.ChartControl and take care of the correct docking. Also, do not mix Chart with FSharp.Charting with Chart from System.Windows.Forms.DataVisualization.Charting .
A good point to observe might be the following fully functional pattern, which works with the current FSharp.Charting v0.90.5; System.Drawing and System.Windows.Forms links are also required:
open System open FSharp.Charting open FSharp.Charting.ChartTypes open System.Drawing open System.Windows.Forms [<STAThread; EntryPoint>] let main args = let myChart = [for x in 0.0 .. 0.1 .. 6.0 -> sin x + cos (2.0 * x)] |> Chart.Line |> Chart.WithYAxis(Title="Test") let myChartControl = new ChartControl(myChart, Dock=DockStyle.Fill) let lbl = new Label(Text="my label") let form = new Form(Visible = true, TopMost = true, Width = 700, Height = 500) form.Controls.Add lbl form.Controls.Add(myChartControl) do Application.Run(form) |> ignore 0
source share