This function is the underlying code behind the horizontal keyword for all x/y charts. Calling flip! directly is useful for interactive use, where you have a chart and think it might look better with the inverse orientation.

Due to the properties of a scatterplot (i.e. points, x-axis/y-axis are numeric, no “orientation” per se), flip! has no affect; should you wish to change the ‘orientation’ of the series of a scatterplot, just switch the series’ in the call to scatter (i.e. scatter(x,y) => scatter(y,x)).

Method Signatures

flip!(ec::EChart)

Optional Arguments

rotatedims::Bool = false

Examples

using ECharts
x = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
y = [11, 11, 15, 13, 12, 13, 10]
bm = bar(x, hcat(0.95 .* y, 1.25 .* y, y), color = ["red", "gray", "blue"], stack = true)
flip!(bm)