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

Integrates d3-api-obfuscate into the playground #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ColinEberhardt
Copy link
Contributor

NOTE: I haven't made the changes required to integrate this into code you've grabbed from twitter.

Closes: #47

@@ -102,15 +74,14 @@ var tr = 'transform',
function j(element) {
return function(data) {
var update = g.selectAll(element)
.data(data || g.datum());
update.e = update.enter()
.data(data || [g.datum()]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only 'functional' change that I made when moving to this obfuscation method - the original code .data(data || g.datum()) did not work.

On that note, not sure how it worked before as data expects an array of items.

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.

None yet

1 participant