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
Unable to get Data from url using signal and following datasources are empty #2014
Comments
An error is shown in the javascript console: For data in JSON format, Vega expects an array of objects. The data from the URL is in this format which is not what Vega expects:
The workaround is to use javascript to fetch data from the URL, process the data, and then replace the data in the Vega dataset using Vega View API:
|
Thanks for the answer, I'll think to use the javascript debugger now (I'm new to Vega but really enjoy it) |
Thanks for sharing the issue! I agree that the two loading methods should behave similarly. I've made a minor adjustment to the |
Great, thanks!
I really enjoy your work by the way.
The visualization grammar approach is awesome
Le mar. 24 sept. 2019 à 10:56, Jeffrey Heer <notifications@github.com> a
écrit :
… Thanks for sharing the issue! I agree that the two loading methods should
behave similarly. I've made a minor adjustment to the Load operator in
the vega-transforms package that will ensure any retrieved values are
wrapped in an array if not already array-valued, such that behavior of
built-in and dynamic URL loading are better aligned. This fix will be
included in the next release.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2014?email_source=notifications&email_token=AFLNF7DRE73ORWXR4TQZWQ3QLHI4NA5CNFSM4IXCB5MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7NUA6A#issuecomment-534462584>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFLNF7CJNFEYB4VREC6P7PLQLHI4NANCNFSM4IXCB5MA>
.
|
Hi,
I have issue when i try to load a data from url using signal reference.
Did I configure something wrong?
Thanks
Here's my sample: Vega Editor Sample
I you look in the data viewer:
"data_1": hard-coded values, have the expected data
"data_from_url": hard-coded url, have the expected data
"data_from_url_signal": url based on signal reference, data table is empty
"data_2": hard-coded values, data table is empty
if you add define datasources after "data_from_url_signal" the data remains empty
There are no logs indicating any failure
The text was updated successfully, but these errors were encountered: