Summary of What Needs to be Done
The Chart widget (packages/widgets/src/data/Chart.ts) renders chart axes and Y-axis tick marks using hardcoded Unicode box-drawing characters (│, ─, └, ┤) without checking caps.unicode. This causes rendering issues in non-Unicode terminals.
Changes that Need to be Made
- In
packages/widgets/src/data/Chart.ts, add caps.unicode checks in _renderSelf() for the Y-axis line (│), X-axis line (─), origin corner (└), and Y-axis tick marks (┤).
- Define ASCII fallback characters:
| for vertical, - for horizontal, + for corners, and + for tick marks.
- Add tests that verify chart axis rendering with ASCII fallback when
caps.unicode is false.
Impact that it would Provide
Charts will render correctly with readable axes in any terminal environment, improving data visualization accessibility across different terminal types.
Note: Please assign this issue to the tmdeveloper007 account.
Summary of What Needs to be Done
The
Chartwidget (packages/widgets/src/data/Chart.ts) renders chart axes and Y-axis tick marks using hardcoded Unicode box-drawing characters (│,─,└,┤) without checkingcaps.unicode. This causes rendering issues in non-Unicode terminals.Changes that Need to be Made
packages/widgets/src/data/Chart.ts, addcaps.unicodechecks in_renderSelf()for the Y-axis line (│), X-axis line (─), origin corner (└), and Y-axis tick marks (┤).|for vertical,-for horizontal,+for corners, and+for tick marks.caps.unicodeis false.Impact that it would Provide
Charts will render correctly with readable axes in any terminal environment, improving data visualization accessibility across different terminal types.
Note: Please assign this issue to the
tmdeveloper007account.