Interactive HTML Export in F#
Plotly allows you to save interactive HTML versions of your figures to your local disk.
#r "nuget: Plotly.NET, 2.0.0-preview.8" #r "nuget: Plotly.NET.Interactive, 2.0.0-preview.8"
The below script needs to be able to find the current output cell; this is an easy method to get it.
- Plotly.NET, 2.0.0-preview.8
- Plotly.NET.Interactive, 2.0.0-preview.8
Loading extensions from
Added Kernel Extension including formatters for Plotly.NET charts.
Plotly figures are interactive when viewed in a web browser: you can hover over data points, pan and zoom axes, and show and hide traces by clicking or double-clicking on the legend. You can export figures either to static image file formats like PNG, JPEG, SVG or PDF or you can export them to HTML files which can be opened in a browser.
open Plotly.NET let x = [for i in 0..10 -> i] let y = [for i in x -> i*2] Chart.Point(x,y) |> Chart.saveHtmlAs "test"