Skip to content

Commit

Permalink
remove jQuery dependency from techexposure.js (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman committed Jul 11, 2024
1 parent ea30d92 commit 0d0a51f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions inst/js/techexposure.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,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

0 comments on commit 0d0a51f

Please sign in to comment.