Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include new libraries into d3-workbench (via mail) #11

Closed
BastiTee opened this issue Jan 1, 2018 · 1 comment
Closed

How to include new libraries into d3-workbench (via mail) #11

BastiTee opened this issue Jan 1, 2018 · 1 comment
Labels

Comments

@BastiTee
Copy link
Owner

BastiTee commented Jan 1, 2018

-- question posted by jm/ via mail

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.

@BastiTee
Copy link
Owner Author

No response positive or negative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant