var options = {
series: [
{
name: 'Platform',
data: [
{
x: 'Q1',
y: 43,
},
{
x: 'Q2',
y: 58,
},
],
},
{
name: 'Mobile',
data: [
{
x: 'Q1',
y: 33,
},
{
x: 'Q2',
y: 38,
},
],
},
{
name: 'Web',
data: [
{
x: 'Q1',
y: 55,
},
{
x: 'Q2',
y: 21,
},
],
},
],
chart: {
height: 350,
width: 400,
type: 'line',
},
plotOptions: {
line: {
isSlopeChart: true,
},
},
title: {
text: 'Sprint Velocity: Q1 to Q2',
},
}
var chart = new ApexCharts(document.querySelector('#chart'), options)
chart.render()