I used a graph from the Vega example and add it to my MediaWiki page and it works, I have replaced in the "data": section the "values": part with the
"data": [ { "name": "table", "url": "http://wiki.xxxxx.com/docs/ReleaseManagement/GraphTest.json" } ],
and the data is not presented. I took the " values" section from the example file and created a Json file, the file is reachable, I am reading the data using the #get_web_data:url=http....... and it works.
- Do you have any idea why it isn't working?
- Do I have to add another extension to the MediaWiki so it will work?
Thanks in advance for your help, Shalom
Using MediaWiki extension External Data, you can now embed Vega visualisations into wiki pages, with data defined either in the JSON itself or linked to by an URL. An example, providing both the wikitext and necessary configuration, can be found here.
Please note, that this embedding is simultaneously server-side, that is, the visualisation will be shown in JavaScript-less environments like PDF export, and client-side: the visualisation will be interactive, if so configured.