Reputation: 110980
I have the following Chart.js Radar graph rendering in my react app using react-chartjs-2:
<Radar
data={chartData}
options={{
legend: false,
gridLines: {
display: false,
},
scale: {
gridLines: {
color: ['white', 'white', 'white', 'white', 'white', 'white', 'white', 'white']
},
pointLabels :{
fontSize: 12,
},
ticks: {
suggestedMin: 0,
suggestedMax: 10,
display: false,
maxTicksLimit: 5
}
}
}}
/>
How can I hide the gray lines and/or modify the color to white?
Upvotes: 1
Views: 3698
Reputation: 51
if you want to hide the gray line,
options: {
scale: {
gridLines: {
color: 'transparent'
},
angleLines: {
color: 'transparent'
}
}
}
};
Now if you want to make the line white, just change the color from transparent to white
Upvotes: 3