# Mixed Bar and Line Chart
As we have seen, chart can have multiple datasets. Each dataset can also have a different chartType
, which if specified, should accompany the type
property set to axis-mixed
.
Copy
All the lineOptions
and barOptions
apply to mix and match datasets as well.
# Stacked Bar Chart
Unlike lines, bars have two ways to show multiple data point values: adjacent or stacked bars. Stacked bar charts are similar to area charts, being useful for comparisions of similar trends. The property stacked in barOptions renders a stacked bar chart instead of the default adjacent bars:
:bar-options="{ stacked: 1 // default 0, i.e. adjacent }"
Copy
In Aggregate Charts however, instead of being rendered individually, each data point in aggregated accross every dataset. We'll cover those next.