-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
Labels with LayeredBarRenderer #169
Comments
Thanks for the great example and for pointing out the fix. I could also simplify the code a little with this change, since there is no need to calculate the Java2D translations of the values before comparing them to see if the bar represents a negative value:
|
I committed the fix. I also noticed that this renderer doesn't respect the getBase()/setBase() methods inherited from the BarRenderer, but I'll open a separate ticket for that. |
Closing - fixed for the next release. |
As shown here using JFreeChart v1.5, item labels remain invisible when added to a
VERTICAL
plot usingLayeredBarRenderer
; aHORIZONTAL
plot appears unaffected. As shown here,drawItemLabel()
is invoked with an incorrect actual value for the formal parameternegative
. Instead oftransX1 > transX2
, substitutingtransX1 < transX2
results in the expected appearance. The following complete example reproduces the effect.The text was updated successfully, but these errors were encountered: