0👍
It sounds like you want to make a scatter plot. None of the Chart.js examples show how to make scatter plots, because it doesn’t have that ability. If you must use Chart.js, you could use a scatter plot add-on for it, like that available at https://dima117.github.io/Chart.Scatter/.
If you don’t mind changing your plotting library, you might want to consider something like Highcharts, or Dojo Charting. There are plenty of options, but I find those two to be quite easy to use.
- Chartjs-Adding prefix or suffix like $ to data labels in plugins in react-chartjs-2
- Chartjs-How to get line x value from Label chart js
Source:stackexchange.com