From 4c756968f4b03d1049ac3784253a9a8893695b69 Mon Sep 17 00:00:00 2001 From: kflemin Date: Fri, 23 Feb 2018 14:26:15 -0700 Subject: [PATCH] parseFloat for cases where numbers are mistakenly sent as strings --- server/app/views/analyses/plot_xy_interactive.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/views/analyses/plot_xy_interactive.html.erb b/server/app/views/analyses/plot_xy_interactive.html.erb index e8c698734..513e9d44f 100644 --- a/server/app/views/analyses/plot_xy_interactive.html.erb +++ b/server/app/views/analyses/plot_xy_interactive.html.erb @@ -240,8 +240,8 @@ tooltip.transition().duration(200).style("opacity", .9); return tooltip.style("left", (d3.event.pageX - 190) + "px") .style("top", (d3.event.pageY - 60) + "px") - .html("X: " + d.x.toFixed(2) + - "
Y: " + d.y.toFixed(2) + + .html("X: " + parseFloat(d.x).toFixed(2) + + "
Y: " + parseFloat(d.y).toFixed(2) + "
View Data Point"); });