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

V3 (old) of d3.js Required #5

Open
lmorgadodacosta opened this issue Sep 23, 2018 · 4 comments
Open

V3 (old) of d3.js Required #5

lmorgadodacosta opened this issue Sep 23, 2018 · 4 comments

Comments

@lmorgadodacosta
Copy link

It seems that you need V3 of d3.js (now at version 5), since some of the functions used to render dmrs have been renamed.

https://stackoverflow.com/questions/38391411/what-is-the-d3-js-v4-0-equivalent-for-d3-scale-category10/38391511#38391511

@goodmami
Copy link
Member

Yes, I have not been able to keep delphin-viz up to date with D3, but luckily V3 is still available, and that is what we pull in for the demo:

<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>

I think at a minimum we should mention the version requirement on the README, but it would be great if someone could refresh the visualization function to use V5 of d3.js (or, even better, harmonize all visualizers to the same framework, whether it's D3 or something else).

@ned2
Copy link
Collaborator

ned2 commented Sep 23, 2018

OK, so step one, we need to document the version requirements.

I agree it would be nice to get all the components using the same framework (and I think D3 is likely to be the right choice). This is something I could work on, but I'm fairly time-limited at the moment, so that could be a while off.

@goodmami, one thing I had been wondering about is the synchronisation of your DMRS visualizer code. It lives somewhere else, and we just have a dump of a particular version right? Might there be a more sensible way of doing this?

@goodmami
Copy link
Member

@ned2 the visualizer code here was copied from Demophin, where it still is kept separate for no reason other than I haven't updated Demophin... but I don't really plan to; I think it should be deprecated in favor of delphin-viz. Therefore, the delphin-viz version of dmrs.js is now the canonical version.

@ned2
Copy link
Collaborator

ned2 commented Sep 23, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants