🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(datasets): graphs not readable in dark mode (#9132)
Nimarc785156220ed
diff --git a/web/src/features/scores/components/ScoreChart.tsx b/web/src/features/scores/components/ScoreChart.tsxindex 7de53196c3..9168b1d9b9 100644--- a/web/src/features/scores/components/ScoreChart.tsx+++ b/web/src/features/scores/components/ScoreChart.tsx@@ -74,12 +74,23 @@ export function NumericChart(props: {}) {const colors = getColorsForCategories(props.chartLabels);+ const TooltipComponent = (tooltipProps: CustomTooltipProps) => (+ <div className="max-w-56">+ <Tooltip+ {...tooltipProps}+ formatter={(value) =>+ compactNumberFormatter(value, props.maxFractionDigits)+ }+ />+ </div>+ );+return isEmptyChart({ data: props.chartData }) ? (<NoDataOrLoading isLoading={false} />) : (<Card className="max-h-full min-h-0 min-w-0 max-w-full flex-1 rounded-tremor-default border"><LineChart- className="max-h-full min-h-0 min-w-0 max-w-full"+ className="max-h-full min-h-0 min-w-0 max-w-full [&_text]:fill-muted-foreground [&_tspan]:fill-muted-foreground"data={props.chartData}index={props.index}categories={props.chartLabels}@@ -92,6 +103,7 @@ export function NumericChart(props: {onValueChange={() => {}}enableLegendSlider={true}showXAxis={false}+ customTooltip={TooltipComponent}/></Card>);