---
title: "Plotly NET"
description: "Learn how to chart data with Plotly.NET library in the C# research environment in QuantConnect."
canonical: https://www.quantconnect.com/docs/v2/research-environment/charting/plotly-net
markdown: https://www.quantconnect.com/docs/v2/research-environment/charting/plotly-net.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/04%20Research%20Environment/04%20Charting/05%20Plotly%20NET
modified: 2026-10-28
index: https://www.quantconnect.com/llms.txt
---

# Plotly NET

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Research Environment](https://www.quantconnect.com/docs/v2/research-environment.md) > [Charting](https://www.quantconnect.com/docs/v2/research-environment/charting.md) > Plotly NET

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

`Plotly.NET` provides functions for generating and rendering plotly.js charts in `.NET` programming languages. Our .NET interactive notebooks support its C# implementation.

## Preparation

### Import Libraries

To research with the `Plotly.NET` library, import the libraries that you need.

### Get Historical Data

[Get some historical market data](https://www.quantconnect.com/docs/v2/research-environment/datasets/us-equity.md#04-Get-Historical-Data) to produce the plots. For example, to get data for a bank sector ETF and some banking companies over 2021, run:

## Create Candlestick Chart

You must [import the plotting libraries and get some historical data](https://www.quantconnect.com/docs/v2/research-environment/charting/plotly-net.md#02-Preparation) to create candlestick charts.

In this example, you create a candlestick chart that shows the open, high, low, and close prices of one of the banking securities. Follow these steps to create the candlestick chart:

The Jupyter Notebook displays the candlestick chart.

![Candlestick plot of XLF OHLC](https://cdn.quantconnect.com/i/tu/plotly-net-candlestick-plot.png)

## Create Line Chart

You must [import the plotting libraries and get some historical data](https://www.quantconnect.com/docs/v2/research-environment/charting/plotly-net.md#02-Preparation) to create candlestick charts.

In this example, you create a line chart that shows the volume of a security. Follow these steps to create the chart:

The Jupyter Notebook displays the line chart.

![](https://cdn.quantconnect.com/i/tu/plotly-net-line-plot.png)

## Create Scatter Plot

You must [import the plotting libraries and get some historical data](https://www.quantconnect.com/docs/v2/research-environment/charting/plotly-net.md#02-Preparation) to create candlestick charts.

In this example, you create a scatter plot that shows the relationship between the daily price of two securities. Follow these steps to create the scatter plot:

The Jupyter Notebook displays the scatter plot.

![Plotly.NET scatter plot](https://cdn.quantconnect.com/i/tu/plotly-net-scatter-plot.png)

## Create Heat Map

You must [import the plotting libraries and get some historical data](https://www.quantconnect.com/docs/v2/research-environment/charting/plotly-net.md#02-Preparation) to create candlestick charts.

In this example, you create a heat map that shows the correlation between the daily returns of the banking securities. Follow these steps to create the heat map:

The Jupyter Notebook displays the heat map.

![Plotly.NET heat map](https://cdn.quantconnect.com/i/tu/plotly-net-heat-map.png)

## Create 3D Chart

You must [import the plotting libraries and get some historical data](https://www.quantconnect.com/docs/v2/research-environment/charting/plotly-net.md#02-Preparation) to create candlestick charts.

In this example, you create a 3D chart that shows the price of an asset on each dimension, i.e. the price correlation of 3 different symbols. Follow these steps to create the 3D chart:

The Jupyter Notebook displays the scatter plot.

![Plotly.NET 3D plot](https://cdn.quantconnect.com/i/tu/plotly-net-3d-plot.png)
