I couldn't see this for Kalium. Is this an extra plugin which is not included with Kalium? Is there anything you would recommend that works well with Kalium for installing shortcode?
Also, your example below has the js and json together. If you are working with a set of d3 files (short code which refers to other js which itself refers to other js files, then do they all need to be concatenated into the one file or can you keep them in separate files? In which case, where do they need to be placed to be called correctly?
Calcium uses a specific plugin to manage shortcodes, which now is quite old and deprecated. The shortcode I gave is can be implemented simply, just put that code in PHP and everytime you use
[d3_sunburst]
It will show the JS code.
As for other files, I am not sure how many types of D3 documents you have or how can they be included?
Have you checked for plugins that provide D3 functionality:
Hi,
Really like your themes. Great functionality.
I wanted to add a couple of data visualisations using d3.js https://d3js.org/.
What is the best way to do this?
Many thanks.
Hi there,
This javascript library could be implemented by shortcodes for example (taken here):
You can figure out other ways what fits best for you.
Hi Arlind,
Apologies for the really really slow response.
Thanks so much for the suggestion.
Will give it a go.
Kind regards,
V
Hi Arlind,
For adding shortcode, i saw in the Calcium theme that Vision helper was recommended https://documentation.laborator.co/kb/calcium/how-to-add-shortcodes//
I couldn't see this for Kalium. Is this an extra plugin which is not included with Kalium? Is there anything you would recommend that works well with Kalium for installing shortcode?
Also, your example below has the js and json together. If you are working with a set of d3 files (short code which refers to other js which itself refers to other js files, then do they all need to be concatenated into the one file or can you keep them in separate files? In which case, where do they need to be placed to be called correctly?
Thanks Arlind.
Kind regards,
V
Hi V,
Calcium uses a specific plugin to manage shortcodes, which now is quite old and deprecated. The shortcode I gave is can be implemented simply, just put that code in PHP and everytime you use
It will show the JS code.
As for other files, I am not sure how many types of D3 documents you have or how can they be included?
Have you checked for plugins that provide D3 functionality:
https://wordpress.org/plugins/wp-d3/
https://premium.wpmudev.org/blog/beyond-pie-charts-add-mind-blowing-visualizations-to-wordpress/