Skip to Content
avatar image
Former Member

Lumira/Web IDE - Reference to javascript libraries

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

Thank you for assisting me.

Kind regards,

Yuriy K.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 18, 2016 at 04:38 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Annie,

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

      Thank you,

      Yuriy

  • Apr 18, 2016 at 02:15 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Apr 18, 2016 at 02:23 PM
    Add comment
    10|10000 characters needed characters exceeded