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

wordcloud example troubles #4

Open
cnuernber opened this issue Apr 18, 2020 · 2 comments
Open

wordcloud example troubles #4

cnuernber opened this issue Apr 18, 2020 · 2 comments

Comments

@cnuernber
Copy link

Trying to get this wordcloud example working:

https://vega.github.io/vega/examples/word-cloud/

applied-science.darkstar> (->> (slurp "wordcloud.json")
       vega-spec->svg
       (spit "wordcloud.svg"))
ERROR TypeError: Cannot set property 'height' of null
nil

That error isn't propagated to the repl; it is just printed.

@cnuernber
Copy link
Author

Ouch. This is because it is using canvas calls to render the text. May not be fixable without implementing more of the canvas API.

@jackrusher
Copy link
Member

There are a number of examples that rely on APIs we don't yet support -- setTimeout and such from the browser, sometimes canvas, and so on. I want to build out a proper test harness and assess the current state of things before I push the library to Clojars.

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

2 participants