RGraph is a JavaScript charts library based on
HTML5 SVG and canvas. RGraph is mature (over 17 years
old) and has a wealth of features making it an ideal
choice to use for showing charts on your website.
In version 6.21 a new datagrid object has been added.
This makes it easy to add static or dynamic data
tables to your pages. It can be used whether you use the
canvas or SVG libraries or entirely standalone.
Get the latest version of RGraph (version 6.21, 10th April 2025) from
the download page. You can read the changelog here. There's also older versions available,
minified files and links to cdnjs.com hosted libraries.
Posted by Richard at 16:50 on Thursday 20th October 2022[link]
I was all ready to say "That would be rather involved" and then I realised that you're probably referring to the X-axis labels - not the Y axis labels. This makes it somewhat easier.
There's still nothing built-in that will do what you want, but what you can do, is use the draw event to have some custom code run to draw the labels yourself and this way you can determine the color based on the data.