External Libraries in Code Mode

Renato Marcello dos Reis shared this question 22 months ago
Answered

Hi Guys,


I hope everything is fine with all you from Yellowfin support.


I have a Javascript Chart from which I need to allow our users to take screenshots using Yellowfin Feature. Sadly, this feature does only work with Yellowfin charts.


As I'm in a need of some kind of chart Yellowfin does not provide, I created an JS Chart to fulfill my needs, but I will also need to create a workaround to screenshots feature. I was thinking to use html2canvas, but I don't know how to add external libraries in code mode.


Can someone point me into the right direction?


Thanks in advance.


Regards,


Renato Marcello

Replies (2)

photo
1

Hi Simon,

Sorry for the delay here, I had some issues that had to be solved asap, and I couldn't read your answer until today.

The "require" function used in your example couldn't help because the specific kind of code I need can only be achieved directly in Code Mode on my dashboard. However, I didn't knew where to put the script source in Code Mode. The answer to this, was to put right below the "canvas" tag in html.

We can also use the require in JS, but I think it's more usual to just put in html.

Thanks a lot for your help in this case.

Regards,

Renato Marcello

photo
1

Hi Simon,

I just wanted to thank you once more. You can close this topic. It's very clear to me how we need to work with code mode now.

Regards,

Renato Marcello

Leave a Comment
 
Attach a file