Skip to content
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

Support streaming data into a visualization via core.async chan #172

Open
metasoarous opened this issue Oct 12, 2021 · 0 comments
Open

Support streaming data into a visualization via core.async chan #172

metasoarous opened this issue Oct 12, 2021 · 0 comments

Comments

@metasoarous
Copy link
Owner

This issue is being peeled off from #95; Now that #167 has been resolved, it is possible to stream data into the visualization via the vega view API, using the :view-callback option of the reagent components. However, this is hardly straightforward or idiomatic.

It would be amazing if you could just stream data in via a core.async channel. There are a couple of ways this could work:

  • Simply pass a core.async chan in the data position of a vega(-lite) specification
  • Pass something like a :data-streams map to the reagent components mapping dataset names to channels
  • Both?

The :data-streams approach would allow you to kick off the visualization with an initial data payload. It's also worth noting that the view.insert API actually require you insert data by dataset name, but this could potentially abstracted over if we want to support the first option here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant