0๐
i think if you want to create a single chart with 3 different lines, you have to make the data in one dataset
. sorry im not good in explaining things but you can checked code below.
const data = {
label: 'Multi Line',
dataset: [
{label: 'Average Purchase Value',
data: [25, 28, 24, 26]},
{label: 'Session Duration',
data: [80, 120, 90, 85]},
{label: 'Average Items Purchased',
data: [3, 2, 1, 1]},
]
}
hope it can help you
0๐
Ended up using the Multi-axis feature of ChartJS
https://www.chartjs.org/docs/latest/samples/line/multi-axis.html
- Chartjs-Chart.js chart in vue.js component does not update
- Chartjs-How do I implement the 'autoskip' feature in chartjs?
Source:stackexchange.com