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

remove code that depends on jQuery from techexposure.js #49

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Changes from all commits
Commits
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
6 changes: 2 additions & 4 deletions inst/js/techexposure.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,7 @@ class techexposure {
let unique_sectors = d3.map(legend_data, d => d.ald_sector_translation).keys();
let sector_gap_legend = 25;

$.each(legend_data, function(index,item) {
legend_data[index]["sector_shift"] = unique_sectors.indexOf(item.ald_sector_translation);
})
legend_data.forEach((item) => { item["sector_shift"] = unique_sectors.indexOf(item.ald_sector_translation) });

let tech_in_prev_sectors = [];
tech_in_prev_sectors[0] = 0;
Expand Down Expand Up @@ -453,4 +451,4 @@ class techexposure {
tooltip.style("display", "none")
}
}
}
}
Loading