ebi-webcomponents / protvista-uniprot

The ProtVista tool for the UniProt website
MIT License
12 stars 6 forks source link

d3 version #38

Open noghte opened 2 years ago

noghte commented 2 years ago

Do you have plans to upgrade d3 to version 6?

KeithKelleher commented 2 years ago

It's not an ideal workaround, but currently we have two versions of d3 loaded to support protvista-uniprot. The old one is just called d3 so that protvista-uniprot will be able to find it, but on our site, we use d3v7 to draw our other visualizations. I also look forward to when d3 is upgraded though, so that we don't have to do it. There were big changes in d3v6 that made it not backwards compatable.

in package.json

"d3": "npm:d3@^4.13.0",
"d3v7": "npm:d3@^7.1.1",

In our components:

import * as d3 from 'd3v7';