Encantada de conocerte. Estoy haciendo un gráfico con la versión chart.js3.6.2 y quiero hacer una forma similar a una etiqueta en el eje y como una imagen. Traté de usar generateLegend, pero ya se eliminó, ¿dónde está implementado el código central en 3.x o superior? Gracias.
- quiero
=========================================
options : { plugins: { legend: { display: false }, autocolors: false, annotation: { annotations: { line1: { type: 'line', yMin: 2.2, yMax: 2.2, borderDash: [4, 3], borderColor: 'rgb(255, 99, 132)', borderWidth: 1, }, line2: { type: 'line', yMin: 2.4, yMax: 2.4, borderDash: [4, 3], borderColor: 'rgb(255, 99, 132)', borderWidth: 2, label: { enabled: true, fontStyle: 'normal', position: 'start', content: 2.2, backgroundColor: 'rgb(255, 99, 132)' } } } } }, responsive: true, spanGaps: true, scales: { y: { min:0, max:max, ticks: { stepSize:0.2 } }, x: { grid:{ display: false, } } }, gridLines:{ lineWidth:0 } } }); }