GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Plotly.NET/src/Plotly.NET at dev · plotly/Plotly.NET

Expand file tree

/

Plotly.NET

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

Plotly.NET

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
ChartAPI
ChartAPI
 
 
CommonAbstractions
CommonAbstractions
 
 
Config
Config
 
 
DisplayOptions
DisplayOptions
 
 
Layout
Layout
 
 
Templates
Templates
 
 
Traces
Traces
 
 
Defaults.fs
Defaults.fs
 
 
Globals.fs
Globals.fs
 
 
InternalUtils.fs
InternalUtils.fs
 
 
Playground.fsx
Playground.fsx
 
 
Plotly.NET.fsproj
Plotly.NET.fsproj
 
 
README.md
README.md
 
 
RELEASE_NOTES.md
RELEASE_NOTES.md
 
 
plotly-2.28.0.min.js
plotly-2.28.0.min.js
 
 
plotly-2.28.0.min.js.LICENSE.txt
plotly-2.28.0.min.js.LICENSE.txt
 
 

README.md

Outline

Plotly.NET

Create interactive plotly.js charts in .NET. Plotly.NET provides an F# API for building, styling, combining, and rendering charts, with lower-level access to traces, layouts, and configuration. This is the core library used by the other Plotly.NET packages.

Installation

dotnet add package Plotly.NET --version 6.0.0

The library targets .NET Standard 2.0. For an idiomatic C# API, install Plotly.NET.CSharp as well.

Quick start

In an F# project with the package installed:

open Plotly.NET

let chart =
    Chart.Line(
        x = [ 1; 2; 3; 4 ],
        y = [ 2; 5; 3; 8 ]
    )
    |> Chart.withTitle "My first chart"

chart |> Chart.saveHtml "chart.html"

Open chart.html in a browser to interact with the chart. Use chart |> Chart.show to save a temporary HTML file and open it in your default browser automatically. For an .fsx script, add #r "nuget: Plotly.NET, 6.0.0" before the example.

By default, the HTML loads plotly.js from a CDN and needs an internet connection. See display options for using an embedded or local plotly.js reference.

Related packages

  • Plotly.NET.CSharp: C# chart factories and extension methods.
  • Plotly.NET.Interactive: inline chart display in .NET Interactive / Polyglot Notebooks.
  • Plotly.NET.ImageExport: programmatic static image export.

Documentation and support

  • Examples and tutorials
  • API reference
  • Release notes and migration information
  • Source code and issue tracker

Plotly.NET is licensed under the MIT license.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.