开发者

FSharpChart blank output

I'm currently trying to get FSharpChart to work. Unfortunat开发者_如何学Pythonely after compiling the library and feeding any FSharpChart with data I only get blank outputs, whether I use FSharpChart.WithCreate, FSharpChart.SaveAs or FSharpChart.CopyToClipboard.

Even the included examples produce blank output. Of course I've got Visual Studio 2010 SP1 installed, .NET Framework 4.0 with all the latest patches etc. The code is hosted on Windows 7 x64.

What am I missing?


I know it has been a long time but after having the same issue i found that form refreshing do the trick:

open System.Windows.Forms
open MSDN.FSharp.Charting

[<EntryPoint>]
let main argv = 
    let myChart = [for x in 0.0 .. 0.1 .. 6.0 -> sin x + cos (2.0 * x)]
                  |> FSharpChart.Line
    let form = new Form(Visible = true, TopMost = true, Width = 700, Height = 500)
    let ctl = new ChartControl(myChart, Dock = DockStyle.Fill)
    form.Controls.Add(ctl)
    form.Refresh()
    System.Console.ReadKey() |> ignore
    0


I've seen this too, but I'm afraid I can't recall now what caused the problem.

Have you tried the samples that come included? Can you get them to work?

If you can, the problem is somewhere in your code, and you should be able to work out where.

If not, mail fsbugs@microsoft.com...


I hit a similar problem and one issue is that unless it displays on the screen, the forms don't appear to get rendered which is a major PITA and seems to make them useless for any kind of batch generation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜