VegaStreams.jl
VegaStreams.VegaStreams — Module.VegaStreams.vegastream — Function.vegastream(mark::Symbol = :line; processrow=NamedTuple{(:x, :y)}, ...)A shortcut for creating a simple plotter.
VegaStreams.vegastream — Method.vegastream(vlspec; processrow=identity, kwargs...)Open a window containing a Vega-lite plot and a return a handle to it. This handle supports push! and append! to update the plot.
Examples
julia> using VegaStreams
using VegaLite
julia> vls = vegastream(@vlplot(:line, x=:x, y=:y));
julia> push!(vls, (x=1, y=2));Arguments
vlspec: an objectionshowable asapplication/vnd.vegalite.v3+jsonorapplication/vnd.vegalite.v2+json. Thedataproperty is ignored.
Keyword Arguments
processrow: a callable to that process the item(s) given topush!andappend!before sending it/them to Vega-Lite.- Other keyword arguments are passed to
electrondisplay. By default,single_window=falseis used.
VegaStreams.vegastream — Method.vegastream(vlspec::Dict; ...)Interpret a dictionary as a Vega-Lite spec. This is usable without importing VegaLite.