Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/investor-preferences-screener #66

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
44 changes: 37 additions & 7 deletions demos/dashboards-investor-preferences/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@ function displayInvestorPreferences (postmanJSON) {
'EET_PAI_SocialViolationsPercentageConsidered'
];

const headerFormats = {
'SecId': 'Security Id',
'LegalName': 'Legal Name',
'DomicileId': 'Domicile Id',
jedrzejruta marked this conversation as resolved.
Show resolved Hide resolved
'EET_PAI_GHGEmissions3Considered':
'European ESG Template Principal Adverse Impact Greenhouse Gas Emissions 3 Considered',
'EET_PAI_GHGEmissions1And2Considered':
`European ESG Template Principal Adverse Impact Greenhouse Gas Emissions
1 And 2 Considered`,
'EET_PAI_EnergyConsumptionNaceAConsidered':
'Energy Consumption Intensity Per High Impact Climate Sector NACE A Considered',
'EET_PAI_EnergyConsumptionNaceBConsidered':
'Energy Consumption Intensity Per High Impact Climate Sector NACE B Considered',
'EET_PAI_FossilFuelConsidered':
'European ESG Template Principal Adverse Impact Fossil Fuel Considered',
'EET_PAI_SocialViolationsPercentageConsidered':
`European ESG Template Principal Adverse Impact Social Violations
Percentage Considered`,
'StarRatingM255': 'Star Rating M255',
jedrzejruta marked this conversation as resolved.
Show resolved Hide resolved
'UserPref0': 'UserPref0',
'UserPref1': 'UserPref1',
'UserPref2': 'UserPref2',
jedrzejruta marked this conversation as resolved.
Show resolved Hide resolved
'EET_EUSFDRType': 'Financial Instrument SFDR Product Type',
'EET_PAI_GHGEmissions1Considered':
'European ESG Template Principal Adverse Impact Greenhouse Gas Emissions 1 Considered'
};

const calculatedDataPoints = [
{
'name': 'UserPref0',
Expand Down Expand Up @@ -134,14 +161,17 @@ function displayInvestorPreferences (postmanJSON) {
]
}
}
]
];

const columns = secIds.map(id => ({
id: `InvestorPreferences_${id}`,
header: {
format: id
}
}));
const columns = [];
for (const key in headerFormats) {
columns.push({
id: `InvestorPreferences_${key}`,
header: {
format: headerFormats[key] || key
}
});
}

const board = Dashboards.board('container', {
dataPool: {
Expand Down
Loading