mercredi 29 juin 2016

Include some graphs in a unique single page

I have 3 directories plot2, plot3 and plot4 containing several files that 3 different chart made using d3.

The plot2, plot3 and plot4 directories structure is always the same:

plot2
  |_ index.html
  |_ js
      |_ script.js
      |_ queue.v1.min.js
      |_ ...other files...
  |_ syle
      |_ style.css
  |_ data
      |_ ...other files...

I then created a plot1 directory that contains a page (html/js/css) whose purpose is to contain the plot2, plot3 and plot4 graphs. That is, I would do something like PLUNKER

I don't want to simply copy the 3 graphics code in the new file because it does not seem the most efficient way and it would be too complicated to handle (I've just tried).

How can I do then?

Aucun commentaire:

Enregistrer un commentaire