Frontmatter
| id | 8958 |
| title | Enhancement: Sparkline Scanner Text Positioning |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Feb 3, 2026, 11:38 AM |
| updatedAt | Feb 3, 2026, 11:40 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8958 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8930 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 3, 2026, 11:40 AM |
Enhancement: Sparkline Scanner Text Positioning
tobiu added parent issue #8930 on Feb 3, 2026, 11:39 AM
tobiu assigned to @tobiu on Feb 3, 2026, 11:39 AM

tobiu
Feb 3, 2026, 11:40 AM
Input from Gemini 3 Pro:
✦ I have implemented the requested enhancement for the scanner text positioning.
Changes:
- Removed the centered text logic entirely.
- The text now defaults to
textAlign: 'left'(positioned to the right of the scanner line) with a 6px offset.- Only when the scanner line approaches the right edge (within 50px), the text flips to
textAlign: 'right'(positioned to the left of the scanner line) with a -6px offset.This prevents the dashed line from cutting through the text and ensures consistent alignment.
tobiu closed this issue on Feb 3, 2026, 11:40 AM
Improve the positioning of the scanner text label in
Neo.canvas.Sparkline. Currently, the text is centered on the scanner line for most of the chart, causing the dashed line to visually "cut" through the text.Goal:
textAlign: 'left') if there is sufficient space.textAlign: 'right') when approaching the right edge of the canvas.This will improve readability and visual aesthetics.