on 04-15-2016 6:37 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please have a look into lumira-extension-viz/render.js at master · SAP/lumira-extension-viz · GitHub
here look for require
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.