cancel
Showing results for 
Search instead for 
Did you mean: 

Lumira/Web IDE - Reference to javascript libraries

Former Member
0 Kudos

Hello there,

My sincere apology if I am posting this question on the wrong category.

I am new to Lumira and SAP Web IDE and I am developing some visualization extensions for my office. I am currently working on a Chord Diagram, like the one provided on this web site: http://www.delimited.io/blog/2014/11/18/interactive-chord-diagrams-in-d3. My question is, how can you reference any exterior libraries within your project, such as d3js.org etc. The chart from the link above references them with the <script> tag . How can I reference any libraries within the project? If there a place where I can add the library to my project?

Thank you for assisting me.

Kind regards,

Yuriy K.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183462
Active Participant
0 Kudos

Hi Yuriy,

For referencing other external libraries, you can do as Rahul suggested. There is also a blog on Using External Resources when building SAP Lumira Viz Extensions in SAP Web IDE

However, for the D3.js library, you don't need to reference it at all because in Web IDE, D3.js is inbuilt (up to v3) so you'll be good with using D3 in a Lumira viz project.

Thanks,

Annie

Former Member
0 Kudos

Hi Annie,

Thank you for providing me this information. Great to know that the library is alredy supported by the IDE.

Thank you,

Yuriy

Answers (2)

Answers (2)

0 Kudos
Former Member
0 Kudos

Hi Rahul,

Thank you for your response. I found the reference to "require".

Thank you,

Yuriy

0 Kudos

Hi

Thanks . Hope this helped you.

Let me know of this answered your query

0 Kudos

Hi

you can provide the extrenal javascript information in renderer.js

for an example -

define("async!http://mymap.com"

], function(util) {

can you try it this way?

Former Member
0 Kudos

Hi Rahul,

Is there a way I can copy or import, say the D3js.org javascript and added onto my project? The reason I am asking is because our network is internal and does not connect to the internet.

As an example, in C# MVC, you can download the javascript such as bootstrap and make reference internally to the application. This way, the application is always referred to the code regardless of the network you are on.

Is this possible ?

Thank you,

Yuriy