BeginAtZero and stepsize not working on radar chart
See original GitHub issueI want to show only integers in labels of a radar chart. I check many solutions i found on here and stackoverflow. I set stepsize:1 and seems is doing nothing… when max scale value is 1 or 2 it show many float values like 0.2,0.4,0.6… Also, i check this:
userCallback: function(label, index, labels) {
// when the floored value is the same as the value we have a whole number
if (Math.floor(label) === label) {
return label;
}
}
and is not working.
Also i set min:0 on my scale. But when every value of my chart is 0, scale is between -1 and 1.
Not sure if this an issue or im doing something wrong.
Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
ChartJS - radar chart options not working - Stack Overflow
I am using the latest version of chart.
Read more >Radar Chart | Chart.js
A radar chart is a way of showing multiple data points and the variation between them. They are often useful for comparing the...
Read more >Getting Started With Chart.js: Axes and Scales - Code Tutsplus
In this tutorial, you will learn how to manipulate scales and control their appearance using different options that the library provides.
Read more >Change axis value for polararea chart - Prime Community Forum
Dear Team, I have p:polarAreaChart chart in my application and I use Primefaces primefaces-7.0.RC1 with JSF2.
Read more >Linear Radial Axis - Git ECE IASTATE
The linear scale is use to chart numerical data. ... chart outward from the center), pointLabels (labels around the edge in a radar...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@borjaevo the issue here was that the config was incorrect. It should be
Hi,
Version is 2.5.0.
This is the code:
` var hourlyActChart = new Chart(ctx, {
`
Thanks