Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ruben

    (@figurebelow)

    Hi,

    Some of the examples in figurebelow.com load data from .csv files which in practice is the same as loading a .json file.
    The json from your example is this, if you add it to your media library you should be able to referenciate it as an include file in the chart editor

    Sorry, old post I know, but just in case, I managed to do this by writing a function in functions.php that first gets data through a json query and then passes it to a function written in the wp-d3 chart manager window. It’s important to not pass the json data to the function until the svg ‘canvas’ is drawn and you know you have all the data.

    If you need any elaboration let me know.

    How did you find the path to the json file from this example https://bl.ocks.org/herrstucki/4327678 ?

    Plugin Author Ruben

    (@figurebelow)

    Hi,

    The quickest way is to use Firebug or similar in your browser to see where the file is read from.
    Alternatively you can always check the code, although this sometimes is more confusing (in the map from the example the filename was contained inside a javascript map).
    Often happens that the files is just placed in the same folder where the html page is.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Visualizations that reference json files’ is closed to new replies.