-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
fix(custom): optionally return category from value(). close #12952 #13715
base: master
Are you sure you want to change the base?
Conversation
Thanks for your contribution! |
Signed-off-by: LemniscateX <[email protected]>
a87806e
to
c94e727
Compare
dataIndexInside == null && (dataIndexInside = currDataIndexInside); | ||
return data.get(data.getDimension(dim || 0), dataIndexInside); | ||
dim == null && (dim = 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First time I learnt that '&&' can be used this way!
I am not sure about the behavior of this API Current behavior:
If we change the behavior like the PR did:
So I prefer not to modify the behavior of But since 5.0 there is an extra api
Is |
I agree with you that It just seems that |
Signed-off-by: LemniscateX [email protected]
Brief Information
This pull request is in the type of:
What does this PR do?
Fix
value()
method of parameterapi
in customrenderItem
from returning unexpected ordinal index.Fixed issues
Fix #12952
Details
Before: What was the problem?
RenderItem's data construction will use the ordinal index of dimension x instead of its raw value. Current
value()
implementation will return this ordinal index.After: How is it fixed in this PR?
Add detect logic to
value()
to check ifdim
is dimension x. If so, return its raw value fromordinalMeta.categories
.