Kaare
Kaare

Reputation: 43

F# interactive notebook not showing Plotly chart

I'm new to F# interactive notebook and XPlot.Plotly.

I tried the following code in the hopes to get a nice sine wave shown

#r "nuget: XPlot.Plotly"
open XPlot.Plotly

let series = [for x in -5.0 .. 0.1 .. 5.0 -> sin x]

Chart.Line(series)

Instead of the chart I get this Table showing Height, Id and Width

Please point out what I'm doing wrong

Upvotes: 4

Views: 571

Answers (1)

pilsdumps
pilsdumps

Reputation: 617

You need to add the interactive nuget package

#r "nuget: XPlot.Plotly"
#r "nuget: XPlot.Plotly.Interactive"

Upvotes: 4

Related Questions