fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
924 stars 196 forks source link

FSLab page out of date, not working #546

Open KPMTGG opened 2 years ago

KPMTGG commented 2 years ago

The Deedle in 10 minutes using F# page does not work in the sections that use FSharp.Charting.

For example, about half way down the page is this code:

Chart.Combine
  [ Chart.Line(msft?Difference |> Series.observations) 
    Chart.Line(fb?Difference |> Series.observations) ]

This section is easily fixed by the following change:

open Plotly.NET.Interactive

Chart.combine
  [ Chart.Line(fb?Difference  |> Series.observations) 
    Chart.Line(msft?Difference    |> Series.observations) ]

However, there are other charts that fail that I do not know how to fix.

Arlofin commented 9 months ago

This might be due to your project targetting .Net Core (either directly or disguised as net5.0+), while at the same time using the traditional FSharp.Charting package, which supports only the .Net Framework. There is a port to .Net Core that goes under the name of FW-FSharp.Charting.Core. Using this might resolve your issue. There are other parts of the FSLab page that are outdated, however. E.g. the quick start tutorial fails on the first line on modern installations, since there is typically no packages folder in the project folder anymore from which packages could be read from: The NuGet package manager now caches packages in the .nuget folder in the user directory. The typical way to load them would be by specifying #r "nuget: <Package ID>". This is not entirely equivalent, however: I have so far not figured out how to register the Deedle pretty printing (coming through Deedle.fsx) in a user-independent fashion with standard NuGet. An up-to-date quick start tutorial is in my view essential to make Deedle attractive for beginners.