VegaLite, "description" doesn't work

Would you help me? How can I add a title to a figure? I’ve tried “description” - it didn’t work.

Thank you in advance.

You can use the title keyword:

using VegaLite
x=collect(-5:0.25:5);
@vlplot(:line,x, x.^3, title="mytitle", config={title={color=:red}})
3 Likes