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

Allow multiple visualizations per page, fixes #32 #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bmabey
Copy link
Contributor

@bmabey bmabey commented Jun 1, 2015

You can see the updated fix in action here: http://benmabey.com/LDAvis

Included in this PR is another update that allows you to pass the actual data to the visualization object instead of a URI. This change was needed for the IPython integration but is generally useful since it allows you to have a self-contained visualization page that you can send to people.

The old behavior is also preserved. This just allows a page to embed the
data as oppose to feteching it from a server.
@bmabey
Copy link
Contributor Author

bmabey commented Jun 4, 2015

@cpsievert did you see this?

@cpsievert
Copy link
Owner

Yep, thank you! Hopefully I'll get to it over the weekend! @kshirley might want to look this over as well.

/* MIT Licence */

'use strict';

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bmabey I'll admit, I didn't know about "use strict" until now, but it seems like a good idea!

@kshirley In case you're curious, I thought this post does a great job of explaining it -> http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/

@bmabey bmabey force-pushed the allow-multivis-per-page branch from 593c854 to 1b1299a Compare June 11, 2015 14:37
@bmabey
Copy link
Contributor Author

bmabey commented Jun 11, 2015

@cpsievert I've removed the console calls and fixed the regression for #33. The fixes have been squashed to the same commit. It should be ready to merge in now.

@dselivanov
Copy link
Contributor

@cpsievert @kshirley how about this PR? Would be very nice to have it merged. I had problems with multiple plots on a single page.

@cpsievert
Copy link
Owner

I had problems with multiple plots on a single page.

You could embed them via an <iframe>

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

Successfully merging this pull request may close these issues.

4 participants