Questions tagged [plotly.net]

12 questions
1
vote
1 answer

Serialize Chart into JSON string in Plotly.NET

I want to serialize a Plotly chart in F# into JSON string so it can be passed as a payload through a HTTP request. In theory, this should be trivial as the Plotly.NET documentation states, "Plotly.NET is a .NET wrapper for creation of plotly charts.…
PatJon6
  • 13
  • 5
1
vote
1 answer

Axis title doesn't show up in Plotly.NET for C#

I start using Plotly.NET for plotting. Everything was OK until I start plot 3D surfaces and my axis title disappear. There is part of the code my_func(double[] x, string[] y, double[,] z) //... LinearAxis xAxis =…
TomatPast
  • 21
  • 5
1
vote
1 answer

Plotting scatter chart with a linear regression

I am trying to display a scatter chart for two columns in a Deedly data frame, ideally grouped by a third column. And I would like to show a linear regression line on the same chart. In Python this can be done with seaborn.lmplot…
Alkasai
  • 3,757
  • 1
  • 19
  • 25
1
vote
0 answers

How do I attach a click event handler to a particular candlestick generated using the plotly.NET library?

I'm just beginning to learn F# and I was wondering how to attach a click event handler to a particular candlestick rendered using the plotly.NET library at https://plotly.net/07_1_candlestick.html Notice if you scroll down and hover your mouse…
siralbert
  • 55
  • 1
  • 9
1
vote
1 answer

Make chart fill size of browser window

Screenshot I have a C# program which uses Plotly.NET to set up a candlestick chart of the S&P data. It's shown below in a browser window: Question Is there a way to get it to be larger? Perhaps a way to get it to fill the window? Responsive…
dharmatech
  • 8,979
  • 8
  • 42
  • 88
1
vote
0 answers

C# implementation of Plotly .Net sliders example

since I was struggling a bit transferring the F# example to use sliders in Plotly.Net (https://plotly.net/02_9_Sliders.html) to C# I just like to post my code. Maybe this helps some other people or someone has useful comments or improvements. using…
1
vote
1 answer

display only a time range with plotly.net

I have a plotly.net graph with a lot of different shapes. The X axis is a timeline and I would like to limit the display to a specific range of dates. I could filter / clamp the data in each shape, etc but that seems like a lot of work compared to…
Thomas
  • 10,933
  • 14
  • 65
  • 136
1
vote
0 answers

how to make wider and properly aligned candlesticks with plotly.net?

With plotly.net, I can make a candlestick chart: But when I start to plot the price on the same chart, it doesn't work very well: We can see that each candle should be twice as wide and they should touch each other in order to overlap the time…
Thomas
  • 10,933
  • 14
  • 65
  • 136
0
votes
1 answer

Plotly.Net offline use

Is it possible to run Plotly.Net offline with F#? You can store "plotly-2.6.3.min.js" and "require.min.js" locally and replace paths to html/javascript and see graphs. But when using Geo Maps, how to handle with world_50m or world_110m.json as…
RAh
  • 11
  • 3
0
votes
1 answer

Plotly.NET configuration issue

Problem running Plotly.NET on F# Interactive. (VS2019, FSharp Core 7.0.0, Plotly.NET 3.0.1, TargetFramework: net472) #r C:\....\.nuget\packages\plotly.net\3.0.1\lib\netstandard2.0\Plotly.NET.dll" open Plotly.NET let xData = [0. .. 10.] let yData =…
RAh
  • 11
  • 3
0
votes
1 answer

Plotly.Net Image Export

I am trying to save my plotly.Net chart to a jpg but when I try to do that there is no error but the code keeps running forever when it comes to the line maps.SaveJpg(path). Can any please help thanks? using Plotly.NET; using…
0
votes
3 answers

Issue with F# Plotly.NET chart descriptions

I'm trying to plot a line chart with a description, using the first method identified in https://plotly.net/00_2_display-options.html. While the code runs, and the chart is correctly plotted, I can't see the description. Here's the code block: let…
fython
  • 11
  • 2