| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Looks good, but not sure if _getLabels is right function to use.
Sorry, something went wrong.
| } | ||
|
|
||
| return me.ticks[index - me.minIndex]; | ||
| return me._getLabels()[index]; |
There was a problem hiding this comment.
Is altering of ticks in ticks.callback or afterBuildTicks supported?
me.getTicks()[index].label instead, in that case?
Sorry, something went wrong.
There was a problem hiding this comment.
I believe it wouldn't be supported because there's no other scale that accesses ticks in getLabelForIndex and this method is only used by the tooltip which a separate concept from ticks. The way we've always suggested customizing the tooltip is via https://www.chartjs.org/docs/latest/configuration/tooltip.html?q=#external-custom-tooltips
Sorry, something went wrong.
|
I've rebased this PR |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
No concerns other than @kurkle's comment. While we don't modify ticks in afterBuildTicks, it's possible that someone has. Not sure if that should block this, but we should be aware of it
Sorry, something went wrong.
|
@kurkle did my response address your concern or do you think I should change it back? |
Sorry, something went wrong.
There was a problem hiding this comment.
I think we should not assume that category scale is fed with only plain array data. So label index might not be same as data index. Anyway, its not what this PR is trying to do, so I think its fine for now.
Sorry, something went wrong.
|
@benmccann @etimberg don't forget to rewrite the commit message when merging ("Minor cleanup" isn't helpful), but also add a label and milestone to every merged PR, it really helps to write release notes :) |
Sorry, something went wrong.
|
Ok. I've renamed to "Improved code minimization" which hopefully helps describe it a bit better |
Sorry, something went wrong.
|
Thanks! we should make sure to rewrite the commit message (at least the commit title - first line) before merging so the git history (and blaming) contains more interesting information. infrastructure is everything related to CI/CD, scripts, gulp, npm, etc. but not changes in the code. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
An assortment of random improvements I came across in the past couple days