-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
|
||
// Set up visualization | ||
var svg | ||
var fadeOld = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for infoCard
There was a problem hiding this comment.
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.
All changes are done. |
adds tsneez visualization as example 3 in the README.md