Skip to content

Commit

Permalink
only show distribution for percentage based metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Nov 8, 2024
1 parent ab24786 commit c56a514
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(metric: MetricJsonIdentifier) =>
(store().uiState.distributionChartConfig.metric = metric)
"
:metrics="metricOptions"
/>
<OptionsSelector
class="mt-2"
Expand Down Expand Up @@ -46,4 +47,11 @@ import ScrollableComponent from '../ScrollableComponent.vue'
import { type BucketOptions } from '@/model/Distribution'
const resolutionOptions = [10, 20, 25, 50, 100] as BucketOptions[]
const metricOptions = [
MetricJsonIdentifier.AVERAGE_SIMILARITY,
MetricJsonIdentifier.MAXIMUM_SIMILARITY,
MetricJsonIdentifier.MINIMUM_SIMILARITY,
MetricJsonIdentifier.SYMMETRIC
]
</script>

0 comments on commit c56a514

Please sign in to comment.