Vega-lite: Load data from an absolute URL

已查看 166 次
跳至第一个未读帖子

Subhodip Sengupta

未读,
2021年3月17日 11:26:212021/3/17
收件人 vega-js

​Apologies to begin with, because this may turn out to be a basic question that I haven’t figured out as yet and was searching for a quick resolution to.

I want to load data from an external data source (S3 / source dataset URL) and since Vega runtime resolves the specified data URL as relative and prefixes it with https://vega.github.io/editor/, it’s generating an erroneous path.

Is there a workaround to this? One would be to use inline data which isn’t preferable in my case. Since loading data from URL is an option, I was hoping that absolute paths would work. In the interest of time, if someone could highlight a quick fix or a way to override this functionality, it would really be helpful.

Thanks & regards,
Subho

Dominik Moritz

未读,
2021年3月17日 13:38:072021/3/17
收件人 Subhodip Sengupta、vega-js
Hi Subho,

The editor does support absolute data URLs but you need to make sure that the server supports CORS. We could definitely improve the error handling. 

Best wishes,
Dominik

--
You received this message because you are subscribed to the Google Groups "vega-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vega-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vega-js/d0953ad0-93a5-4ee8-af8d-0ff8a842d515n%40googlegroups.com.
回复全部
回复作者
转发
0 个新帖子