See attached screenshot. I want to add an offset space to all my reference line numbers.
1) I tried to use Edit Reference Line > Label > Custom. And then add some leading spaces in the text box along with <Value>. The issue is that the leading & trailing spaces are trimmed. Lets introduce a way for the user to add leading & trailing spaces
2) We automatically add headroom for vertical bar charts w/ ref line totals. However, we don't do this for horizontal bar charts. Lets add the automatic headroom for reference line totals for horizontal bar charts as well.
|
105 KB
|
23 KB
|
61 KB
@sachin:
Headroom: After testing a bit,refline headroom is added for horizontal charts for all labels except custom. So fix should be much less involved (no axis interaction at all)
WhiteSpace: I remember this coming up before. The whitespace does make it through via the parser, but JOGL textrenderer calculates bounds based on where glyphs are rendered, so leading and trailing whitespace are ignored. I will look at overriding.
@sachin: checked in us Trunk, svn 54340. User can offset left or right by adding leading or trailing whitespace to custom reference label.
Only remaining issue is automatically clipping label string if user has offset it into the next cell. Does not apply to use case above, but can be done if a user adds enough spaces to the label. Since this is not the normal use case, I checked in so testing can begin on all other cases.
@sachin: checked in us Trunk, svn 54340. User can offset left or right by adding leading or trailing whitespace to custom reference label.
Only remaining issue is automatically clipping label string if user has offset it into the next cell. Does not apply to use case above, but can be done if a user adds enough spaces to the label. Since this is not the normal use case, I checked in so testing can begin on all other cases.
@pranita: Expected behavior. The leading and trailing spaces are used to offset text from left and right respectively. Original use case is method to offset custom labels. Scenario in question is left-aligned with trailing spaces, so offset toward left shifts label out of cell.
@pranita: Expected behavior. The leading and trailing spaces are used to offset text from left and right respectively. Original use case is method to offset custom labels. Scenario in question is left-aligned with trailing spaces, so offset toward left shifts label out of cell.
@pranita: Moving forward, we are only supporting leading spaces, so all trailing space functionality is removed. I.e. any trailing space scenario should behave as before this issue.
@pranita: Moving forward, we are only supporting leading spaces, so all trailing space functionality is removed. I.e. any trailing space scenario should behave as before this issue.
Verified in ADS 18.0.12-11
1: Spaces for reference line text
- User can add leading spaces for reference line: custom labels. Reference line label correctely shifts its position in the chart, due to these additional spaces.
- However, trailing spaces added for custom labesl are trimmed.
Please refer attached Leading_spaces.png
2: Headroom for horizontal bar chart:
- For horizontal bar chart also, axis headroom is added to accommodate long labels of reference lines.
Please refer attached Headroom.png
Verified in ADS 18.0.12-11
1: Spaces for reference line text
- User can add leading spaces for reference line: custom labels. Reference line label correctely shifts its position in the chart, due to these additional spaces.
- However, trailing spaces added for custom labesl are trimmed.
Please refer attached Leading_spaces.png
2: Headroom for horizontal bar chart:
- For horizontal bar chart also, axis headroom is added to accommodate long labels of reference lines.
Please refer attached Headroom.png
Issue #15214 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 18.0.12-1, 19.0.0-alpha-9 |
No time estimate |
@sachin:
Headroom: After testing a bit,refline headroom is added for horizontal charts for all labels except custom. So fix should be much less involved (no axis interaction at all)
WhiteSpace: I remember this coming up before. The whitespace does make it through via the parser, but JOGL textrenderer calculates bounds based on where glyphs are rendered, so leading and trailing whitespace are ignored. I will look at overriding.