Topic on Project:Support desk

134.191.232.70 (talkcontribs)

Hi,

I would like to add Graph (timeline & line) using an internal data source.


what is the best extension for it? can someone send me a working examples for it.


Thanks,

Shalom


Malyacko (talkcontribs)
Shalomwiess (talkcontribs)

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 the "url" option


The data is not presented.

- I took the section "values" and enter them to 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

Shalomwiess (talkcontribs)

Hi,

I added support to https to the server and got

The error that I see on in the console :

[Vega Err] Error: URL hostname is not whitelisted: https://wikitest/mw/docs/ReleaseManagement/GraphTest.json

This is what i tried to add in the LocalSettings.php of the mediawiki :

$wgGraphAllowedDomains = [ 'wikiraw' => [ 'wikitest' ], 'https' => [ 'wikitest' ] ];

wfLoadExtension( 'Graph' );

$wgGraphIsTrusted = true;

i've tried to replace https with wikiraw in the page source instead of https, same issue:

       "url": "https://wikitest/mw/docs/ReleaseManagement/GraphTest.json",

weird thing is, part of your data is showing in the graph that is rendered

Thanks,

Shalom

Ezmora (talkcontribs)

Hi,

I would like to add a graph to mediawiki by reading the data from a remote json file.

I am a complete newbie.... So where do I start?

Do I need to install anything?

How do I read the remote data?

How do I display a graph?

Is there some sort of a manual out there that could guide me through?


Thanks

Reply to "Graphs in Mediawiki"