Chart Image export

I need to print chart and also a custom header component, which I am showing as a div above the chart component. When I pass to “parent” component id in download Image as first pram a blank image in exported which just contains x and y axis.

HAEAR

I want to print all content inside “parent” div. Browser print is copping chart. So can I print this using Ploty Image export??
As of now export only works fine if I give “chartDiv” as if to image export.

idk if you still need help with this, but I recommend converting the chart to an image through the toImage() method. that’s helped me a lot. check out the documentation here. Static image export in JavaScript

if you’re still here, good luck