Reduce chart grid noise: subtle dashed Y-grid only, no X-grid or ticks
All checks were successful
CI / build (push) Successful in 1m13s
CI / docker (push) Successful in 52s
CI / deploy (push) Successful in 30s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-15 16:17:38 +01:00
parent 8c605d7523
commit 5ee78f7673
3 changed files with 19 additions and 9 deletions

View File

@@ -51,15 +51,19 @@ export function DurationHistogram({ buckets }: DurationHistogramProps) {
axes: [
{
stroke: chartColors.axis,
grid: { stroke: chartColors.grid, width: 1 },
grid: { show: false },
ticks: { show: false },
font: '11px JetBrains Mono, monospace',
gap: 8,
values: (_, ticks) => ticks.map((v) => `${Math.round(v)}ms`),
},
{
stroke: chartColors.axis,
grid: { stroke: chartColors.grid, width: 1 },
grid: { stroke: chartColors.grid, width: 1, dash: [2, 4] },
ticks: { show: false },
font: '11px JetBrains Mono, monospace',
size: 40,
gap: 8,
},
],
series: [

View File

@@ -43,14 +43,18 @@ export function LatencyHeatmap({ buckets }: LatencyHeatmapProps) {
axes: [
{
stroke: chartColors.axis,
grid: { stroke: chartColors.grid, width: 1 },
grid: { show: false },
ticks: { show: false },
font: '11px JetBrains Mono, monospace',
gap: 8,
},
{
stroke: chartColors.axis,
grid: { stroke: chartColors.grid, width: 1 },
grid: { stroke: chartColors.grid, width: 1, dash: [2, 4] },
ticks: { show: false },
font: '11px JetBrains Mono, monospace',
size: 50,
gap: 8,
values: (_, ticks) => ticks.map((v) => `${Math.round(v)}ms`),
},
],

View File

@@ -8,7 +8,7 @@ export const chartColors = {
green: '#10b981',
blue: '#3b82f6',
purple: '#a855f7',
grid: 'rgba(30, 45, 61, 0.5)',
grid: 'rgba(30, 45, 61, 0.18)',
axis: '#4a5e7a',
text: '#8b9cb6',
bg: '#111827',
@@ -36,16 +36,18 @@ export function baseOpts(width: number, height: number): Partial<uPlot.Options>
axes: [
{
stroke: chartColors.axis,
grid: { stroke: chartColors.grid, width: 1 },
ticks: { stroke: chartColors.grid, width: 1 },
grid: { show: false },
ticks: { show: false },
font: '11px JetBrains Mono, monospace',
gap: 8,
},
{
stroke: chartColors.axis,
grid: { stroke: chartColors.grid, width: 1 },
ticks: { stroke: chartColors.grid, width: 1 },
grid: { stroke: chartColors.grid, width: 1, dash: [2, 4] },
ticks: { show: false },
font: '11px JetBrains Mono, monospace',
size: 50,
gap: 8,
},
],
};