Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 1.51 KB

interactive-html-export.md

File metadata and controls

58 lines (48 loc) · 1.51 KB
jupyter
jupytext kernelspec language_info plotly
text_representation
extension format_name format_version jupytext_version
.md
markdown
1.3
1.12.0
display_name language name
.NET (F#)
F#
.net-fsharp
codemirror_mode file_extension mimetype name nbconvert_exporter pygments_lexer version
name version
ipython
3
.fs
text/x-fsharp
F#
fsharp
fsharp
5.0
description display_as language layout name order page_type permalink thumbnail
Plotly allows you to save interactive HTML versions of your figures to your local disk.
file_settings
fsharp
base
Interactive HTML Export
31
u-guide
fsharp/interactive-html-export/
thumbnail/static-image-export.png
#r "nuget: Plotly.NET, 2.0.0-preview.8"
#r "nuget: Plotly.NET.Interactive, 2.0.0-preview.8"

Interactive vs Static Export

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.

Saving to an HTML file

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"