Skip to content

Commit

Permalink
Fixes #100
Browse files Browse the repository at this point in the history
Undo sorting, which doesn’t make sense for waterfall chart
  • Loading branch information
randyzwitch committed Feb 8, 2016
1 parent dbc1cf5 commit 5662a8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/derived/waterfall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function waterfall(;x::AbstractVector = Int[], y::AbstractVector = Int[])
v.width = 110 * length(x) #Make the graph variable width based on number of levels
v.marks[1].properties.enter.width = VegaValueRef(scale = "x", band = true, mult= 0.5)
v.marks[1].properties.enter.x = VegaValueRef(scale = "x", field = "x", offset = 31)
v.scales[1].domain.sort = false

#Hide unneeded labels
xlab!(v)
Expand Down

0 comments on commit 5662a8f

Please sign in to comment.