Open
Description
const options = {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: "bottom" as const,
},
annotation: {
annotations: {
point1: {
type: 'point',
x: lineChartData?.maxSolar?.ts,
y: lineChartData?.maxSolar?.m_s,
backgroundColor: 'rgba(0, 255, 8, 0.25)'
}
}
}
},
scales: {
y: {
ticks: {
font: {
size: 14,
},
callback: function(value: any) {
return value + ' kWh';
}
},
stacked: true,
},
x:{
ticks: {
font: {
size: 14,
},
},
},
},
};
