implement dfg topics donutchart
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
@@ -23,6 +23,27 @@
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="statistics-card"
|
||||
[routerLink]="['/institution', institutionRouteId(), 'patents']"
|
||||
[class.disabled]="!institutionRouteId()"
|
||||
[attr.aria-disabled]="!institutionRouteId()"
|
||||
[attr.aria-label]="'Patente von ' + organizationName() + ' anzeigen'">
|
||||
<div class="statistics-icon statistics-icon--patents">
|
||||
<mat-icon>description</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<span>Patente</span>
|
||||
<strong>
|
||||
{{
|
||||
isStatisticLoading('patents')
|
||||
? '…'
|
||||
: ((statistics?.patents | number) ?? '–')
|
||||
}}
|
||||
</strong>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="statistics-card"
|
||||
routerLink="/persons"
|
||||
@@ -127,14 +148,60 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@if (topicHeatmapError) {
|
||||
@if (topicHeatmapLoading) {
|
||||
<div class="topic-heatmap-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="Treemap-Daten für den gewählten Zeitraum werden geladen …"
|
||||
icon="account_tree"
|
||||
size="72"
|
||||
diameter="72"></app-loading>
|
||||
</div>
|
||||
} @else if (topicHeatmapError) {
|
||||
<p class="statistics-error">
|
||||
Die Field-Treemap konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<app-topic-heatmap
|
||||
[heatmap]="topicHeatmap"
|
||||
[loading]="topicHeatmapLoading"></app-topic-heatmap>
|
||||
[selectedNodeId]="selectedTopicTreemapNode"
|
||||
(selectedNodeIdChange)="onTopicTreemapNodeChange($event)">
|
||||
</app-topic-heatmap>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
@if (dfgTopicsLoading || dfgTopicsError || dfgProjectTopics) {
|
||||
<section class="topic-heatmap-section">
|
||||
<header class="topic-heatmap-header">
|
||||
<div>
|
||||
<h2>DFG-Projekt-Topics</h2>
|
||||
<p>
|
||||
Verteilung der gematchten Topics aus den DFG-Projekten Ihrer Organisation.
|
||||
</p>
|
||||
</div>
|
||||
@if (dfgProjectTopics) {
|
||||
<p class="dfg-topic-summary">
|
||||
{{ dfgProjectTopics.matched_project_count | number }} von
|
||||
{{ dfgProjectTopics.project_count | number }} Projekten gematcht
|
||||
</p>
|
||||
}
|
||||
</header>
|
||||
|
||||
@if (dfgTopicsLoading) {
|
||||
<div class="topic-heatmap-loading" role="status" aria-live="polite">
|
||||
<app-loading
|
||||
text="DFG-Topics werden geladen …"
|
||||
icon="account_tree"
|
||||
size="72"
|
||||
diameter="72"></app-loading>
|
||||
</div>
|
||||
} @else if (dfgTopicsError) {
|
||||
<p class="statistics-error">
|
||||
Das DFG-Topic-Diagramm konnte nicht geladen werden.
|
||||
</p>
|
||||
} @else {
|
||||
<app-dfg-topic-donut
|
||||
[topics]="dfgProjectTopics?.topics ?? []"></app-dfg-topic-donut>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user