Unable to export pdf for javascript chart

Nikita Dureja shared this question 23 days ago
On Hold

HI Team,

I am using the yellowfin 9.8 version, While trying to export pdf for a report which includes JavaScript chart, I am facing the error messages as attached in the image

I am able to successfully export reports in pdf that are without javascript charts. Please advise if it requires some additional settings from Infrastructure side

Thanks,

Nikita Dureja

Replies (9)

photo
1

Hi Nikita,

Thanks for reaching out to Yellowfin support.

We are currently reviewing this case. We will get back to you with the findings shortly.

Regards,

Hari Teja

photo
1

Hi Hari,

Nikita and I investigated this issue further. I was able to replicate the issue on a local Ski Team environment (Yellowfin 9.9.0 and Java Zulu11.52+13-CA).

Please see attached error log and a Ski Team javascript example chart you can use.

Hopefully this helps with your replication

Thanks,

Emma

photo
1

Hi Nikitha,

I hope you are doing well.

I have tried replicating this issue in our local environment YF version 9.9 and could able to export the JS chart in PDF file along with JS chart. Could you please go through the replication recording in the below link and also please try out with fresh report.

https://ftp.yellowfin.bi/f/38d43347556cbcf3

Regards,
Hari Teja

photo
1

Hi Hari,

I expected a more thorough response please.

For us to replicate your example, can you please sent us the js code you used to draw an svg, along with your java version?

You'll also see in my earlier comment, I sent you a Ski Team example with a real javascript chart, can you please test this example and let us know your result?

Thanks,

Emma

photo
1

Hi Emma,

Good day!

We are using Java Jre-1.8 and here’s is the JS code we used.

generateChart = function(options) {
var $chartDrawDiv = $(options.divSelector);
$chartDrawDiv.addClass('jsChartNoOverflow');
$chartDrawDiv.append(`
<svg>
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>`)
}

And we have replicated the Ski team example you provided in Yellowfin 9.9.0 and Java Zulu, but we got the same warning about not being able to export the Javascript chart in the output pdf.


Regards,
Hari Teja

photo
1

Dear Emma,


I hope you are doing well.

I just want to touch base to see if you had a chance to read through my response. If you can let me know that would be great.

Regards
Hari Teja

photo
1

Hi Hari,


I was able to replicate the code and it worked on sandbox- java.version:1.8.0_202 but I am unable to export pdf for this chart on Java Zulu11.52+13-CA. Our main focus is that we are unable to export the pdf on Java Zulu, so could you please look into that issue


Regards,

Nikita Dureja

photo
1

Hello Nikita,

This is to keep you informed that, I have submitted a Jira ticket on your behalf to the Product Team for further review or clarification. As soon as I hear back from them, I will update this case for your visibility. Please let me know if there is anything else I can help you with, I would be happy to do so.

Regards,
Hari Teja

photo
1

Hi Hari,

For clarity, with your example chart (the circle svg), we can export that to PDF successfully on both java 8 and java 11.

But the example chart that I sent you in an earlier comment, will not export to PDF on either java 8 or 11. I believe you also tested this on java 8 and could not get it export the chart to the PDF. So we are wanting clarification about how to get a chart like that to export to PDF? This chart experiences the same exporting issue as our own custom js chart.

Many thanks,

Emma

Leave a Comment
 
Attach a file