Skip to content

Commit

Permalink
add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Oct 2, 2023
1 parent 1b3d678 commit 85c5764
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion report-viewer/src/views/ClusterView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="relative bottom-0 left-0 right-0 flex flex-grow justify-between space-x-5 p-5 pt-5">
<Container class="flex max-h-0 min-h-full flex-1 flex-col overflow-hidden">
<OptionsSelectorComponent
:labels="['Graph', 'Radar']"
:labels="clusterVisualizationOptions"
@selectionChanged="
(index) => (selectedClusterVisualization = index == 0 ? 'Graph' : 'Radar')
"
Expand Down Expand Up @@ -68,6 +68,17 @@ const props = defineProps({
const comparisons = [] as Array<ComparisonListElement>
const clusterMemberList = new Map() as ClusterListElementMember
const selectedClusterVisualization: Ref<'Graph' | 'Radar'> = ref('Graph')
const clusterVisualizationOptions = [
{
displayValue: 'Graph',
tooltip: 'A graph having the average similarity between two submissions as the edges.'
},
{
displayValue: 'Radar',
tooltip:
'A radar chart showing the he other submissions in the cluster, relative one submission.'
}
]
const usedMetric = MetricType.AVERAGE
function getComparisonFor(id1: string, id2: string) {
Expand Down

0 comments on commit 85c5764

Please sign in to comment.