The title! function is a convenience around the Title type, so that end-users don’t need to reference ec.title directly (though, nothing prevents users modifying the EChart chart instance).

By convention, the graph’s ‘title’ is the first object in the the ec.title vector; title! modifies this first array element, which by default is present each time an EChart is created. Further instances of Title in the ec.title vector are reserved for arbitrary text embellishments through the text! function.

Method Signatures

title!(ec::EChart)

Optional Arguments

show::Union{Bool,Void} = true
text::Union{String,Void} = nothing
link::Union{String,Void} = nothing
target::Union{String,Void} = "blank"
textStyle::Union{TextStyle,Void} = nothing
textAlign::Union{String,Void} = nothing
textBaseline::Union{String,Void} = nothing
subtext::Union{String,Void} = nothing
sublink::Union{String,Void} = nothing
subtarget::Union{String,Void} = "blank"
subtextStyle::Union{TextStyle,Void} = nothing
padding::Union{Array{Int,1},Int,Void} = 5
itemGap::Union{Int,Void} = 5
zlevel::Union{Int,Void} = 0
z::Union{Int,Void} = 2
left::Union{Int,String,Void} = "left"
top::Union{Int,String,Void} = "auto"
right::Union{Int,String,Void} = "auto"
bottom::Union{Int,String,Void} = "auto"
backgroundColor::Union{String,Void, JSFunction} = nothing
borderColor::Union{String,Void} = "transparent"
borderWidth::Union{Int,Void} = 1
shadowBlur::Union{Int,Void} = nothing
shadowColor::Union{String,Void} = nothing
shadowOffsetX::Union{Int,Void} = 0
shadowOffsetY::Union{Int,Void} = 0

Examples

using ECharts
x = 1:20
y = 3 .+ 5x
a = bar(x, y)
title!(a, text = "Bar Plot Title", subtext = "Secondary Title")