Open cmcaine opened 5 years ago
This does work for VegaLite, though, which is nice.
using VegaLite
t |> @vlplot(
:point,
x = :x,
y = :y)
Support for Gadfly.jl hasn't survived the transition to julia 1.0, I'm afraid...
I had a brief look how difficult it would be to reenable it, and the old strategy won't work anymore... I'll think a little how we could sort this out.
I think in the meantime, what should work is to convert the JuliaDB table to a DataFrame
and then pass that to Gadfly. Not exactly elegant, but might do the trick.
I think in the meantime, what should work is to convert the JuliaDB table to a DataFrame and then pass that to Gadfly. Not exactly elegant, but might do the trick.
Yes, this is what I ended up doing:
import IndexedTables
import Gadfly
Gadfly.plot(data_source::IndexedTables.IndexedTable,
elements::Union{Array{Gadfly.Layer,1}, Function, Gadfly.Element, Gadfly.Theme, Type}...;
mapping...) =
Gadfly.plot(data_source |> DataFrame, elements...; mapping...)
So I'm just trying to get Gadfly to plot an IndexedTable I've produced with the JuliaDB.table function.
The IterableTables documentation claims to support JuliaDB tables as data sources and Gadfly as a sink, but I'm doing it wrong and/or it doesn't work for me
Complete example: