How to use D3js in Wordpress?

I installed wordpress as well as a plugin for d3js. Now, what is the best way to load data so that I can execute and maintain schedules on the fly?

  • If I upload csv files directly, where do I store it? Does it matter?
  • If I want to store data on a third-party site, what can I use? Preferably a free service.

I made the graphs in my local machine, and now I want to publish these graphs.

+4
source share
4 answers

Actually, if you use your own instance of wordpress, you probably do not need a plugaby plugin (there are restrictions on wordpress.com sites).

  • ekatz, -: (csv json) html-, d3.js( javascript html ) URL- html, : www.yourwebsite.com/wp-content/uploads/2015/11/d3page.html

, javascript . d3.csv("file.csv") 2. post/page HTML iFrame:

`<iframe
  style="border: 0px;"
  src="www.yourwebsite.com/wp-content/uploads/2015/11/d3page.html"
  scrolling="no"
  width="100%"
  height="500px">
</iframe>`

, .

.

.: http://www.datamaplab.com/posts/embedding-javascript-visualization-wordpress/

, http://www.fledit.io/ json-, .

+4

WP, .

, , URL-, .

+2

vida.io embed WordPress. . :

<iframe src="http://vida.io/embed/SodotqYWppo6NWK9m" style="width: 100%; height: 350px" frameBorder="0"/>
0

, , iframe. pageview. html ( csvs/tsvs ..) Wordpress. html :

[pageview url="/wp-content/uploads/2014/01/wpload.html" height="400px" border="yes']

: http://wordpress.org/plugins/wp-d3/

d3 wordpress, .

0

All Articles