Skip to content

Commit

Permalink
fixup d3.tip
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed Nov 12, 2018
1 parent b627dac commit 1bafbc7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/js/controllers/StatsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams,
.attr("class", "overlay")
.attr("width", width)
.attr("height", height)
.on("mouseover", function(d) {
.on("mouseover", function() {
var x0 = x.invert(d3.mouse(this)[0]);
var s1 = _.minBy(data, function(d) {
return Math.abs(moment(x0).unix()-d.unixtime);
Expand All @@ -444,7 +444,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams,
.on("mousemove", mousemove);


function mousemove(d) {
function mousemove() {
var x0 = x.invert(d3.mouse(this)[0]);
//console.log(moment(x0).unix());

Expand Down Expand Up @@ -650,7 +650,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams,
.attr("class", "overlay")
.attr("width", width)
.attr("height", height)
.on("mouseover", function(d) {
.on("mouseover", function() {
var x0 = x.invert(d3.mouse(this)[0]);
var s1 = _.minBy(data, function(d) {
return Math.abs(moment(x0).unix()-d.unixtime);
Expand All @@ -663,7 +663,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams,
.on("mouseout", function() { tip.hide(); focus.style("display", "none"); })
.on("mousemove", mousemove);

function mousemove(d) {
function mousemove() {
var x0 = x.invert(d3.mouse(this)[0]);

var s1 = _.minBy(data, function(d) {
Expand Down Expand Up @@ -862,7 +862,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams,
.attr("class", "overlay")
.attr("width", width)
.attr("height", height)
.on("mouseover", function(d) {
.on("mouseover", function() {
var x0 = x.invert(d3.mouse(this)[0]);
var s1 = _.minBy(data, function(d) {
return Math.abs(moment(x0).unix()-d.unixtime);
Expand All @@ -875,7 +875,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams,
.on("mouseout", function() { tip.hide(); focus.style("display", "none"); })
.on("mousemove", mousemove);

function mousemove(d) {
function mousemove() {
var x0 = x.invert(d3.mouse(this)[0]);

var s1 = _.minBy(data, function(d) {
Expand Down

0 comments on commit 1bafbc7

Please sign in to comment.