Skip to content

Symbols with brackets do not plot #285

Open

Description

When using a type that implements the TableIterators interface, it seems that columns with brackets in their names, though valid symbols, are not processed correctly. While the column names are correctly assigned to their axes, none of the data is plotted. A minimal example:

julia> using VegaLite, DataFrames

julia> df = DataFrames.DataFrame([1:5, 6:10, 11:15], [:var1, :var2, Symbol("var[3]")])
5×3 DataFrame
│ Row │ var1  │ var2  │ var[3] │
│     │ Int64 │ Int64 │ Int64  │
├─────┼───────┼───────┼────────┤
│ 11611     │
│ 22712     │
│ 33813     │
│ 44914     │
│ 551015     │

julia> @vlplot(:point, data=df, x=:var1, y=:var2)

Screen Shot 2020-03-21 at 11 13 55 PM

julia> @vlplot(:point, data=df, x=:var1, y=Symbol("var[3]"))

Screen Shot 2020-03-21 at 11 14 16 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions