Uh oh!
There was an error while loading. Please reload this page.
Add Plotly.NET.ImageExport project - #94
Conversation
@ilyalatt please let me know if you want to be added as author to the nuget package that will be released from this eventually, as your work made this possible! |
ilyalatt
commented
Jul 10, 2021
It is not important for me. I think current reference in the code is enough :) |
shuganth
commented
Aug 20, 2022
I am trying to save my plotly.Net chart to a jpg using Plotly.NET.ImageExport 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). |
WhiteBlackGoose
commented
Aug 20, 2022
Hi, try using the async version please |
shuganth
commented
Aug 20, 2022
If I do that its moving to the next line but it's not saving the file. |
WhiteBlackGoose
commented
Aug 20, 2022
Did you use await? |
I'm a bit stuck here could you please help me out |
Uh, right. It's either that you're using an old version or we gracefully forgot to fix API for those methods. Could you try please try updating to the preview version. For it, open your cmd, cd to your project folder (e. g. |
shuganth
commented
Aug 20, 2022
Its Worked thank you very much. |

This PR adds the
Plotly.NET.ImageExportproject which is focused on providing extensions to save Plotly.NET'sGenericCharts as static images.I designed the project with extensibility in mind. The needed steps to add a new renderer is:
IGenericChartRendererinterfaceExportEngine-> Done!The currently provided Renderer uses
PuppeteerSharpto use Chromium as headless browser and supports jpg, png, and svg export. It is heavily inspired by the work of @ilyalatt with https://github.com/ilyalatt/Plotly.NET.PuppeteerRenderer.this PR eventually
closes#90 ,
closes#21 ,
and closes#65.
Addition of other engines will be tracked in a separate issue once this is merged.
ToDo: