-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphing using data in a separate file from a local path (rust executable) #189
Comments
Hi @yuki-tsubaki, thanks for the idea. I'll need to play with it some, but have you tried using We may be able to do something by customizing the Vega loader here: vl-convert/vl-convert-rs/src/converter.rs Lines 352 to 368 in 9e72c4e
And there's some info the Vega loader at https://github.com/vega/vega/tree/main/packages/vega-loader. |
Thanks for such a fast reply. I have tried with and without the As a side note, (I have no clue on how actually practical this would be for the architecture this is using), having error messages would be nice. I see that the underlying JS does log failed loading when I put in a fake, non-data, or unavailable url, so if there were a way to send these to the standard output (when using a --debug flag for instance) would be helpful in figuring this stuff out. |
@jonmmease I've been toying with something like that in this PR, but I didn't have time to finish it. |
Context
v5 schema
vl-convert 1.6.1
On GNU/Linux
Issue/Question
I am trying to plot something with vl-connect
When I embed the data directly in the spec everything works properly and I get a nice svg showing the plot.
However since I often show multiple visualizations that use the same data (and just to make things cleaner) I would prefer to keep the data in a different file and reference it with the url.
I.e.
{"data":{"url":"path/to/data.json"}...}
However, when I do this I never can get it to actually access the data and I end up with an empty scatter plot.
I've tried various permutations with the data in different places, full paths, relative paths to different directories, and more but I still haven't been able to get anything to work.
Can someone help and point out what I am missing here?
Thanks in advance.
The text was updated successfully, but these errors were encountered: