Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/stale-groups-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"trackio": minor
---

feat:Refactor plot title to display only the metric name without the path
10 changes: 6 additions & 4 deletions trackio/frontend/src/pages/Metrics.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,13 @@
{#each orderedDirect as metric, i}
{@const plotData = getPlotData(metric)}
{@const useBar = singlePointMetrics.has(metric)}
{@const directTitle = showHeaders ? metric.split("/").slice(1).join("/") || metric : metric}
{#if plotData.length > 0}
{#if useBar}
<BarPlot
data={plotData}
y={metric}
title={metric}
title={directTitle}
{colorMap}
draggable={true}
ondragstart={(e) => handleDragStart(directKey, i, e)}
Expand All @@ -304,7 +305,7 @@
data={plotData}
x={xColumn}
y={metric}
title={metric}
title={directTitle}
{colorMap}
{xLim}
onSelect={handlePlotSelect}
Expand Down Expand Up @@ -332,12 +333,13 @@
{#each orderedSub as metric, i}
{@const plotData = getPlotData(metric)}
{@const useBar = singlePointMetrics.has(metric)}
{@const subTitle = showHeaders ? metric.split("/").slice(2).join("/") || metric : metric}
{#if plotData.length > 0}
{#if useBar}
<BarPlot
data={plotData}
y={metric}
title={metric}
title={subTitle}
{colorMap}
draggable={true}
ondragstart={(e) => handleDragStart(subKey, i, e)}
Expand All @@ -349,7 +351,7 @@
data={plotData}
x={xColumn}
y={metric}
title={metric}
title={subTitle}
{colorMap}
{xLim}
onSelect={handlePlotSelect}
Expand Down
Loading