Skip to content

Commit

Permalink
Update draw.jl
Browse files Browse the repository at this point in the history
fix typo in draw update
  • Loading branch information
rdboyes committed Feb 28, 2024
1 parent 1594ed7 commit d26996e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/draw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ function draw_ggplot(plot::GGPlot)

if eltype(plot_data[!, aes_dict[a]]) <: Union{AbstractString, AbstractChar}
if haskey(plot.axis_options, "fct_inorder")
cat_column = plot_data[!, aes_dict[req_aes]]
cat_column = plot_data[!, aes_dict[a]]
cat_array = CategoricalArray(cat_column, levels = unique(cat_column), ordered = true)
else
cat_array = CategoricalArray(plot_data[!, aes_dict[req_aes]])
cat_array = CategoricalArray(plot_data[!, aes_dict[a]])
end
column_data = levelcode.(cat_array)
labels = levels(cat_array)
Expand Down

0 comments on commit d26996e

Please sign in to comment.