Skip to content

Fixup line comments #8

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

Merged
merged 1 commit into from
Jan 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ proto.update = function (options) {
hix = bounds[2] = x[x.length - 1]
hiy = bounds[3] = y[y.length - 1]
} else {
/* To get squares to centre on data values */
lox = bounds[0] = x[0] + (x[1] - x[0]) / 2 /* starting x value */
loy = bounds[1] = y[0] + (y[1] - y[0]) / 2 /* starting y value */
// To get squares to centre on data values
lox = bounds[0] = x[0] + (x[1] - x[0]) / 2 // starting x value
loy = bounds[1] = y[0] + (y[1] - y[0]) / 2 // starting y value

/* Bounds needs to add half a square on each end */
// Bounds needs to add half a square on each end
hix = bounds[2] = x[x.length - 1] + (x[x.length - 1] - x[x.length - 2]) / 2
hiy = bounds[3] = y[y.length - 1] + (y[y.length - 1] - y[y.length - 2]) / 2

Expand Down