options = ({
chart: {
type: 'line',
toolbar: {
show: false,
tools: {
download: false,
selection: false,
zoom: false,
zoomin: false,
zoomout: false,
pan: false,
reset: false
}
}
},
dataLabels: {
enabled: false
},
legend: {
show: interactive
},
markers: {
size: 6,
style: 'full',
},
stroke: {
curve: 'straight'
},
series: series,
xaxis: {
type: 'datetime'
},
yaxis: {
min: -1,
max: 11,
tickAmount: 5
},
tooltip: {
enabled: interactive,
custom: function({_, seriesIndex, dataPointIndex, w}) {
return `<div class="arrow_box">
<h2>${series[seriesIndex].data[dataPointIndex].title}</h2>
<p>${series[seriesIndex].data[dataPointIndex].comment}</p>
<p>Level: ${series[seriesIndex].data[dataPointIndex].level}</p>
</div>`
}
}
})