You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you checked the issues for a similar suggestions?
Yes, but I'm not certain I didn't miss a relevant issue.
How would you improve Rich?
I'd like to improve the rendering for reviewing tables of accounting data at a glance. Numeric amounts are easy to skim (e.g. for order of magnitude) when they're right-aligned, but the inclusion of a $ makes it harder to separate the numbers from the units. Left-aligning the columns avoids the dollar signs becoming noise at the cost of making the numbers harder to skim.
I'd love to be able to either specify left-aligned units in the column itself or to be able to compose together to different pieces of text with different alignments on the same line/row.
In the following example, the suboptimal alignment is visible:
Have you checked the issues for a similar suggestions?
Yes, but I'm not certain I didn't miss a relevant issue.
How would you improve Rich?
I'd like to improve the rendering for reviewing tables of accounting data at a glance. Numeric amounts are easy to skim (e.g. for order of magnitude) when they're right-aligned, but the inclusion of a
$
makes it harder to separate the numbers from the units. Left-aligning the columns avoids the dollar signs becoming noise at the cost of making the numbers harder to skim.I'd love to be able to either specify left-aligned units in the column itself or to be able to compose together to different pieces of text with different alignments on the same line/row.
In the following example, the suboptimal alignment is visible:
Ideally, I could ideally produce a table that looks like
I tried
Group(Align("$"), Align("41,490.51", align="right"))
, which produces the suboptimal:Group-align rendering implementation:
I also tried a
Layout
-based approach, which produces the following giant wall of whitespace:Layout-based rendering implementation
Layout-based rendering output
A few ideal solutions for my use case:
[left]$[/][right]41,490.51[/]
)°C
are already well-supported because you can just right-align the entire column)Align
renderables in a singleGroup
without introducing extra linesIn addition to this specific formulation, I'd also love to be able to render negatives in a similar fashion:
Related:
The text was updated successfully, but these errors were encountered: