Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit af0f13e

Browse files
committed
feat: show RSR from zero in all charts
Configure the y-axis to start from zero in all charts showing RSR. This way the charts emphasise the overal RSR score (e.g. 76%) rather than fluctations over time (e.g. 60-80%). Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent ee75ab1 commit af0f13e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/line-graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function LineGraph(
3333
inset: 10,
3434
label: 'RSR (%)',
3535
percent: true,
36-
zero: fromZero,
36+
zero: fromZero ?? true,
3737
},
3838
color: { legend: true },
3939
marks: [

src/provider/[provider].md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const end = view(Inputs.date({ label: 'End', value: getDateXDaysAgo(1) }))
3333
<h4>Storage Provider Spark RSR Summary</h4>
3434
<body>This section shows the storage provider Spark Retrieval Success Rate Score summary.</body>
3535
<div class="card">${
36-
resize((width) => LineGraph(rsrData, {width, title: "Retrieval Success Rate", start, end, fromZero: true }))
36+
resize((width) => LineGraph(rsrData, {width, title: "Retrieval Success Rate", start, end }))
3737
}</div>
3838
</div>
3939
<div>

0 commit comments

Comments
 (0)