You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and in the Javascript, replacing the current code by something like this (although it would be even better to find a way to get rid of the ancestry legend dependency):
anc_colours = {};
var css_style = window.getComputedStyle(document.body);
$('.ancestry_box_legend').each(function() {
var key = $(this).data('key');
anc_colours[key] = css_style.getPropertyValue('--'+key+'_color')
});
The text was updated successfully, but these errors were encountered:
Definitively not a priority, but we could make the code to fetch the ancestry colours a bit more robust: at the moment the code to fetch the ancestry colours for the charts is extracting the information from the ancestry legend:
https://github.com/PGScatalog/PGS_Catalog/blob/master/catalog/static/catalog/pgs.js#L64-L70
A way to improve that would be to update the current CSS by using the CSS variables, e.g. something like this:
and in the Javascript, replacing the current code by something like this (although it would be even better to find a way to get rid of the ancestry legend dependency):
The text was updated successfully, but these errors were encountered: