Skip to content

Instantly share code, notes, and snippets.

@ashic
Created October 24, 2013 13:02
Show Gist options
  • Save ashic/7136850 to your computer and use it in GitHub Desktop.
Save ashic/7136850 to your computer and use it in GitHub Desktop.
F# Console app (tried .NET 4.5 and 4.5.1). Chart seems to hang with Not Responding on Windows 8.1.
open FSharp.Charting
open System
[<EntryPoint>]
let main argv =
printfn "%A" argv
Chart.Line([ for x in 0 .. 10 -> x, x*x ]).ShowChart()
Console.ReadLine() |> ignore
0 // return an integer exit code
@ImaginaryDevelopment
Copy link

hack, but works

   use form = new Form(Width=400, Height=300, Visible=true, Text="Hello charting")
   Chart.Line([for x in 0 ..10 -> x, x+x]).ShowChart()
   System.Windows.Forms.Application.Run(form)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment