我试图在visualise或Atom中使用F#脚本来可视化一些数据(两者都尝试过了)。有一些简单的例子展示了它如何使用XPlot Google:
https://tahahachana.github.io/XPlot/ http://tomasp.net/blog/2016/fslab-ionide/
但我没有任何图表输出。如果我执行这样的代码:
inputs
|> Chart.Combo
|> Chart.WithOptions
(Options(title = "Coffee Production", series =
[| for typ in series -> Series(typ) |]))
|> Chart.WithLabels
["Bolivia"; "Ecuador"; "Madagascar"]
|> Chart.WithLegend true
|> Chart.WithSize (600, 250)我只在FSI窗口中获得输出:
GoogleChart = XPlot.GoogleCharts.GoogleChart {高度=250,Id =“85c0bc41-3ae2-4a40-8517-da33a7ad713”,宽度=600};
..。哪一个当然是正确的,还可以在文本窗口中显示什么?但是如何使用F#交互式获得VS代码或Atom中的图形输出?我显然错过了一些基本的东西,但是什么?
发布于 2021-03-29 02:55:01
这个问题是在搜索Visual内部人员和.NET互动时提出的。现在看来,这是获取XPlot内联的方法:
#i "nuget:https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"
#r "nuget:xplot.plotly.interactive"https://stackoverflow.com/questions/43142768
复制相似问题