feat(tui): multi-row color-coded latency chart in detail panel #147

Merged
lerko merged 4 commits from feat/ntcharts-latency into main 2026-06-21 21:51:59 +00:00
Showing only changes of commit d0805f61c6 - Show all commits
+6 -1
View File
@@ -13,8 +13,13 @@ func (m Model) latencyChart(latencies []time.Duration, statuses []bool, width, h
return "" return ""
} }
chartW := len(latencies)
if chartW > width {
chartW = width
}
lineStyle := lipgloss.NewStyle().Foreground(m.theme.Accent) lineStyle := lipgloss.NewStyle().Foreground(m.theme.Accent)
slc := streamlinechart.New(width, height, slc := streamlinechart.New(chartW, height,
streamlinechart.WithStyles(runes.ThinLineStyle, lineStyle), streamlinechart.WithStyles(runes.ThinLineStyle, lineStyle),
) )