Answer the question
In order to leave comments, you need to log in
How do I draw an arbitrary line in Chart.js?
You need to draw lines on the chart and put text. I try like this:
useEffect(() => {
// @ts-ignore
var ctx = document.querySelector(".chartjs-render-monitor").getContext("2d");
ctx.fillText('Рандомный текст', 12, 15);
}, [])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question