Skip to content
Advertisement

Chart.js (Radar Chart) different scaleLineColor for each scaleLine

I would like to try and create a radar chart using Chart.js which has various colours for each scaleLine, or coloured between the scaleLines. I was wondering if this was possible?

From:

enter image description here

To:

enter image description here

I currently have a working graph, though there doesn’t seem to be a method to change individual scale lines.

Kind Regards Leigh

Advertisement

Answer

You can extend the radar chart type to do this, like so

JavaScript

and then call it like so

JavaScript

Fiddle – http://jsfiddle.net/x3ftqx5r/


Of course, the sane thing would be to change the lightness value instead of the hue value 🙂

enter image description here

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement