Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fcbe29a
mogelijk om jaar van outcome te veranderen (en dus te laten afwijken …
SjoerdGeodienst Feb 18, 2025
d8496ac
opschonen hints (weg) en start loskoppelen jaren predictor/outcome
SjoerdGeodienst Feb 19, 2025
6322e52
nog onduidelijk waarom year op -1 wordt gezet, mogelijk een EventEmit…
SjoerdGeodienst Feb 19, 2025
103a20e
jaren nu onafhankelijk van elkaar, verversen van grafiek/kaart lijkt …
SjoerdGeodienst Feb 24, 2025
1c734e2
use case doet het nu weer een beetje
SjoerdGeodienst Feb 24, 2025
e120d1b
allerlei extra aanpassingen en extra @output voor regionlevel in pred…
SjoerdGeodienst Feb 25, 2025
8a993a4
fixed height table description text
SjoerdGeodienst Feb 26, 2025
c1716cc
Merge pull request #178 from OxfordDemSci/108_different_years
SjoerdGeodienst Mar 4, 2025
0d4a559
removing the folder 'Xiang' and pull request for the branch cultural …
Schwarzbleistift Apr 28, 2025
c6d85fb
try to pull GRACED scripts
Schwarzbleistift Apr 28, 2025
a5a189b
try uploading the scripts for SCI
Schwarzbleistift Apr 28, 2025
5069738
Update 2025.04.28 GRACED_CO2_Emission.ipynb
Schwarzbleistift May 6, 2025
bcc775e
change 'broad category' to 'broad_category'
Schwarzbleistift May 8, 2025
dfebfd6
move geo_source to the last and add id column
Schwarzbleistift May 18, 2025
3e511f3
put id in the first column
Schwarzbleistift May 18, 2025
db520c2
Update 2025.04.28 GRACED_CO2_Emission.ipynb
Schwarzbleistift May 22, 2025
cc964a0
higher edu. obs. temp
Schwarzbleistift May 25, 2025
60073a6
graced done
Schwarzbleistift May 26, 2025
1c31f0b
intermediate change
Schwarzbleistift May 31, 2025
565d3d5
finalizing SCI data processing
Schwarzbleistift May 31, 2025
edb39c4
wrap up yearly and monthly aggregation of GRACED data
Schwarzbleistift Jun 2, 2025
fa6fe71
Update 2025.04.28 GRACED_CO2_Emission.ipynb
Schwarzbleistift Jun 3, 2025
a3b2c83
rename 'all' to 'All'
Schwarzbleistift Jun 6, 2025
3f25a7d
Add files via upload
dhvalden Jun 20, 2025
eda056e
Merge pull request #190 from OxfordDemSci/152-cultural-gems
dhvalden Jun 20, 2025
15559ce
Add files via upload
dhvalden Jun 27, 2025
444cb5c
Add files via upload
dhvalden Jun 27, 2025
1c6833c
Merge pull request #200 from OxfordDemSci/186_GRACED_CO2_emmissions
dhvalden Jun 27, 2025
f76ff5e
Update 31_graced_co2.sql
dhvalden Jul 29, 2025
cc4023e
Merge pull request #210 from OxfordDemSci/dhvalden-patch-1
dhvalden Jul 29, 2025
c39d8a4
reformatting sci data
Schwarzbleistift Aug 11, 2025
3daafc7
adding file to upload data
dhvalden Aug 26, 2025
5815a72
Merge pull request #201 from OxfordDemSci/185_Social_Connectedness_Index
dhvalden Aug 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions src/dashboard/app/src/app/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,26 @@
Toevoegen onderstaande regel in witte stuk onder inputTableId=0 zorgt voor eindeloos flikkeren van tabel-selecties ...
[inputOtherTableSelection]="displayObject.tableFields[1]"
-->
<app-select-table-value [inputTableSelection]="displayObject.tableFields[0]"
<app-select-table-value
[inputTableSelection]="displayObject.tableFields[0]"
[inputTableId]="0"
[inputUseCase]="useCase" [inputUseCaseData]="useCaseData"
[region]="displayObject.tableFields[0].tableRegionLevel"

(updateRegionLevelFromSelect)="updateRegionLevelFromSelect($event)"
(updateTableValueFromSelect)="updateTableFieldFromSelect($event)" >
</app-select-table-value>
<app-select-table-value *ngIf="displayObject.tableFields.length > 1" [inputTableSelection]="displayObject.tableFields[1]"
<app-select-table-value *ngIf="displayObject.tableFields.length > 1"
[inputTableSelection]="displayObject.tableFields[1]"
[inputTableId]="1"
[inputUseCase]="useCase" [inputUseCaseData]="useCaseData"
[inputOtherTableSelection]="displayObject.tableFields[0]"

[region]="displayObject.tableFields[0].tableRegionLevel"

(updateTableValueFromSelect)="updateTableFieldFromSelect($event)" >
<!--
[inputOtherTableSelection]="displayObject.tableFields[0]"
-->
</app-select-table-value>
</div>

Expand Down
19 changes: 17 additions & 2 deletions src/dashboard/app/src/app/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,17 @@ export class DashboardComponent implements OnInit{
}
} // END FUNCTION panelLeftStatusChange

updateRegionLevelFromSelect(regionLevel: any) {
// console.log('* * * updateRegionLevelFromSelect() ...', regionLevel, typeof regionLevel);

this.displayObject.tableFields[0].tableRegionLevel = regionLevel;

} // END FUNCTION updateRegionLevelFromSelect


updateTableFieldFromSelect(tableField: DisplayTableValueObject) {
// console.log(' * * * ' + tableField.tableId.toString() + ' updateTableFieldFromSelect() ... ');

let tableId = tableField.tableId;

let showOnlyOneTableId = -1;
Expand All @@ -259,6 +268,7 @@ export class DashboardComponent implements OnInit{


if (this.displayObject.numberTableFields > 1 && tableField.tableShowOnlyThisTable) {
// console.log(' * * * ' + tableId.toString() + ' AAA');
if (tableField.tableSelectionComplete) {
console.log('show only table ', tableField.tableId);
showOnlyOneTableId = tableField.tableId;
Expand All @@ -273,16 +283,19 @@ export class DashboardComponent implements OnInit{


} else {
// console.log(' * * * ' + tableId.toString() + ' BBB');

this.displayObject.displayType = this.displayObject.formType;
this.displayObject.displayTableId = -1;

if (tableField.tableId === 0 && this.displayObject.formType === 'bivariate') {
this.displayObject.tableFields[1].tableRegionLevel = this.displayObject.tableFields[0].tableRegionLevel;
/* 20250224 TURN OFF DIFFERENT YEARS, because outcome year not depending on predictor year anymore /
this.displayObject.tableFields[1].tableYear = this.displayObject.tableFields[0].tableYear;
if (this.displayObject.tableFields[0].tableName === '') {
this.displayObject.tableFields[1].tableName = '';
}
/* */
}

// console.log('CHECK HIER???');
Expand All @@ -303,6 +316,8 @@ export class DashboardComponent implements OnInit{
}

// console.log(' - - doCollectDataForSelection ???');
// console.log(' * * * ' + tableId.toString() + ' CCC', doCollectDataForSelection);

if (doCollectDataForSelection) {
this.collectDataForSelection(tableId);
// SJOERD: tijdelijk UIT gezet
Expand Down Expand Up @@ -360,7 +375,7 @@ export class DashboardComponent implements OnInit{


collectDataForSelection(tableId = 0) {
console.log('CALLED collectDataForSelection() ... ', tableId);
console.log(' ** ** ** CALLED collectDataForSelection() ... ', tableId, (tableId === 0 ? 'LEFT' : 'RIGHT'));

// if (this.displayObject.displayType === 'bivariate' && this.displayObject.tableFields.length > 1 && tableId === 0) {
if (tableId === 999) {
Expand Down Expand Up @@ -401,7 +416,7 @@ export class DashboardComponent implements OnInit{
y_json['conditions'] = y_conditions;

//console.log('before abc NET VOOR AANROEP getXYData (bivariate versie)');
this.dashboardFeatureService.getXYData(this.displayObject.tableFields[0].tableRegionLevel, this.displayObject.tableFields[0].tableYear, JSON.stringify(x_json), JSON.stringify(y_json)).subscribe(data => {
this.dashboardFeatureService.getXYData(this.displayObject.tableFields[0].tableRegionLevel, this.displayObject.tableFields[0].tableYear, this.displayObject.tableFields[1].tableYear, JSON.stringify(x_json), JSON.stringify(y_json)).subscribe(data => {
//console.log('before abc A. DISPLAY DATA COLLECTED! (bivariate)', data);
this.displayData = data;
this.displayDataUpdated = !this.displayDataUpdated;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</mat-card-header>

<mat-card-content>
<div [id]="'divTableDescr_' + tableSelection.tableId">
<div [id]="'divTableDescr_' + tableSelection.tableId" class="divTableDescr">
{{tableSelection.tableDescr}}
</div>

Expand All @@ -22,11 +22,15 @@
<mat-select *ngIf="tableSelection.tableId === 0" [(value)]="tableSelection.tableRegionLevel" (valueChange)="regionLevelChanged()">
<mat-option [value]="regionLevel" *ngFor="let regionLevel of availableRegionLevels">{{regionLevel}} - <i>{{regionLevelsText[regionLevel]}}</i></mat-option>
</mat-select>
<!--
<mat-hint *ngIf="tableSelection.tableId === 0">0: countries / 1: large regions / 2: base regions / 3: small regions</mat-hint>
-->

<mat-label *ngIf="tableSelection.tableId === 1">Region Level</mat-label>
<input matInput type="text" *ngIf="tableSelection.tableId === 1" readonly [value]="(tableSelection.tableRegionLevel !== '-1' ? tableSelection.tableRegionLevel : '')" [disabled]="true">
<!--
<mat-hint *ngIf="tableSelection.tableId === 1">(filled automatically)</mat-hint>
-->
</mat-form-field>


Expand All @@ -50,7 +54,9 @@
<div class="optionLine2">{{option.f_resource}}</div>
</mat-option>
</mat-autocomplete>
<!--
<mat-hint *ngIf="this.tableSelection.tableName !== ''">This table is available at region level(s): {{availableRegionLevelsForTable}}</mat-hint>
-->
</mat-form-field>


Expand All @@ -60,11 +66,22 @@
<mat-option [value]="year" *ngFor="let year of availableYears">{{year}}</mat-option>
</mat-select>

<mat-label *ngIf="tableSelection.tableId === 1">Select year</mat-label>
<!--
<mat-label *ngIf="tableSelection.tableId === 1">Year</mat-label>
<input matInput type="text" *ngIf="tableSelection.tableId === 1" readonly [value]="(tableSelection.tableYear !== '-1' ? tableSelection.tableYear : '')" [disabled]="true">
<mat-select *ngIf="tableSelection.tableId === 1" [(value)]="tableSelection.tableYear" (valueChange)="checkTableValueSelectionComplete()">
-->
<mat-select *ngIf="tableSelection.tableId === 1" [(value)]="tableSelection.tableYear" (valueChange)="getFieldsForTableForYearAndRegionLevel()">
<mat-option [value]="year" *ngFor="let year of availableYears">{{year}}</mat-option>
</mat-select>
<!--
<mat-hint *ngIf="tableSelection.tableId === 1">(filled automatically)</mat-hint>
-->
</mat-form-field>
<!--
<div *ngIf="availableYears.length > 0"><div class="textSmall">Available years: <i>{{availableYears.join(', ')}}</i></div><div class="divWhiteSpace"></div></div>
-->



Expand Down
Loading