Replies: 1 comment
-
Here is some simplified source code if that helps. I have based it on the working scatter plot example at https://delightful-pebble-00ab3ee10.1.azurestaticapps.net/: @using Plotly.Blazor GraphSave plot<PlotlyChart style="height: 60vh; min-height: 350px" @bind-Config="config" @bind-Layout="layout" @bind-Data="data" @ref="chart" /> @code {
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need to be able to save images of plotly charts to the server to place in dynamically generated reports, so have been trying to use the ToImage() function to achieve this as below:
string i = await chart.ToImage(ImageFormat.Png, 400, 800);
Whilst I have at times been able to make this function work as expected, the trouble comes if the chart data has changed in any way. In these cases chart.ToImage just hangs and no image is saved.
I would greatly appreciate some help with this. I have tried installing earlier versions of plotly.blazor to see if this fixes the problem, but it didn't help. I have also tried re-working my code to more closely resemble the working example at https://delightful-pebble-00ab3ee10.1.azurestaticapps.net/ but to no avail.
If required I can provide some more detailed source code demonstrating the problem.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions