inpho / topic-explorer

System for building, visualizing, and working with LDA topic models
https://www.hypershelf.org/
Other
92 stars 22 forks source link

Topicprint.js fails when colors aren't loaded from cluster.csv #360

Closed JaimieMurdock closed 4 years ago

JaimieMurdock commented 4 years ago

The process_colors function in topicprint.js needs to be converted into Promise syntax or become a blocking function. Unsure if d3.csv will be a promise in our older d3v3/d3v4 code. It works properly in d3v5, but that's an upgrade I'd like to avoid.

https://datawanderings.com/2018/08/15/d3-js-v5-promise-syntax-examples/