The easiest way how to plot data? #1755
-
I am struggling with this simple task. How to create plot and show it in dotnet interactive. #r "nuget: XPlot.Plotly.Interactive"
using XPlot.Plotly;
using XPlot.Plotly.Interactive;
var ch = Chart.Line(new[]{1,2,3,4});
ch ch.Show(); opens html file with the plot, but I would like to keep as an output of cell. XPlot.Plotly is not necessary to use. But based on my research it should be the easiest way.. What I am missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I had this issue in the past and resolved it by adding Not sure if this should still be necessary. I found a reference to this issue which pointed me in the right direction. |
Beta Was this translation helpful? Give feedback.
-
I might recommend using Plotly.NET instead. |
Beta Was this translation helpful? Give feedback.
I had this issue in the past and resolved it by adding
#i "nuget:https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"
above#r "nuget: XPlot.Plotly.Interactive"
.Not sure if this should still be necessary. I found a reference to this issue which pointed me in the right direction.