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

Tsneez visualization #3

Closed
wants to merge 8 commits into from
Closed

Conversation

samirrajpurkar
Copy link
Collaborator

adds tsneez visualization as example 3 in the README.md


// Set up visualization
var svg
var fadeOld = 0
Copy link
Owner

Choose a reason for hiding this comment

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

can remove

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need this as these are global variables.

'rotate(' + d.rotate + ')'
})

s.selectAll('rect').style('fill-opacity', function (d) {
Copy link
Owner

Choose a reason for hiding this comment

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

everything below thing line can be removed. deals with addition of new points

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok and hence var fadeOld varaible also removed



function dimensionReduce(vecs) {
var NUMBER_OF_EMBEDDINGS = 1000
Copy link
Owner

Choose a reason for hiding this comment

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

would pull this out to be defined at top of page

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok. done.

font-size: 1em;
fill: #444;
}
.infoCard {
Copy link
Owner

Choose a reason for hiding this comment

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

Info card and info body are not being used. remove!

<body>
<div class="container">
<div class="row">
<div class="infoCard">
Copy link
Owner

Choose a reason for hiding this comment

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

no need for infoCard

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok.
Added style for "container" class.

@samirrajpurkar
Copy link
Collaborator Author

All changes are done.

@rajpurkar rajpurkar deleted the tsneez-visualization branch January 19, 2019 07:24
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.

2 participants