-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
outer tick not shown in radar chart when scale is reverse #3251
Comments
It might actually be easier to simply reverse the ticks array if reversed because with your solution the inner grid line for the value '5' is drawn when it shouldn't be |
Ah, ok I see what you mean. May I didn't understand your suggestion to reverse the ticks array instead. Do you mean to reverse the ticks array in a callback function? Which callback I should use for this? ############ As I was checking with ticks length, I found an other issue you already have fixed for the linear scale 61ca178 example:
I set the stepSize to 0.2 to get more ticks. After that the output became: So may you can fix the floating problem in the LinearRadialScale to? |
Your check will work for this case. My suggestion to reverse the ticks array was simply to always make the one at index 0 the inner one but that might already be done by the base class. I am happy to merge a PR with your updated check. The floating issue has been mentioned before. The |
My first time PR. |
I have the same issue, has this fix been merged yet? |
As far as I know, it wasn't fixed. I fixed my issue with the code line: But remember this was for version 2.2.2. ! |
Found an issue as I needed a radar chart with reverse scale. Values ranges from 1 to 5.
With the reverse scale the outer tick is not shown.
As I drew into the LinearRadialScale I found in line 14213 (chart.bundle.js v.2.2.2) the folowing code
if (gridLineOpts.display && index !== 0 )
changing it to
if (gridLineOpts.display && index !== 0 || opts.reverse)
fixed the problem for me.
I haven't tested this in other situations.
May this is usefull for others or it should get into the code with a pull request.
As I'm new to github and your project I didn't exactly know how to or if I should create a pull request. sry
The text was updated successfully, but these errors were encountered: