Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(score-analytics): css on categorical charts (#6710)

marliessophie78958ac5f913
diff --git a/web/src/features/scores/components/ScoreChart.tsx b/web/src/features/scores/components/ScoreChart.tsx
index de63d7524a..e167710257 100644
--- a/web/src/features/scores/components/ScoreChart.tsx
+++ b/web/src/features/scores/components/ScoreChart.tsx
@@ -32,12 +32,15 @@ export function CategoricalChart(props: {
) : (
<Card
className={cn(
- "max-h-full min-h-0 rounded-tremor-default border",
+ "max-h-full min-h-0 min-w-0 max-w-full flex-1 rounded-tremor-default border",
props.className,
)}
>
<BarChart
- className={cn("mt-4 max-h-full min-h-0", props.chartClass)}
+ className={cn(
+ "max-h-full min-h-0 min-w-0 max-w-full",
+ props.chartClass,
+ )}
data={props.chartData}
index="binLabel"
categories={props.chartLabels}
diff --git a/web/src/features/scores/components/TimeseriesChart.tsx b/web/src/features/scores/components/TimeseriesChart.tsx
index e1c1a6f1ee..cf15e085f9 100644
--- a/web/src/features/scores/components/TimeseriesChart.tsx
+++ b/web/src/features/scores/components/TimeseriesChart.tsx
@@ -30,8 +30,6 @@ export function TimeseriesChart({
<CategoricalChart
chartLabels={chartLabels}
chartData={chartData}
- className="h-full"
- chartClass="h-full mt-0"
showXAxis={chartData.length < 3}
/>
) : (