-
Notifications
You must be signed in to change notification settings - Fork 99
Add Plotly.NET.ImageExport project #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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! |
It is not important for me. I think current reference in the code is enough :) |
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).
|
Hi, try using the async version please |
If I do that its moving to the next line but it's not saving the file. |
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.
|
Its Worked thank you very much. |
This PR adds the
Plotly.NET.ImageExport
project which is focused on providing extensions to save Plotly.NET'sGenericChart
s as static images.I designed the project with extensibility in mind. The needed steps to add a new renderer is:
IGenericChartRenderer
interfaceExportEngine
-> Done!The currently provided Renderer uses
PuppeteerSharp
to 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: