rawgraphs / rawgraphs-app

A web interface to create custom vector-based visualizations on top of RAWGraphs core
https://rawgraphs.io
Apache License 2.0
8.66k stars 1.84k forks source link

Allow loading data from URL passed as URL parameter #368

Open stijn-uva opened 1 year ago

stijn-uva commented 1 year ago

In which part of the interface would this feature applies?

Is your feature request related to a problem? Please describe. I am one of the developers of 4CAT. Our tool is used by researchers and journalists to do social media data analysis. It can output a variety of analyses as CSV files, e.g. a file containing the amount of tweets per month in a dataset, and so on. Many of these can be visualised very well with RawGraphs and we often recommend people to do so. Right now this requires a manual step where people e.g. download the file and upload it into RawGraphs. We would like to be able to add a "visualise with RawGraphs" button to the interface which would open RawGraphs and open the data file 'automatically'.

Describe the solution you'd like It is already possible to load data from a URL in the "load your data" step in RawGraphs. We can instruct people to use this, but it would be even easier to be able to pass the data file URL to RawGraphs via a URL parameter, e.g. https://app.rawgraphs.io/?datafile=[4CAT_url]. Then we - and other tools - could in fact offer such a 'visualise with RawGraphs' button.

Describe alternatives you've considered This feature was added to v1 with PR #176 and there is an open issue for it in #140 but that one is also labeled for v1. Since RawGraphs v2 has come out, and does not seem to support this feature, I figured it would make sense to open a new issue.

Additional context I'd normally just open a PR for this but unfortunately I am not familiar with React.

sal-uva commented 6 months ago

Bumping this, would be a very welcome feature!

mikima commented 1 month ago

@uf0 if i remember well we did something like that with wikidata, do you remember how it is possible to open rawgraphs with a pre-loaded dataset from url or even better as a project? asking also to @bianchimro if you have in mind how to do that