diff --git a/src/components/workflows/timeline/MetricChart.vue b/src/components/workflows/timeline/MetricChart.vue index ee0c095..551c590 100644 --- a/src/components/workflows/timeline/MetricChart.vue +++ b/src/components/workflows/timeline/MetricChart.vue @@ -6,6 +6,7 @@ import { metricChartTooltipContent } from "@/helpers/metric-chart-tooltip-conten import OverlayPanel from 'primevue/overlaypanel' import BaseTimelineDetailedChart from "@/components/workflows/timeline/BaseTimelineDetailedChart.vue" import timelineStore from "@/store/timeline-store" +import { isHigherPositive } from "@/helpers/metrics" const props = defineProps<{ runs: EvaluationRun[], @@ -55,6 +56,7 @@ function tooltipContent(d: TimelineChartDataPoint) { :end-date="endDate" :tooltip-content="tooltipContent" :width="400" + :higher-is-positive="isHigherPositive(metric)" />