Repository navigation
Export Chart to SVG/PNG #90
Description
Activity
- addedArea: MissingAbstractionPlotly.js functionality that has to be implementedPlotly.js functionality that has to be implemented
on Jun 24, 2021 To export charts created with Plotly.NET directly as an image file, you need some kind of headless browser to do the javascript execution to render the chart first. There is a package out there using Pupeteer for that which might work for you, check #21 for that. However, there is an in-house solution by plotly which we still need to wrap for .NET use - It is on the roadmap but not quite here yet.
Reacted by LucasNmnThanks for your advice,
I will test that.Thanks for checking it out, i will test this in C# now to see if there's an issue.
Just to be clear,
Plotly.NET.ImageExportis a separate nuget package: https://www.nuget.org/packages/Plotly.NET.ImageExport/. Maybe i should add this to the docs. If you want access to.SaveJPyou also have to open theGenericChartExtensionsnamespace.But if you have an approach that works for you already, thats just as fine.
Reacted by LucasNmnThanks for checking it out, i will test this in C# now to see if there's an issue.
Just to be clear,
Plotly.NET.ImageExportis a separate nuget package: https://www.nuget.org/packages/Plotly.NET.ImageExport/. Maybe i should add this to the docs. If you want access to.SaveJPyou also have to open theGenericChartExtensionsnamespace.But if you have an approach that works for you already, thats just as fine.
Thanks for that. I thought it was inside the same package. X)
It's working now. But I have to fix authorization problems with my proxy.
Hi,
is there an easy way to export a plotted chart directly from code as PNG or SVG?
I tried it using the ".toChartImage" function from the api but didn't find a working solution yet.