The functions area, bar, line, and scatter are convenience wrappers around a generic xy_plot function (not currently exported). Each function takes additional keyword arguments such mark which can take an array of mark types. As such, to make a combination of a bar plot and line plot, you can either specify line, bar, etc. as the base chart type, then set the appropriate mark option to get the desired output.

Note that by default, area defaults to a stacked bar chart (i.e. stack = true). Be careful when modifying the marks for area, as the stacked series’ would be incorrect as a multiple line plot (e.g. line plots conventionally aren’t stacked).

Examples

using ECharts
x = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
y = [11, 11, 15, 13, 12, 13, 10]
bmf = bar(x, hcat(0.95 .* y, 1.25 .* y, y), mark = ["line", "bar", "bar"])