Method Signatures

#Array methods
pie(names::AbstractVector, values::AbstractVector{<:Union{Missing, Real}})
donut(names::AbstractVector, values::AbstractVector{<:Union{Missing, Real}}; radius = ["50%", "80%"])

Optional Arguments

selected::Union{AbstractVector, Void} = nothing
radius::Union{AbstractVector, AbstractString, Void} = "90%",
center::Union{AbstractVector, AbstractString, Void} = ["50%", "50%"]
roseType::Union{AbstractString, Void} = nothing #choice of {"angle", "radius"}
legend::Bool = false
kwargs... #modifies top-level `EChart` fields

Examples

Pie Chart

using ECharts
x = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
y = [11, 11, 15, 13, 12, 13, 10]
p = pie(x, y)

Pie Chart - Exploded

using ECharts
values = [335, 310, 234, 135, 1548]
names = ["direct traffic", "email marketing", "advertising alliance", "video ads", "search engine"]
explode = [true, false, false, false, false]
pe = pie(names, values, selected = explode)

Donut Chart

using ECharts
x = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
y = [11, 11, 15, 13, 12, 13, 10]
d = donut(x, y)

Rose Chart - Angle

using ECharts
values = [335, 310, 234, 135, 1548]
names = ["direct traffic", "email marketing", "advertising alliance", "video ads", "search engine"]
rose = pie(names, values, roseType = "angle")

Rose Chart - Radius

using ECharts
values = [335, 310, 234, 135, 1548]
names = ["direct traffic", "email marketing", "advertising alliance", "video ads", "search engine"]
radiusd = donut(names, values, roseType = "radius")