Setting Chartjs Global Defaults for Individual Axes
According to the documentation, Chartjs (v4) grid styling is controlled using the options.scales[scaleId].grid
namespace. I can control the styling globally of select elements using statements like:
Setting Grid Color of Radar Chart in Chart.js
I have a radar chart with 360 labels and I would like to hide the grid lines emanating from the center of the chart or color them to match the canvas. Changing the r
axis grid properties doesn’t affect these grid lines. I’ve tried adjusting values for x
, y
and z
but that doesn’t seem to work. I’m open to using other versions of the packages below if necessary.