You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can't seem to find the ../libs folder that is referenced in index-collection.html
I use express.js for serving static files. In this case ./lib is a symlink to node_modules in your local clone or install path.
I'm unable to figure out how to include external libraries like jQuery in the svg.js
To include jquery according to my current practise, you'd need to npm install it and then add the relative path to jquery.min.js to the files d3-wb-server/index-collection.html and d3-wb-server/index-canvas.html. The latter is the template for a fullscreen viz, the other for the collections overview.
as well as other elements (buttons, sliders) into the svg.js
Please check http://localhost:50321/coll_01_tech_specs/006-wb-html/ in the running demo instance and the corresponding source code to see how I would do this with the d3-wb-html module. And since you can always use core d3, check d3-selection how to select DOM elements and append HTML elements manually.
Let me know if you need further information.
Thanks and best regards,
Basti.
The text was updated successfully, but these errors were encountered:
-- question posted by jm/ via mail
I use express.js for serving static files. In this case
./lib
is a symlink tonode_modules
in your local clone or install path.To include jquery according to my current practise, you'd need to
npm install
it and then add the relative path tojquery.min.js
to the filesd3-wb-server/index-collection.html
andd3-wb-server/index-canvas.html
. The latter is the template for a fullscreen viz, the other for the collections overview.Please check http://localhost:50321/coll_01_tech_specs/006-wb-html/ in the running demo instance and the corresponding source code to see how I would do this with the
d3-wb-html
module. And since you can always use cored3
, check d3-selection how to select DOM elements and append HTML elements manually.Let me know if you need further information.
Thanks and best regards,
Basti.
The text was updated successfully, but these errors were encountered: