|  | 
| 42 | 42 |     </div> | 
| 43 | 43 |   } | 
| 44 | 44 | 
 | 
| 45 |  | -  <div class="flex flex-column flex-wrap gap-4 xl:flex-row" [class]="{ disabled: isMetricsError() }"> | 
| 46 |  | -    <osf-line-chart | 
| 47 |  | -      class="chart" | 
| 48 |  | -      [class.xl-half-width]="IS_X_LARGE()" | 
| 49 |  | -      [isLoading]="isMetricsLoading()" | 
| 50 |  | -      [title]="'project.analytics.charts.uniqueVisits'" | 
| 51 |  | -      [labels]="visitsLabels" | 
| 52 |  | -      [datasets]="visitsDataset" | 
| 53 |  | -    ></osf-line-chart> | 
|  | 45 | +  @if (!isMetricsLoading() && !isRelatedCountsLoading()) { | 
|  | 46 | +    <div class="flex flex-column flex-wrap gap-4 xl:flex-row" [class]="{ disabled: isMetricsError() }"> | 
|  | 47 | +      <osf-line-chart | 
|  | 48 | +        class="chart" | 
|  | 49 | +        [class.xl-half-width]="IS_X_LARGE()" | 
|  | 50 | +        [isLoading]="isMetricsLoading()" | 
|  | 51 | +        [title]="'project.analytics.charts.uniqueVisits'" | 
|  | 52 | +        [labels]="visitsLabels" | 
|  | 53 | +        [datasets]="visitsDataset" | 
|  | 54 | +      ></osf-line-chart> | 
| 54 | 55 | 
 | 
| 55 |  | -    <osf-bar-chart | 
| 56 |  | -      class="chart" | 
| 57 |  | -      [class.xl-half-width]="IS_X_LARGE()" | 
| 58 |  | -      [isLoading]="isMetricsLoading()" | 
| 59 |  | -      [title]="'project.analytics.charts.timeOfDayOfVisits'" | 
| 60 |  | -      [labels]="totalVisitsLabels" | 
| 61 |  | -      [datasets]="totalVisitsDataset" | 
| 62 |  | -      [orientation]="'vertical'" | 
| 63 |  | -    ></osf-bar-chart> | 
|  | 56 | +      <osf-bar-chart | 
|  | 57 | +        class="chart" | 
|  | 58 | +        [class.xl-half-width]="IS_X_LARGE()" | 
|  | 59 | +        [isLoading]="isMetricsLoading()" | 
|  | 60 | +        [title]="'project.analytics.charts.timeOfDayOfVisits'" | 
|  | 61 | +        [labels]="totalVisitsLabels" | 
|  | 62 | +        [datasets]="totalVisitsDataset" | 
|  | 63 | +        [orientation]="'vertical'" | 
|  | 64 | +      ></osf-bar-chart> | 
| 64 | 65 | 
 | 
| 65 |  | -    <osf-pie-chart | 
| 66 |  | -      class="chart" | 
| 67 |  | -      [class.xl-half-width]="IS_X_LARGE()" | 
| 68 |  | -      [isLoading]="isMetricsLoading()" | 
| 69 |  | -      [title]="'project.analytics.charts.topReferrers'" | 
| 70 |  | -      [labels]="topReferrersLabels" | 
| 71 |  | -      [datasets]="topReferrersDataset" | 
| 72 |  | -      [showLegend]="true" | 
| 73 |  | -    ></osf-pie-chart> | 
|  | 66 | +      <osf-pie-chart | 
|  | 67 | +        class="chart" | 
|  | 68 | +        [class.xl-half-width]="IS_X_LARGE()" | 
|  | 69 | +        [isLoading]="isMetricsLoading()" | 
|  | 70 | +        [title]="'project.analytics.charts.topReferrers'" | 
|  | 71 | +        [labels]="topReferrersLabels" | 
|  | 72 | +        [datasets]="topReferrersDataset" | 
|  | 73 | +        [showLegend]="true" | 
|  | 74 | +      ></osf-pie-chart> | 
| 74 | 75 | 
 | 
| 75 |  | -    <osf-bar-chart | 
| 76 |  | -      class="chart" | 
| 77 |  | -      [class.xl-half-width]="IS_X_LARGE()" | 
| 78 |  | -      [isLoading]="isMetricsLoading()" | 
| 79 |  | -      [title]="'project.analytics.charts.popularPages'" | 
| 80 |  | -      [labels]="popularPagesLabels" | 
| 81 |  | -      [datasets]="popularPagesDataset" | 
| 82 |  | -    ></osf-bar-chart> | 
| 83 |  | -  </div> | 
|  | 76 | +      <osf-bar-chart | 
|  | 77 | +        class="chart" | 
|  | 78 | +        [class.xl-half-width]="IS_X_LARGE()" | 
|  | 79 | +        [isLoading]="isMetricsLoading()" | 
|  | 80 | +        [title]="'project.analytics.charts.popularPages'" | 
|  | 81 | +        [labels]="popularPagesLabels" | 
|  | 82 | +        [datasets]="popularPagesDataset" | 
|  | 83 | +      ></osf-bar-chart> | 
|  | 84 | +    </div> | 
|  | 85 | +  } @else { | 
|  | 86 | +    <osf-loading-spinner></osf-loading-spinner> | 
|  | 87 | +  } | 
| 84 | 88 | 
 | 
| 85 | 89 |   <div class="flex flex-column gap-3 mt-6 sm:flex-row sm:justify-content-between sm:gap-4"> | 
| 86 | 90 |     <osf-analytics-kpi | 
|  | 
0 commit comments